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

abnormal exited rosnode still be seen on Master?

asked 2018-03-15 06:27:54 -0600

zcm gravatar image

Hello, everyone: I see Master is a xmlRPC server that maintains all the information of all nodes, but when a node abnormal exited, that node still can be seen on the master ? How can I check the active status of that node? Thanks!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2018-03-15 07:13:10 -0600

gvdhoorn gravatar image

when a node abnormal exited, that node still can be seen on the master ?

yes.

rosnode cleanup is a way to try and rectify such a situation, but it's not entirely without faults. See the linked discussion in #q9521.

How can I check the active status of that node?

I would say the same way rosnode cleanup does it: rosnode_cleanup(). It essentially "pings" (xmlrpc) all nodes it knows about and any node that did not respond are considered dead, and deregistered.

edit flag offensive delete link more

Comments

Btw: the various rosnode, rostopic and rosservice Python tools (and libraries) provide a lot of this functionality. Seeing your previous question (#q285515), I would first check those whenever you want to interact with the ROS node graph.

gvdhoorn gravatar image gvdhoorn  ( 2018-03-15 07:14:20 -0600 )edit

Thanks! Very good explanation! I will check these documents.

zcm gravatar image zcm  ( 2018-03-15 07:31:43 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2018-03-15 06:27:54 -0600

Seen: 442 times

Last updated: Mar 15 '18