Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Kill a Respawning Node (with pkill?)

I have some nodes set to respawn, but I want to kill them cleanly in a python script. Could I use pkill to do this? The nodes are specified by name, so would I need their Pid to have pkill kill them? I can find their Pid through rosnode info, but how would I do this in a script? Thanks!