Ask Your Question
6

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
7

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

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 imagePatrick 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 imagekwc ( 2011-03-22 05:25:08 -0500 )edit
1
Good info, those are all things that can be stated in the documentation :-)
Patrick Bouffard gravatar imagePatrick Bouffard ( 2011-03-22 05:29:31 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

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

Seen: 1,689 times

Last updated: Mar 22 '11