How to properly terminate ROS and Gazebo
ROS and Gazebo have many components running in the background. To properly terminate the program, one can use the ps
command to collect all the related process IDs and then kill them manually. Here is a python utility code that collects the process IDs in the ps
command outputs and execute the kill -9
command.
We can create an alias for this utility script, say, alias kill-all="python <path-to-script>".
To usage the script, we can do
PreviousHow to inspect service and make a service callNextHow to add and remove models in Gazebo simulation dynamically
Last updated