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

Revision history [back]

click to hide/show revision 1
initial version

Yes, but its probably a bad idea to code this sort of logic into your nodes. The intent of an anon pub/sub system is to not know what other nodes are running. That way you can freely interchange bags, alternate implementations, etc... Instead, test for the data/state you want to see, rather than the nodes you want to see.

For how to do the ping operation, simply read the source of rosnode. It requires making outbound XMLRPC calls, so it is a 'slow' operation.