Skip to content

Hold reference to parameters callback handle

Otherwise, the callback is unregistered.

This fixes a build warning about ignoring the return value.

http://build.ros2.org/view/Fbin_uF64/job/Fbin_uF64__v4l2_camera__ubuntu_focal_amd64__binary/21

The warning was introduced in a recent release of rclcpp to help users identify this kind of bug: https://github.com/ros2/rclcpp/pull/1244

Merge request reports

Loading