Skip to content

Expose subscription options#186

Merged
jacobperron merged 7 commits intoros-perception:ros2from
audrow:audrow/expose-options-to-subscription-with-void-allocator
May 19, 2021
Merged

Expose subscription options#186
jacobperron merged 7 commits intoros-perception:ros2from
audrow:audrow/expose-options-to-subscription-with-void-allocator

Conversation

@audrow
Copy link
Copy Markdown

@audrow audrow commented Apr 28, 2021

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 void allocator (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:

  • the Subscriber class uses plugins which don't support templates
  • the Subscriber class uses a pointer to an implementation (pimpl) in the source file

Let me know if you see a better approach.

paudrow added 3 commits April 28, 2021 13:54
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 jacobperron added the ros2 Issues or Pull Requests targeting ROS2 label Apr 29, 2021
Copy link
Copy Markdown
Contributor

@jacobperron jacobperron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks reasonable to me. It would be good to get another set of eyes for review.

@jacobperron jacobperron requested a review from mjcarroll April 29, 2021 18:42
paudrow added 3 commits May 18, 2021 14:09
Signed-off-by: Audrow Nash <audrow@hey.com>
Signed-off-by: Audrow Nash <audrow@hey.com>
Signed-off-by: Audrow Nash <audrow@hey.com>
@audrow
Copy link
Copy Markdown
Author

audrow commented May 19, 2021

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

Signed-off-by: Audrow Nash <audrow@hey.com>

Co-authored-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
@jacobperron jacobperron merged commit b272bfb into ros-perception:ros2 May 19, 2021
@audrow audrow deleted the audrow/expose-options-to-subscription-with-void-allocator branch May 19, 2021 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ros2 Issues or Pull Requests targeting ROS2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants