Skip to content

Make rmw_send_response take a const response - #968

Merged
ahcorde merged 2 commits into
rollingfrom
fujitatomoya/const-rmw-send-response
Nov 24, 2026
Merged

ahcorde merged 2 commits into
rollingfrom
fujitatomoya/const-rmw-send-response

Conversation

@fujitatomoya

Copy link
Copy Markdown
Collaborator

Update rmw_send_response and the shared __rmw_send_response helper to take const void * ros_response. The response is already passed to the DataWriter through a const_cast, so no behavior changes.

Companion change for ros2/rmw#437, which makes rmw_send_response take a const void * ros_response. A response only needs to be read to be serialized and sent, so the pointer should be const, consistent with rmw_send_request.

Description

Fixes # (issue)

Is this user-facing behavior change?

technically yes.

Did you use Generative AI?

Yes, Claude Fable 5

Additional Information

Update rmw_send_response and the shared __rmw_send_response helper to take const void * ros_response. The response is already passed to the DataWriter through a const_cast, so no behavior changes.

Companion change for ros2/rmw#437, which makes rmw_send_response take a const void * ros_response. A response only needs to be read to be serialized and sent, so the pointer should be const, consistent with rmw_send_request.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Signed-off-by: Tomoya Fujita <[email protected]>
@ahcorde

ahcorde commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Pulls: ros2/rmw_implementation#313, #968, ros2/rmw_cyclonedds#640, ros2/rmw_connextdds#267, ros2/rclcpp#3400, ros2/rcl#1358, ros2/rmw#437, ros2/rmw_zenoh#1100
Gist: https://gist.githubusercontent.com/ahcorde/eb382351f014edb273df7abce4f1b23e/raw/3db110452676e687dcc483a63a997ac8864ae6f9/ros2.repos
BUILD args: --packages-above-and-dependencies rmw_zenoh_cpp rmw rcl rclcpp rmw_connextdds rmw_cyclonedds_cpp rmw_fastrtps_cpp rmw_implementation
TEST args: --packages-above rmw_zenoh_cpp rmw rcl rclcpp rmw_connextdds rmw_cyclonedds_cpp rmw_fastrtps_cpp rmw_implementation
ROS Distro: rolling
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/21041

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

@ahcorde ahcorde left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pick up #966, #962 and #975 so that the test_rosidl_buffer tests added by
ros2/system_tests#615 and #613 pass on this branch.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@fujitatomoya

Copy link
Copy Markdown
Collaborator Author

@ahcorde the rebase is done, i think it should be find now.

@fujitatomoya

Copy link
Copy Markdown
Collaborator Author
  • Linux Build Status
  • Linux-aarch64 Build Status
  • Linux-rhel Build Status
  • Windows Build Status

@fujitatomoya
fujitatomoya requested a review from ahcorde November 21, 2026 01:40
@ahcorde

ahcorde commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Pulls: ros2/rmw_implementation#313, #968, ros2/rmw_cyclonedds#640, ros2/rmw_connextdds#267, ros2/rclcpp#3400, ros2/rcl#1358, ros2/rmw#437, ros2/rmw_zenoh#1100
Gist: https://gist.githubusercontent.com/ahcorde/ccc7052c5e2d6d7aad22271db71c5427/raw/3db110452676e687dcc483a63a997ac8864ae6f9/ros2.repos
BUILD args: --packages-above-and-dependencies rmw_zenoh_cpp rmw rcl rclcpp rmw_connextdds rmw_cyclonedds_cpp rmw_fastrtps_cpp rmw_implementation
TEST args: --packages-above rmw_zenoh_cpp rmw rcl rclcpp rmw_connextdds rmw_cyclonedds_cpp rmw_fastrtps_cpp rmw_implementation
ROS Distro: rolling
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/21243

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

@ahcorde
ahcorde merged commit dfb9dfb into rolling Nov 24, 2026
2 of 3 checks passed
@ahcorde
ahcorde deleted the fujitatomoya/const-rmw-send-response branch November 24, 2026 09:01
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.

5 participants