Make rmw_send_response take a const response #267
Approved these changes.
Pulls: ros2/rmw_implementation#313, ros2/rmw_fastrtps#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 
Linux-aarch64 
Linux-rhel 
Windows 
Approved these changes.
Approved these changes.
Pulls: ros2/rmw_implementation#313, ros2/rmw_fastrtps#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 
Linux-aarch64 
Linux-rhel 
Windows 
Approved these changes.
skyegalaxy
fujitatomoya
Update rmw_send_response (Connext Pro and Micro entry points) and rmw_api_connextdds_send_response to take const void ros_response. RMW_Connext_Service::send_response already took a const pointer, so no behavior changes. Both the rmw_connextdds and rmw_connextdds_common copies of the sources are updated.
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
<!--
Please include a summary of the changes and the related issue.
Highlight any key points or areas of concern.
-->
<!--
Automatically closes linked issue when PR is merged.
Usage:
Fixes #<issue number>, orFixes (paste link of issue).-->
Fixes # (issue)
Is this user-facing behavior change?
technically yes.
<!--
If no, just leave this section empty.
If yes, please explain how user-experience changes with this pull request.
-->
Did you use Generative AI?
Yes, Claude Fable 5
<!--
If this pull request was generated using Generative AI, please specify the tool and model used (e.g., GitHub Copilot, GPT-4.1).
If only specific parts were generated by Generative AI, please list those parts (e.g., function A, class B, etc.).
-->
Additional Information
<!--
If applicable, provide any additional context or details about the changes.
-->