ROS2 publisher callback on subscription match

asked 2020-05-08 10:10:31 -0500

ananya.muddu gravatar image

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.

edit retag flag offensive close merge delete

Comments

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.

stevemacenski gravatar image stevemacenski  ( 2020-05-08 16:52:08 -0500 )edit

I also would be highly interested in this question

AndreasR30 gravatar image AndreasR30  ( 2022-10-06 09:00:31 -0500 )edit