Skip to content

Instantly share code, notes, and snippets.

@plusk01
Created August 25, 2017 15:58
Show Gist options
  • Save plusk01/7b50443138a8d4b0ff742fa86b75c1e5 to your computer and use it in GitHub Desktop.
Save plusk01/7b50443138a8d4b0ff742fa86b75c1e5 to your computer and use it in GitHub Desktop.
Kill gazebo process quicker

To make Gazebo die sooner, edit the file at /opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/nodeprocess.py:

Near line 57, change the timeouts to be:

_TIMEOUT_SIGINT  = 0.5 #seconds
_TIMEOUT_SIGTERM = 0.5 #seconds

This will cause ROS to send a kill signal much sooner.

@hemanthzxcvb
Copy link

Thanks, Worked well, Used-
sudo gedit /opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/nodeprocess.py

Now it is taking less time to shut down.

@peci1
Copy link

peci1 commented Aug 23, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment