ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
You can find out how many nodes are publishing and listening to a topic.
You'll need to create a subscriber to the topic, wait for a second or so for any publishers to connect then use the getNumPublishers() method to check that it's being published.
You can do the same trick with a subscriber and it's getNumSubscribers() method.
I don't know if there is a more direct approach, but I know this way will work.