Re: [ros-users] Kill all running ros processes

Top Pagina
Bijlagen:
Bericht als e-mail
+ (text/plain)
Delete this message
Reply to this message
Auteur: Brian Gerkey
Datum:  
Aan: ros-users
Onderwerp: Re: [ros-users] Kill all running ros processes
On Wed, Apr 28, 2010 at 11:21 AM, Robbie Plankenhorn
<> wrote:
> Is there an easy way to kill all running ros processes?  I am running some
> roslaunch files in the background and I want to be able to kill them easily.


The proper way would be to sent SIGINT to the roslaunch processes.
Each roslaunch instance does very careful process control, and will
kill everything that it started. To help with this, you can have
roslaunch write its process id to file, e.g.:
roslaunch --pid=/tmp/myroslaunch.pid mystuff.launch
To kill it:
kill -INT `cat /tmp/myroslaunch.pid`

    brian.