MRPT / mvsim

Vehicle and mobile robotics simulator. C++ & Python API. Use it as a standalone application or via ROS 1 or ROS 2
https://mvsimulator.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
293 stars 45 forks source link

Unable to get ROS2 Launch headless #54

Closed wegunterjr closed 1 week ago

wegunterjr commented 1 week ago

I tried with the included examples in mvsim after installing using: sudo apt install ros-$ROS_DISTRO-mvsim

But when i try to launch headless, the GUI and RVIZ still launch. ros2 launch mvsim demo_1robot.launch.py --headless:=True

jlblancoc commented 1 week ago

Oh, that's because that particular launch file was not prepared for that argument.

It's now, after commit https://github.com/MRPT/mvsim/commit/dd2c8d59a488e1ca05e2a4338629f9270837ce6c

So you can either clone the repo, or just download this file anywhere in your disk, and run it with:

cd /path/to/donwloaded_file/
ros2 launch ./demo_1robot.launch.py headless:=True use_rviz:=False