ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Kill all nodes running on machine (without killing others)

asked 2019-08-12 16:10:45 -0600

dsoike gravatar image

updated 2019-08-12 16:11:05 -0600

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?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2019-08-12 16:12:19 -0600

dsoike gravatar image

updated 2019-08-12 17:10:47 -0600

jayess gravatar image

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
edit flag offensive delete link more

Question Tools



Asked: 2019-08-12 16:10:45 -0600

Seen: 325 times

Last updated: Aug 12 '19