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

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Brian Gerkey
Date:  
To: ros-users
Subject: 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.