Installing the ZED ROS 2 Wrapper returns colcon build error

Hi,

I was following this https://www.stereolabs.com/blog/getting-started-with-ros2-on-jetson-agx-orin/ to setup my AGX Orin with ROS2. I followed all the codes as described on the page until running the colcon build command

colcon build --symlink-install --cmake-args=-DCMAKE_BUILD_TYPE=Release

results this:

Starting >>> zed_interfaces
Finished <<< zed_interfaces [12.0s]
Starting >>> zed_components
[Processing: zed_components]
[Processing: zed_components]
[Processing: zed_components]
— stderr: zed_components
In file included from /home/nayan/ros2_ws/src/zed-ros2-wrapper/zed_components/src/zed_camera/include/zed_camera_component.hpp:19,
from /home/nayan/ros2_ws/src/zed-ros2-wrapper/zed_components/src/zed_camera/src/zed_camera_component.cpp:20:
/usr/local/zed/include/sl/Fusion.hpp:68:64: note: #pragma message: ~ FUSION SDK is distributed in Early Access ~
68 | #pragma message(“~ FUSION SDK is distributed in Early Access ~”)
| ^

Finished <<< zed_components [1min 41s]
Starting >>> zed_wrapper
— stderr: zed_wrapper
In file included from /home/nayan/ros2_ws/install/zed_components/include/zed_components/zed_camera_component.hpp:19,
from /home/nayan/ros2_ws/src/zed-ros2-wrapper/zed_wrapper/src/zed_wrapper.cpp:17:
/usr/local/zed/include/sl/Fusion.hpp:68:64: note: #pragma message: ~ FUSION SDK is distributed in Early Access ~
68 | #pragma message(“~ FUSION SDK is distributed in Early Access ~”)
| ^

Finished <<< zed_wrapper [12.9s]
Starting >>> zed_ros2
Finished <<< zed_ros2 [1.01s]

Summary: 4 packages finished [2min 7s]
2 packages had stderr output: zed_components zed_wrapper

I am using the latest jetpack and ZED SDK. Kindly let me know how to overcome the build error. Thank you.

Sorry to mention: I cloned the github repo with --recursive flag.

Hi @NayanBanik
Welcome to the Stereolabs community.

The problem is that you are using a ZED ROS 2 Wrapper designed for the ZED SDK v4.0 with ZED SDK v3.8.

Please look at these Dockerfiles to be used as an updated example:

the README file contains all the required information

Thanks for the reply.

I am using ZED SDK 4.0.2 on Ubuntu 20.04.6 LTS (FOXY).

I want to use zed_ros2_wrapper without using docker. Let me know if docker is the only way to run the ros2_wrapper.

No, you can install it normally.
The ZED ROS2 Wrapper is compatible with ROS 2 Foxy that is the binary distribution for Ubuntu 20

Then why I am facing the error? Can you please guide me to resolve it?

What error? I do not see error messages, only a simple warning.
The wrapper is correctly installed.

sorry my bad. I was thinking those as errors.

Summary: 4 packages finished [2min 7s]
2 packages had stderr output: zed_components zed_wrapper

Yes, indeed that’s not an error.
It only says that the package emitted something on stderr when compiling, but what’s important is this part:
Summary: 4 packages finished [2min 7s]

If something goes wrong you read an error message on that line