System Details:
-
Platform: Jetson Orin NX (JetPack 6 / Ubuntu 22.04)
-
ZED SDK Version: 5.0.7 (ARM64 Tegra)
-
ROS 2 Distro: Humble
-
Wrapper Version: Latest
masterand also triedros2_humblebranch fromzed-ros2-wrapper
Build Command:
colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=Release
Error Output:
/home/v_agg/ros2_ws/src/zed-ros2-wrapper/zed_components/src/zed_camera/src/zed_camera_component_main.cpp: In member function ‘bool stereolabs::ZedCamera::startCamera()’:
/home/v_agg/ros2_ws/src/zed-ros2-wrapper/zed_components/src/zed_camera/src/zed_camera_component_main.cpp:2483:40: error: ‘DRIVER_FAILURE’ is not a member of ‘sl::ERROR_CODE’
2483 | if (mConnStatus == sl::ERROR_CODE::DRIVER_FAILURE) {
| ^~~~~~~~~~~~~~
/home/v_agg/ros2_ws/src/zed-ros2-wrapper/zed_components/src/zed_camera_one/src/zed_camera_one_component_main.cpp: In member function ‘bool stereolabs::ZedCameraOne::openZedCamera()’:
/home/v_agg/ros2_ws/src/zed-ros2-wrapper/zed_components/src/zed_camera_one/src/zed_camera_one_component_main.cpp:777:40: error: ‘DRIVER_FAILURE’ is not a member of ‘sl::ERROR_CODE’
777 | if (_connStatus == sl::ERROR_CODE::DRIVER_FAILURE) {
|
Summary:
While building the zed_components package, the compiler fails because sl::ERROR_CODE::DRIVER_FAILURE is no longer defined in the latest ZED SDK (v5.0.7).
It appears the wrapper code still references an older enum value that was removed or renamed in SDK v5.x.
Steps Tried:
-
Confirmed
rosdep installcompleted successfully. -
Cleaned workspace (
rm -rf build install log). -
Tried both
masterandros2_humblebranches of the wrapper. -
Rebuilt with
colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release.Please confirm which branch or commit of
zed-ros2-wrapperis compatible with ZED SDK 5.0.7, or suggest a patch for replacingsl::ERROR_CODE::DRIVER_FAILUREwith the correct equivalent error code.