ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A answers.ros.org
Ask Your Question
1

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
1

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', 'libgazebo_ros_factory.so'], output='screen')
...
   return LaunchDescription([
     ...
        DeclareLaunchArgument(name='world', default_value=default_world_path,
                              description='Absolute path to SDF world file'),
        gz_process,
     ...
    ])

```

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

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

Seen: 392 times

Last updated: Apr 23 '21