Gazebo | Ignition | Community
Ask Your Question

Turning GUI on and off again at runtime

asked 2020-04-30 10:23:43 -0500


I'm using gazebo with gazebo_ros_pkg for reinforcement learning. To make things go faster, I turned off Gazebo's GUI. I'd like to be able to turn it on in the middle of the training to see how its going for a few iterations, then turn it off again.

Is there a way to do that ? Is it possible from inside a ROS node or a Gazebo plugin ?

I thought about recording rosbags to replay on another instance of Gazebo with GUI on, but unfortunately rosbags cannot record service calls.

I'm using ROS melodic with Gazebo9 on Ubuntu 18.04.

Thanks for your help.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2020-04-30 11:11:28 -0500

kumpakri gravatar image

updated 2020-04-30 11:11:50 -0500

You can always just write gzclient to a new terminal and the client will pop up.

Also you can insert a camera into your world and get picture from it when you need.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2020-04-30 10:23:43 -0500

Seen: 289 times

Last updated: Apr 30 '20