Robotics StackExchange | Archived questions

Kill all nodes running on machine (without killing others)

I have a distributed network of ros nodes running on multiple machines. How can I kill all nodes on a specific machine without effecting the others?

Asked by dsoike on 2019-08-12 16:10:45 UTC

Comments

Answers

Use rosnode machine to list all nodes running on the current machine and then use rosnode kill to kill them.

rosnode machine | xargs rosnode machine | xargs rosnode kill

Asked by dsoike on 2019-08-12 16:12:19 UTC

Comments