-
Notifications
You must be signed in to change notification settings - Fork 154
Creating subscriber after spin doesn't work #475
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
May I ask why you're creating a subscriber after spinning the node? This feels like an unusual design pattern to me - usually your node has all desired/needed subscribers/publishers/clients/services already created before spinning. |
We have a certain infrastructure so that the topics for some subscribers are set on the fly with a service |
If I haven't created any subscribers before spin and after spin I create a subscriber, triggered by a callback, the subscriber doesn't work, i.e. the subscriber callback is never executed.
If I create a random subscriber before spin and then create the desired subscriber after spin, the callback of the desired subscriber works. I googled a bit around and I found this issue for ROS2, but it looked quite old and probably has been fixed.
Any ideas on that?
The text was updated successfully, but these errors were encountered: