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

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.

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

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