You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 31, 2025. It is now read-only.
I've noticed that the unsubscribe callbacks in roscpp, set up with advertise options, don't get called if the publisher doesn't publish any messages before the disconnection.
Specifically:
Set up publisher with subscribe/unsubscribe callbacks
Subscribe to topic, subscribe callback gets called
Don't publish messages
Unsubscribe to topic, unsubscribe callback doesn't get called
Attached is a modified version of talker.cpp to test this problem. To verify:
Run modified talker.cpp
It won't publish
Run "rostopic echo chatter", then ctrl-C a few times
Run "rostopic info chatter" to make sure topic not subscribed to