Build Error in zed_components with ZED SDK 5.0.7 (Jetson Orin + ROS 2 Humble)

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 master and also tried ros2_humble branch from zed-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 install completed successfully.

  • Cleaned workspace (rm -rf build install log).

  • Tried both master and ros2_humble branches of the wrapper.

  • Rebuilt with colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release.

    Please confirm which branch or commit of zed-ros2-wrapper is compatible with ZED SDK 5.0.7, or suggest a patch for replacing sl::ERROR_CODE::DRIVER_FAILURE with the correct equivalent error code.