In the parametersCallback, the depth_sensor_params_update flag is being set to true. Since this is being called before detectCliff, it blocks updating the camera details from the CameraInfo message (unless cam_model_update_ is set to true).
IMHO, it will be more correct to actually set the depth_sensor_params_update to false after updating parameters, so it re-initializes the camera model from the next CameraInfo message, as parameters are being used in the camera info initialization code.
Hi,
In the
parametersCallback
, thedepth_sensor_params_update
flag is being set totrue
. Since this is being called beforedetectCliff
, it blocks updating the camera details from the CameraInfo message (unlesscam_model_update_
is set to true).The line that sets it to true is: https://github.com/mdrwiega/depth_nav_tools/blob/f30d64833fbdd6d4eb8fa114b2afead51226f30e/cliff_detector/src/cliff_detector_node.cpp#L113
IMHO, it will be more correct to actually set the
depth_sensor_params_update
tofalse
after updating parameters, so it re-initializes the camera model from the next CameraInfo message, as parameters are being used in the camera info initialization code.We are using ROS2 Humble.