ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

ros2 gazebo without GUI

asked 2021-04-23 07:57:37 -0500

avzmpy gravatar image

Does someone have a way to launch gazebo without GUI from launch file?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2021-04-23 08:04:24 -0500

vinny gravatar image

I use launch.actions.ExecuteProcess to launch Gazebo.

So let's say your normal Gazebo process looks like this: ```

gz_process = ExecuteProcess(cmd=`gazebo`, '--verbose', LaunchConfiguration('world'),
                                '-s', ''], output='screen')
   return LaunchDescription([
        DeclareLaunchArgument(name='world', default_value=default_world_path,
                              description='Absolute path to SDF world file'),


Instead of calling gazebo there, you can call gzserver. You can do this using a Launch Argument or just a seperate launch file all together.

edit flag offensive delete link more

Question Tools



Asked: 2021-04-23 07:57:37 -0500

Seen: 919 times

Last updated: Apr 23 '21