ROS2 publisher callback on subscription match
Hi,
Is there a mechanism (existing or planned) in ROS2 that allows a publisher to register a callback that gets called on successful match with a subscription?
Such a mechanism exists in FastRTPS called PublisherListener.
Not a good answer, but you can use the get number of subscribers call to check the number of subscribers and do something when it increments. Polling is a poor answer to this question but its a potential workaround for now.
I also would be highly interested in this question