ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
There is get_num_connections which is the number of publishers for a subscriber. So if the last connection is terminated (e.g. by shutting down the publisher or the publishing node), this value is going to be zero.
2 | No.2 Revision |
There is get_num_connections which is the number of publishers for a subscriber. So if the last connection is terminated (e.g. by shutting down the publisher or the publishing node), this value is going to be zero.
Edit: For cpp, simply check the docu of the Subscriber class and find getNumPublishers
3 | No.3 Revision |
There is get_num_connections which is the number of publishers for a subscriber. So if the last connection is terminated (e.g. by shutting down the publisher or the publishing node), this value is going to be zero.
Edit: For cpp, simply check have a look the docu of the Subscriber class and find getNumPublishers