Unable to kill rosnode running in background
I killed my_node
using
rosnode kill my_node
When printing a list of nodes
rosnode list
my_node
is not showing up the nodes, but it is running in the background and I confirmed it using the following command:
ps aux | grep my_node | grep -v grep | awk '{print $2}'
This shows a list of my_node
, because I started the my_node
many times.
kill $(ps aux | grep my_node | grep -v grep | awk '{print $2}')
Is not killing any of the nodes
I have tried, pkill
as well without any luck. Only way to get out of this issue is to restart roscore
I would like to know if there is any other way to kill the node?