Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
stereo_image_proc: disparity_node: Add parameter to control camera_in…
…fo (#1051) Add a parameter, use_image_transport_camera_info (default: true), to control whether DisparityNode uses image_transport::getCameraInfoTopic for deriving camera_info topics. Default Behavior (backward compatible): When use_image_transport_camera_info is true, the node continues using image_transport::getCameraInfoTopic for camera_info resolution, maintaining existing functionality. Custom Behavior: When use_image_transport_camera_info is false, the node directly uses the camera_info topics specified via remapping (e.g., left/camera_info and right/camera_info), bypassing image_transport's derivation logic. This solution allows users to explicitly remap the camera_info topics for both cameras, providing flexibility for scenarios where topic names are not unique or need customization. --------- Signed-off-by: Zhaoyuan Cheng <[email protected]> Signed-off-by: Zhaoyuan <[email protected]> Co-authored-by: Alejandro Hernández Cordero <[email protected]>
- Loading branch information