Gazebo | Ignition | Community
Ask Your Question

How to start and stop Gazebo 1.9?

asked 2013-07-25 12:45:44 -0500

Arn-O gravatar image

updated 2013-07-25 13:41:42 -0500

nkoenig gravatar image


This is a serious question. I faced very strong issues with Gazebo and I just find a way to manage them. This was related to the way I start and stop Gazebo (from ROS in my configuration).


  • stop from the Gui, using close window, unable to restart Gazebo properly afterwards. Gazebo should be closed using Ctrl+C from the console which started it (even if it is OK to do that within rviz)
  • AND click reset before aborting the main process

My questions are therefore:

  • what are the best practice for start/stop
  • is there a way to reset automatically the simulation

Thx in advance for your answer.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2013-07-25 15:43:27 -0500

davetcoleman gravatar image


This is a serious answer. With gazebo_ros_pkgs I believe the only way to fully shutdown Gazebo is to Ctrl-C on the command line, closing the Gazebo GUI will not end gzserver.

Although we've worked hard to prevent Gazebo from hanging during shutdown when used with ROS, it does appear there are still some gazbeo-ROS plugins that can occasionally hang. There is still an inconsistency in the way different plugins initialize ROS nodes, node handles, and do message passing that needs to be sorted out - we welcome any bug fixes you have!

Until then, on occasion when gzserver does not properly shutdown with ROS, I have this nice little alias in my .bashrc:

alias killgazebo="killall -9 gazebo & killall -9 gzserver  & killall -9 gzclient"

Thx for your question.

edit flag offensive delete link more


The killgazebo command is wonderful. Thanks!

micpalmia gravatar imagemicpalmia ( 2013-09-05 03:00:51 -0500 )edit

answered 2013-07-25 13:43:43 -0500

nkoenig gravatar image

You can stop simulation by pressing Ctrl-C on the command line, or closing the Gazebo GUI (if you are using the GUI).

In the Gazebo GUI, use Edit->Reset to reset the simulation.

edit flag offensive delete link more

Question Tools


Asked: 2013-07-25 12:45:44 -0500

Seen: 16,771 times

Last updated: Jul 25 '13