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

rosnode zombies

asked 2011-03-22 01:33:35 -0500

baxelrod gravatar image

Sometimes when a node crashes, or I kill it, it still shows up in rosnode list. I don't seem to be able to find the process using ps. And the node does not go away in the list when i do a rosnode kill <node>. I have seen this with both 'regular' nodes as well as ros tools such as rostopic.

The only thing that seems to work is to kill and restart the roscore.

This is not a major issue for me, I was just wondering what was going on here.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2011-03-22 04:23:19 -0500

kwc gravatar image

Registrations in the master currently don't expire -- we plan on adding in a TTL. You can remove these stale registrations by running "rosnode cleanup". This will remove the registration of any node that cannot be contacted immediately (buyer beware).

edit flag offensive delete link more


Cool. The 'cleanup' subcommand isn't mentioned on the rosnode wiki page, and also not in the help text ('rosnode -h'). Is there a reason it is undocumented?
Patrick Bouffard gravatar image Patrick Bouffard  ( 2011-03-22 05:07:21 -0500 )edit
The cleanup command is a stop gap. It's use is not encouraged in normal operation. It's benefit is aesthetic and it has the downside of potentially unregistering functioning nodes.
kwc gravatar image kwc  ( 2011-03-22 05:25:08 -0500 )edit
Good info, those are all things that can be stated in the documentation :-)
Patrick Bouffard gravatar image Patrick Bouffard  ( 2011-03-22 05:29:31 -0500 )edit

Question Tools


Asked: 2011-03-22 01:33:35 -0500

Seen: 2,997 times

Last updated: Mar 22 '11