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

rosnode zombies

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

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
9

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

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

Comments

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 -0600 )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 -0600 )edit
3
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 -0600 )edit

Question Tools

Stats

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

Seen: 3,098 times

Last updated: Mar 22 '11