-
Notifications
You must be signed in to change notification settings - Fork 422
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
Allow subscribing without template parameter #544
Comments
Why isn't the template type |
Or asked a different way, what would the signature of the callback for the subscription look like, currently it is something like: rclcpp/rclcpp/include/rclcpp/any_subscription_callback.hpp Lines 45 to 46 in 198c6da
|
The signature of the callback would then have to be I don't particularly care for |
After quite some time, I am happy to close this ticket with #1452 |
Feature request
Feature description
Currently, we can only subscribe to a topic via
node->create_subscription<MessageT>(<topic_name>, <callback>)
or similar calls. This requires the topic type to be known at compile time.It would be great to have a way to create a subscription without this template, passing type support into the subscription creation manually.
Use Case: This would help us in
rosbag2
, where we need to subscribe to all available topics which we obviously don't know at compile time.The text was updated successfully, but these errors were encountered: