Repository navigation
Make rcl_send_response take a const response - #1358
Conversation
Update rcl_send_response and the rcl_action_send_{goal,result,cancel}_response functions to take const void * for the response. The response is only read and forwarded to rmw_send_response, and the documentation already states that it is left unmodified. This is also consistent with rcl_send_request and the rcl_action_send_*_request functions, which already take const void *.
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]>
|
Pulls: ros2/rmw_implementation#313, ros2/rmw_fastrtps#968, ros2/rmw_cyclonedds#640, ros2/rmw_connextdds#267, ros2/rclcpp#3400, #1358, ros2/rmw#437, ros2/rmw_zenoh#1100 |
|
Pulls: ros2/rmw_implementation#313, ros2/rmw_fastrtps#968, ros2/rmw_cyclonedds#640, ros2/rmw_connextdds#267, ros2/rclcpp#3400, #1358, ros2/rmw#437, ros2/rmw_zenoh#1100 |
Update rcl_send_response and the rcl_action_send_{goal,result,cancel}response functions to take const void * for the response. The response is only read and forwarded to rmw_send_response, and the documentation already states that it is left unmodified. This is also consistent with rcl_send_request and the rcl_action_send*_request functions, which already take const void *.
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