Skip to content

Use ConstSharedPtr in the robot arm demo subscription callback - #5

Merged
ahcorde merged 1 commit into
mainfrom
christophebedard/use-const-shared-ptr-callbacks
Nov 27, 2026
Merged

ahcorde merged 1 commit into
mainfrom
christophebedard/use-const-shared-ptr-callbacks

Conversation

@christophebedard

Copy link
Copy Markdown
Member

Description

Subscription callbacks taking a std::shared_ptr to a non-const message have been deprecated since ros2/rclcpp#2975 (Lyrical), and rclcpp is removing them. This callback does not modify the message.

Is this user-facing behavior change?

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.

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. This
callback does not modify the message.

Signed-off-by: Christophe Bedard <bedard.christophe@gmail.com>
@ahcorde
ahcorde merged commit d535c90 into main Nov 27, 2026
0 of 2 checks passed
@ahcorde
ahcorde deleted the christophebedard/use-const-shared-ptr-callbacks branch November 27, 2026 09:25
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