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

asked 2014-06-16 22:51:07 -0600

TaiwanEric gravatar image

updated 2014-06-16 22:51:55 -0600

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!

edit retag flag offensive close merge delete

Comments

Do you have any example code that illustrates this? If so, perhaps we can make a unit test for this function.

scpeters gravatar imagescpeters ( 2014-06-18 19:13:55 -0600 )edit