Skip to content

Fixing deprecated subscriber callback warnings#532

Merged
aprotyas merged 3 commits intomasterfrom
aprotyas/deprecate-shared-ptr-sub-callback
Aug 26, 2021
Merged

Fixing deprecated subscriber callback warnings#532
aprotyas merged 3 commits intomasterfrom
aprotyas/deprecate-shared-ptr-sub-callback

Conversation

@aprotyas
Copy link
Copy Markdown
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
Copy Markdown
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

`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
Copy Markdown
Member Author

Full CI:

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

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