Skip to content
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

Fixing deprecated subscriber callback warnings #532

Merged
merged 3 commits into from
Aug 26, 2021

Conversation

aprotyas
Copy link
Member

@aprotyas aprotyas commented Aug 20, 2021

ros2/rclcpp#1713 deprecates the void shared_ptr<T> subscription callback signatures, so this PR migrates away from said signatures.

This patch affects the following packages:

  • Composition
  • Intra process
  • Lifecycle
  • Topic statistics
  • Quality of services
  • Image tools
  • Demo nodes C++

Signed-off-by: Abrar Rahman Protyasha abrar@openrobotics.org

Subscriber callbacks migrated from `SharedPtr` to `ConstSharedPtr`
types. This patch affects:

- Composition
- Intra process
- Lifecycle
- Topic statistics
- Quality of services
- Image tools
- Demo nodes C++

Signed-off-by: Abrar Rahman Protyasha <abrar@openrobotics.org>
@aprotyas
Copy link
Member Author

CI (build/test: --packages-above-and-dependencies composition intra_process_demo demo_nodes_cpp lifecycle topic_statistics_demo quality_of_service_demo_cpp image_tools)

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

composition/src/listener_component.cpp Outdated Show resolved Hide resolved
`const` is unnecessary because the messages are being copied regardless,
and `typename` is unnecessary because the callback types are not
templated.

Signed-off-by: aprotyas <aprotyas@u.rochester.edu>
These messages are copied anyway, so the `const` specifier is
unnecessary.

Signed-off-by: aprotyas <aprotyas@u.rochester.edu>
@aprotyas
Copy link
Member Author

Full CI:

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

@aprotyas aprotyas merged commit d9c8dac into master Aug 26, 2021
@delete-merged-branch delete-merged-branch bot deleted the aprotyas/deprecate-shared-ptr-sub-callback branch August 26, 2021 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants