I’d like to integrate the ZED ROS2 Wrapper with my two ZED cameras. When I try running the both launch files simultaneously, one of them fails to detect its respective camera. How might I go about modifying the ROS2 wrapper to work with a multi-camera setup?
Hi @austinlake04
if the two cameras are connected to the same host machine, then you must open them by using their serial number or idx, otherwise the ZED SDK always tries to open the camera with the lower idx:
Can you elaborate on this part? There is no “zed_id” defined in the existing launch files. Should I create a common.yaml for each of the cameras and write the id’s there or how should I go about it?
However, we can add the zed_id and/or serial_number as parameters for the launch files.
Can you please add a feature request issue on Github to keep track of it?
It’s a quick modification…
Hi, I am using this environment for multi-Camera launch file
Jetson Orin, Zed SDK 3.7, Zed-ros2-Examples (multi-Camera), 2 Zed Cameras.
I also use this command : ros2 launch zed_multi_camera zed_multi_camera.launch.py cam_names:=‘[zed_right, zed_left]’ cam_models:=‘[zed, zed]’ cam_serials:=‘[21380,21148]’
However, it only opens either one of those cameras connected. I tried to run them separately using the zed.launch file and both of them works perfectly.
Yes. both are correct and running okay in my laptop but I tried the same (codes, same wrapper, same cameras) with jetson orin, it only choose either one of the camera to open.
I advise upgrading the ZED SDK and the ZED ROS2 Wrapper to the latest versions.
The ZED SDK v3.7 is an old version and we introduced a lot of improvements that can help you solve your problem.