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!
Do you have any example code that illustrates this? If so, perhaps we can make a unit test for this function.