Skip to content

Use ConstSharedPtr in the buffer backend subscription examples (backport #7532) - #7539

Merged
ahcorde merged 1 commit into
lyricalfrom
mergify/bp/lyrical/pr-7532
Nov 27, 2026
Merged

ahcorde merged 1 commit into
lyricalfrom
mergify/bp/lyrical/pr-7532

Conversation

@mergify

@mergify mergify Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Description

Subscription callbacks taking a std::shared_ptr to a non-const message have been deprecated since ros2/rclcpp#2975 (Lyrical), and they are being removed in Rolling. These callbacks do not modify the message, and from_input_tensor_msg() takes a const reference.

Did you use Generative AI?

Claude Opus 5.5 to make this change.

Additional Information

Companion PR: ros2/rclcpp#3449, which removes these callback signatures. They are also deprecated in Lyrical, so this could be backported there.


This is an automatic backport of pull request #7532 done by [Mergify](https://mergify.com).

Subscription callbacks taking a `std::shared_ptr` to a non-const
message have been deprecated since
ros2/rclcpp#2975 (Lyrical), and they are being
removed in Rolling by ros2/rclcpp#3449. These
callbacks do not modify the message, and `from_input_tensor_msg()`
takes a `const` reference.

Signed-off-by: Christophe Bedard <[email protected]>
(cherry picked from commit 6c90829)
@github-actions

Copy link
Copy Markdown

HTML artifacts: https://github.com/ros2/ros2_documentation/actions/runs/45973483642/artifacts/15186561516.

To view the resulting site:

  1. Click on the above link to download the artifacts archive
  2. Extract it
  3. Open html-artifacts-7539/index.html in your favorite browser

@ahcorde
ahcorde merged commit 7de085b into lyrical Nov 27, 2026
6 checks passed
@ahcorde
ahcorde deleted the mergify/bp/lyrical/pr-7532 branch November 27, 2026 09:30
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