Last updated
Last updated
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