Home | Tutorials | Wiki | Issues
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How does gazebo::transport::Publisher::HasConnections() works?

Hello, When i call this function with no subscriber subscribe to the topic, it will return false. And after a subscriber subscribe to the topic, the function will return true. But when the subscriber unsubscribe the topic, the function still return true.

Is this function working properly?
If this is not what this function is meant to do, what is the method to find out if the topic is not subscribed from a subscriber?

Thanks in advance!

How does gazebo::transport::Publisher::HasConnections() works?

Hello, When i call this function with no subscriber subscribe to the topic, it will return false. And after a subscriber subscribe to the topic, the function will return true. But when the subscriber unsubscribe the topic, the function still return true.

Is this function working properly? If this is not what this function is meant to do, what is the method to find out if the topic is not subscribed from a subscriber?

subscriber?

Thanks in advance!