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

トップ ページ
添付ファイル:
Eメールのメッセージ
+ (text/plain)
このメッセージを削除
このメッセージに返信
著者: Brian Gerkey
日付:  
To: ros-users
題目: 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.