Expose subscription options#186
Merged
jacobperron merged 7 commits intoros-perception:ros2from May 19, 2021
audrow:audrow/expose-options-to-subscription-with-void-allocator
Merged
Expose subscription options#186jacobperron merged 7 commits intoros-perception:ros2from audrow:audrow/expose-options-to-subscription-with-void-allocator
jacobperron merged 7 commits intoros-perception:ros2from
audrow:audrow/expose-options-to-subscription-with-void-allocator
Conversation
Signed-off-by: Audrow Nash <audrow@hey.com>
Signed-off-by: Audrow Nash <audrow@hey.com>
Signed-off-by: Audrow Nash <audrow@hey.com>
2 tasks
jacobperron
approved these changes
Apr 29, 2021
Contributor
jacobperron
left a comment
There was a problem hiding this comment.
Looks reasonable to me. It would be good to get another set of eyes for review.
ivanpauno
reviewed
May 5, 2021
Signed-off-by: Audrow Nash <audrow@hey.com>
Signed-off-by: Audrow Nash <audrow@hey.com>
Signed-off-by: Audrow Nash <audrow@hey.com>
jacobperron
approved these changes
May 19, 2021
Author
ivanpauno
approved these changes
May 19, 2021
image_transport/include/image_transport/simple_subscriber_plugin.hpp
Outdated
Show resolved
Hide resolved
Signed-off-by: Audrow Nash <audrow@hey.com> Co-authored-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR is needed for QoS overrides in subscriptions, as in ros-perception/image_pipeline#651.
Using subscription options requires specifying the type of the allocator used. I am currently adding subscription options specialized to use a
voidallocator (the default). I chose to proceed this way to expose the subscription options with minimal changes to this repository.I believe that exposing the subscription options with a templated allocator would require significant changes to this packages, for at least two reasons:
Subscriberclass uses plugins which don't support templatesSubscriberclass uses a pointer to an implementation (pimpl) in the source fileLet me know if you see a better approach.