Repository navigation
Update cv_bridge header suffix for new ROS2 versions - .h was deprecated - #3461
Conversation
|
Sorry, I need to walk back my earlier approval — looking at this more carefully I see a few issues: 1. The distro macros ( 2. 3. It diverges from the existing pattern in the repo. #if defined(CV_BRDIGE_HAS_HPP)
#include <cv_bridge/cv_bridge.hpp>
#else
#include <cv_bridge/cv_bridge.h>
#endifdriven by Suggested changes:
|
Dismissing on second look — issues identified in follow-up comment (undefined distro macros, ros_image_texture.cpp still uses cv_bridge.h, and diverges from the CV_BRDIGE_HAS_HPP pattern already used in realsense2_camera).
Replaces the GALACTIC/FOXY/HUMBLE/IRON conditional with the CV_BRDIGE_HAS_HPP definition driven by cv_bridge_VERSION >= 3.3.0, matching the pattern already used in realsense2_camera. The distro macros were never defined for realsense2_rgbd_plugin, so the previous guard always selected cv_bridge.hpp regardless of distro. Also applies the same include guard to ros_image_texture.cpp, which was still using the deprecated cv_bridge.h header unconditionally. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
bb0796a to
c52cd44
Compare
ac4b104
into
realsenseai:ros2-development
No description provided.