Skip to content

Use ConstSharedPtr in test_rosidl_buffer subscription callbacks - #620

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

christophebedard merged 1 commit into
rollingfrom
christophebedard/const-shared-ptr-callbacks

Conversation

@christophebedard

@christophebedard christophebedard commented Nov 27, 2026 •

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. These callbacks do 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

Needed for ros2/rclcpp#3449, which removes these callback signatures. Merge this one first.

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. These callbacks do not modify the message.

Signed-off-by: Christophe Bedard <bedard.christophe@gmail.com>
@ahcorde

ahcorde commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Pulls: #620
Gist: https://gist.githubusercontent.com/ahcorde/c38e83f0c665a2bb374b27ba39974ec8/raw/304fc163bcb626a2b03414780ac81b89649d0e43/ros2.repos
BUILD args: --packages-above-and-dependencies test_rosidl_buffer
TEST args: --packages-above test_rosidl_buffer
ROS Distro: rolling
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/21340

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Linux-rhel Build Status
  • Windows Build Status

@christophebedard
christophebedard merged commit cd6ea5d into rolling Nov 27, 2026
2 of 3 checks passed
@christophebedard
christophebedard deleted the christophebedard/const-shared-ptr-callbacks branch November 27, 2026 21:17
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.

3 participants