No version for distro humble showing github. Known supported distros are highlighted in the buttons above.

Package Summary

Version 5.6.0
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/stereolabs/zed-ros2-examples.git
VCS Type git
VCS Version master
Last Updated 2026-11-17
Dev Status UNKNOWN
Released UNRELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

This package is a tutorial showing how to configure a multi-camera system.

Additional Links

Maintainers

  • STEREOLABS

Authors

No additional authors.

Multi camera tutorial

In this tutorial you will learn how to create a multi-camera configuration with ZED devices.

For a multi-camera configuration it is important to correctly identify each camera in the system by using its serial number and precisely set the position and the orientation of each of them with respect to a reference point.

The launch file explained

The example launch file zed_multi_camera.launch.py allows to dynamically configure a robotics system equipped with multiple different models of ZED cameras.

The launch file starts a Robot State Publisher node that defines the position and orientation of each camera in the multi-camera system, a Robot State Publisher node for each camera that broadcast all the static frames of the camera, and a ZED node for each camera.

The number of ZED nodes to start is infered by the size of the parameters passed to the launch file from the command line.

All the ZED nodes are loaded in the same ROS 2 container using Composition. It is possible to load other ROS 2 components in the same container to leverage zero copy Intra-Process Communication (IPC).

You can retrieve the name of the container and check the components that are running in the same process by using the command

ros2 component list

for example:

$ ros2 component list
/zed_multi/zed_multi_container
  1  /zed_multi/zedx_front
  2  /zed_multi/zedx_rear

:pushpin: Note: All the nodes run in the same namespace zed_multi.

Launch parameters

All the parameter arrays must have the same size:

  • cam_names: {REQUIRED} An array containing the name of the cameras, e.g. '[zed_front,zed_back]'. Note: It is important that all the cameras have a different name to correctly distinguish them.
  • cam_models: {REQUIRED} An array containing the model of the cameras, e.g. '[zed2i,zed2]'
  • cam_serials: An array containing the serial number of the cameras, e.g. [3001234,2001234]
  • cam_ids: An array containing the ID number of the cameras, e.g. [0,1]
  • sim_mode: set it to true when the cameras are streamed by a simulator, such as NVIDIA® Isaac™ Sim. sim_ports then replaces cam_serials and cam_ids.
  • sim_ports: in simulation mode, an array containing the streaming port of each simulated camera, e.g. '[30000,30002]'.
  • sim_address: the address of the simulation server, 127.0.0.1 by default.
  • use_sim_time: use the simulation time from the /clock topic.
  • disable_tf: Only the first camera is configured to broadcast the TF map -> odom -> camera_link to avoid TF conflicts. The TF broadcasting can be disabled by setting this parameter to false. This is required if an external Kalman filter that fuses different odometry sources is used.

:pushpin: Note: One of cam_serials or cam_ids argument is required to uniquely identify the cameras of the system, except in simulation mode where sim_ports is used.

Run the example

Launch the dual camera nodes by using the following command

ros2 launch zed_multi_camera zed_multi_camera.launch.py cam_names:='[zed_front,zed_back]' cam_models:='[zed2i,zed2]' cam_serials:='[31234567,21234567]'

Info: To retrieve the serial number of each connected camera you can use the command $ ZED_Explorer --all.

Note: The parameters cam_models and cam_serials must be modified according to the configuration of your system.

Example with serial numbers:

ros2 launch zed_multi_camera zed_multi_camera.launch.py cam_names:='[zed_front,zed_back]' cam_models:='[<front_camera_model>,<rear_camera_model>]' cam_serials:='[<front_camera_serial>,<rear_camera_serial>]'

Example with ID numbers:

ros2 launch zed_multi_camera zed_multi_camera.launch.py cam_names:='[zed_front,zed_back]' cam_models:='[<front_camera_model>,<rear_camera_model>]' cam_ids:='[<front_camera_id>,<rear_camera_id>]'

:pushpin: Note: For multi-GMSL2 camera setups, it’s advisable to use camera IDs rather than Serial Numbers. Each camera ID linked to a GMSL2 wire remains consistent during reboots, unlike USB3 cameras, which may change.

Simulated cameras

Since v5.6.0 of the ROS 2 Wrapper, the example also starts several cameras streamed by a simulator, such as NVIDIA® Isaac™ Sim with the ZED extension: set sim_mode:=true and give the streaming port of each simulated camera in sim_ports:

ros2 launch zed_multi_camera zed_multi_camera.launch.py cam_names:='[zed_front,zed_rear]' cam_models:='[zedx,zedx]' sim_mode:=true sim_ports:='[30000,30002]'

With ZED SDK >= 5.6 on both the simulator and the ROS 2 side, any number of simulated cameras is supported: each one has its own serial number and calibration, so no serial number or calibration file has to be configured. See Using the ZED with ROS 2 in Isaac™ Sim to set up the simulated cameras.

The Multi-Camera URDF

It is important to create a URDF that defines the position of all the cameras with respect to a reference link.

We provide an example in ‘urdf/zed_multi.urdf.xacro’.

The URDF is created by using the ‘xacro’ tool.

First of all all reference links are created:

```xml

File truncated at 100 lines see the full file

CHANGELOG
No CHANGELOG found.

Package Dependencies

System Dependencies

No direct system dependencies.

Dependant Packages

Name Deps
zed_ipc

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged zed_multi_camera at Robotics Stack Exchange

No version for distro jazzy showing github. Known supported distros are highlighted in the buttons above.

Package Summary

Version 5.6.0
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/stereolabs/zed-ros2-examples.git
VCS Type git
VCS Version master
Last Updated 2026-11-17
Dev Status UNKNOWN
Released UNRELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

This package is a tutorial showing how to configure a multi-camera system.

Additional Links

Maintainers

  • STEREOLABS

Authors

No additional authors.

Multi camera tutorial

In this tutorial you will learn how to create a multi-camera configuration with ZED devices.

For a multi-camera configuration it is important to correctly identify each camera in the system by using its serial number and precisely set the position and the orientation of each of them with respect to a reference point.

The launch file explained

The example launch file zed_multi_camera.launch.py allows to dynamically configure a robotics system equipped with multiple different models of ZED cameras.

The launch file starts a Robot State Publisher node that defines the position and orientation of each camera in the multi-camera system, a Robot State Publisher node for each camera that broadcast all the static frames of the camera, and a ZED node for each camera.

The number of ZED nodes to start is infered by the size of the parameters passed to the launch file from the command line.

All the ZED nodes are loaded in the same ROS 2 container using Composition. It is possible to load other ROS 2 components in the same container to leverage zero copy Intra-Process Communication (IPC).

You can retrieve the name of the container and check the components that are running in the same process by using the command

ros2 component list

for example:

$ ros2 component list
/zed_multi/zed_multi_container
  1  /zed_multi/zedx_front
  2  /zed_multi/zedx_rear

:pushpin: Note: All the nodes run in the same namespace zed_multi.

Launch parameters

All the parameter arrays must have the same size:

  • cam_names: {REQUIRED} An array containing the name of the cameras, e.g. '[zed_front,zed_back]'. Note: It is important that all the cameras have a different name to correctly distinguish them.
  • cam_models: {REQUIRED} An array containing the model of the cameras, e.g. '[zed2i,zed2]'
  • cam_serials: An array containing the serial number of the cameras, e.g. [3001234,2001234]
  • cam_ids: An array containing the ID number of the cameras, e.g. [0,1]
  • sim_mode: set it to true when the cameras are streamed by a simulator, such as NVIDIA® Isaac™ Sim. sim_ports then replaces cam_serials and cam_ids.
  • sim_ports: in simulation mode, an array containing the streaming port of each simulated camera, e.g. '[30000,30002]'.
  • sim_address: the address of the simulation server, 127.0.0.1 by default.
  • use_sim_time: use the simulation time from the /clock topic.
  • disable_tf: Only the first camera is configured to broadcast the TF map -> odom -> camera_link to avoid TF conflicts. The TF broadcasting can be disabled by setting this parameter to false. This is required if an external Kalman filter that fuses different odometry sources is used.

:pushpin: Note: One of cam_serials or cam_ids argument is required to uniquely identify the cameras of the system, except in simulation mode where sim_ports is used.

Run the example

Launch the dual camera nodes by using the following command

ros2 launch zed_multi_camera zed_multi_camera.launch.py cam_names:='[zed_front,zed_back]' cam_models:='[zed2i,zed2]' cam_serials:='[31234567,21234567]'

Info: To retrieve the serial number of each connected camera you can use the command $ ZED_Explorer --all.

Note: The parameters cam_models and cam_serials must be modified according to the configuration of your system.

Example with serial numbers:

ros2 launch zed_multi_camera zed_multi_camera.launch.py cam_names:='[zed_front,zed_back]' cam_models:='[<front_camera_model>,<rear_camera_model>]' cam_serials:='[<front_camera_serial>,<rear_camera_serial>]'

Example with ID numbers:

ros2 launch zed_multi_camera zed_multi_camera.launch.py cam_names:='[zed_front,zed_back]' cam_models:='[<front_camera_model>,<rear_camera_model>]' cam_ids:='[<front_camera_id>,<rear_camera_id>]'

:pushpin: Note: For multi-GMSL2 camera setups, it’s advisable to use camera IDs rather than Serial Numbers. Each camera ID linked to a GMSL2 wire remains consistent during reboots, unlike USB3 cameras, which may change.

Simulated cameras

Since v5.6.0 of the ROS 2 Wrapper, the example also starts several cameras streamed by a simulator, such as NVIDIA® Isaac™ Sim with the ZED extension: set sim_mode:=true and give the streaming port of each simulated camera in sim_ports:

ros2 launch zed_multi_camera zed_multi_camera.launch.py cam_names:='[zed_front,zed_rear]' cam_models:='[zedx,zedx]' sim_mode:=true sim_ports:='[30000,30002]'

With ZED SDK >= 5.6 on both the simulator and the ROS 2 side, any number of simulated cameras is supported: each one has its own serial number and calibration, so no serial number or calibration file has to be configured. See Using the ZED with ROS 2 in Isaac™ Sim to set up the simulated cameras.

The Multi-Camera URDF

It is important to create a URDF that defines the position of all the cameras with respect to a reference link.

We provide an example in ‘urdf/zed_multi.urdf.xacro’.

The URDF is created by using the ‘xacro’ tool.

First of all all reference links are created:

```xml

File truncated at 100 lines see the full file

CHANGELOG
No CHANGELOG found.

Package Dependencies

System Dependencies

No direct system dependencies.

Dependant Packages

Name Deps
zed_ipc

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged zed_multi_camera at Robotics Stack Exchange

No version for distro kilted showing github. Known supported distros are highlighted in the buttons above.

Package Summary

Version 5.6.0
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/stereolabs/zed-ros2-examples.git
VCS Type git
VCS Version master
Last Updated 2026-11-17
Dev Status UNKNOWN
Released UNRELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

This package is a tutorial showing how to configure a multi-camera system.

Additional Links

Maintainers

  • STEREOLABS

Authors

No additional authors.

Multi camera tutorial

In this tutorial you will learn how to create a multi-camera configuration with ZED devices.

For a multi-camera configuration it is important to correctly identify each camera in the system by using its serial number and precisely set the position and the orientation of each of them with respect to a reference point.

The launch file explained

The example launch file zed_multi_camera.launch.py allows to dynamically configure a robotics system equipped with multiple different models of ZED cameras.

The launch file starts a Robot State Publisher node that defines the position and orientation of each camera in the multi-camera system, a Robot State Publisher node for each camera that broadcast all the static frames of the camera, and a ZED node for each camera.

The number of ZED nodes to start is infered by the size of the parameters passed to the launch file from the command line.

All the ZED nodes are loaded in the same ROS 2 container using Composition. It is possible to load other ROS 2 components in the same container to leverage zero copy Intra-Process Communication (IPC).

You can retrieve the name of the container and check the components that are running in the same process by using the command

ros2 component list

for example:

$ ros2 component list
/zed_multi/zed_multi_container
  1  /zed_multi/zedx_front
  2  /zed_multi/zedx_rear

:pushpin: Note: All the nodes run in the same namespace zed_multi.

Launch parameters

All the parameter arrays must have the same size:

  • cam_names: {REQUIRED} An array containing the name of the cameras, e.g. '[zed_front,zed_back]'. Note: It is important that all the cameras have a different name to correctly distinguish them.
  • cam_models: {REQUIRED} An array containing the model of the cameras, e.g. '[zed2i,zed2]'
  • cam_serials: An array containing the serial number of the cameras, e.g. [3001234,2001234]
  • cam_ids: An array containing the ID number of the cameras, e.g. [0,1]
  • sim_mode: set it to true when the cameras are streamed by a simulator, such as NVIDIA® Isaac™ Sim. sim_ports then replaces cam_serials and cam_ids.
  • sim_ports: in simulation mode, an array containing the streaming port of each simulated camera, e.g. '[30000,30002]'.
  • sim_address: the address of the simulation server, 127.0.0.1 by default.
  • use_sim_time: use the simulation time from the /clock topic.
  • disable_tf: Only the first camera is configured to broadcast the TF map -> odom -> camera_link to avoid TF conflicts. The TF broadcasting can be disabled by setting this parameter to false. This is required if an external Kalman filter that fuses different odometry sources is used.

:pushpin: Note: One of cam_serials or cam_ids argument is required to uniquely identify the cameras of the system, except in simulation mode where sim_ports is used.

Run the example

Launch the dual camera nodes by using the following command

ros2 launch zed_multi_camera zed_multi_camera.launch.py cam_names:='[zed_front,zed_back]' cam_models:='[zed2i,zed2]' cam_serials:='[31234567,21234567]'

Info: To retrieve the serial number of each connected camera you can use the command $ ZED_Explorer --all.

Note: The parameters cam_models and cam_serials must be modified according to the configuration of your system.

Example with serial numbers:

ros2 launch zed_multi_camera zed_multi_camera.launch.py cam_names:='[zed_front,zed_back]' cam_models:='[<front_camera_model>,<rear_camera_model>]' cam_serials:='[<front_camera_serial>,<rear_camera_serial>]'

Example with ID numbers:

ros2 launch zed_multi_camera zed_multi_camera.launch.py cam_names:='[zed_front,zed_back]' cam_models:='[<front_camera_model>,<rear_camera_model>]' cam_ids:='[<front_camera_id>,<rear_camera_id>]'

:pushpin: Note: For multi-GMSL2 camera setups, it’s advisable to use camera IDs rather than Serial Numbers. Each camera ID linked to a GMSL2 wire remains consistent during reboots, unlike USB3 cameras, which may change.

Simulated cameras

Since v5.6.0 of the ROS 2 Wrapper, the example also starts several cameras streamed by a simulator, such as NVIDIA® Isaac™ Sim with the ZED extension: set sim_mode:=true and give the streaming port of each simulated camera in sim_ports:

ros2 launch zed_multi_camera zed_multi_camera.launch.py cam_names:='[zed_front,zed_rear]' cam_models:='[zedx,zedx]' sim_mode:=true sim_ports:='[30000,30002]'

With ZED SDK >= 5.6 on both the simulator and the ROS 2 side, any number of simulated cameras is supported: each one has its own serial number and calibration, so no serial number or calibration file has to be configured. See Using the ZED with ROS 2 in Isaac™ Sim to set up the simulated cameras.

The Multi-Camera URDF

It is important to create a URDF that defines the position of all the cameras with respect to a reference link.

We provide an example in ‘urdf/zed_multi.urdf.xacro’.

The URDF is created by using the ‘xacro’ tool.

First of all all reference links are created:

```xml

File truncated at 100 lines see the full file

CHANGELOG
No CHANGELOG found.

Package Dependencies

System Dependencies

No direct system dependencies.

Dependant Packages

Name Deps
zed_ipc

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged zed_multi_camera at Robotics Stack Exchange

No version for distro lyrical showing github. Known supported distros are highlighted in the buttons above.

Package Summary

Version 5.6.0
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/stereolabs/zed-ros2-examples.git
VCS Type git
VCS Version master
Last Updated 2026-11-17
Dev Status UNKNOWN
Released UNRELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

This package is a tutorial showing how to configure a multi-camera system.

Additional Links

Maintainers

  • STEREOLABS

Authors

No additional authors.

Multi camera tutorial

In this tutorial you will learn how to create a multi-camera configuration with ZED devices.

For a multi-camera configuration it is important to correctly identify each camera in the system by using its serial number and precisely set the position and the orientation of each of them with respect to a reference point.

The launch file explained

The example launch file zed_multi_camera.launch.py allows to dynamically configure a robotics system equipped with multiple different models of ZED cameras.

The launch file starts a Robot State Publisher node that defines the position and orientation of each camera in the multi-camera system, a Robot State Publisher node for each camera that broadcast all the static frames of the camera, and a ZED node for each camera.

The number of ZED nodes to start is infered by the size of the parameters passed to the launch file from the command line.

All the ZED nodes are loaded in the same ROS 2 container using Composition. It is possible to load other ROS 2 components in the same container to leverage zero copy Intra-Process Communication (IPC).

You can retrieve the name of the container and check the components that are running in the same process by using the command

ros2 component list

for example:

$ ros2 component list
/zed_multi/zed_multi_container
  1  /zed_multi/zedx_front
  2  /zed_multi/zedx_rear

:pushpin: Note: All the nodes run in the same namespace zed_multi.

Launch parameters

All the parameter arrays must have the same size:

  • cam_names: {REQUIRED} An array containing the name of the cameras, e.g. '[zed_front,zed_back]'. Note: It is important that all the cameras have a different name to correctly distinguish them.
  • cam_models: {REQUIRED} An array containing the model of the cameras, e.g. '[zed2i,zed2]'
  • cam_serials: An array containing the serial number of the cameras, e.g. [3001234,2001234]
  • cam_ids: An array containing the ID number of the cameras, e.g. [0,1]
  • sim_mode: set it to true when the cameras are streamed by a simulator, such as NVIDIA® Isaac™ Sim. sim_ports then replaces cam_serials and cam_ids.
  • sim_ports: in simulation mode, an array containing the streaming port of each simulated camera, e.g. '[30000,30002]'.
  • sim_address: the address of the simulation server, 127.0.0.1 by default.
  • use_sim_time: use the simulation time from the /clock topic.
  • disable_tf: Only the first camera is configured to broadcast the TF map -> odom -> camera_link to avoid TF conflicts. The TF broadcasting can be disabled by setting this parameter to false. This is required if an external Kalman filter that fuses different odometry sources is used.

:pushpin: Note: One of cam_serials or cam_ids argument is required to uniquely identify the cameras of the system, except in simulation mode where sim_ports is used.

Run the example

Launch the dual camera nodes by using the following command

ros2 launch zed_multi_camera zed_multi_camera.launch.py cam_names:='[zed_front,zed_back]' cam_models:='[zed2i,zed2]' cam_serials:='[31234567,21234567]'

Info: To retrieve the serial number of each connected camera you can use the command $ ZED_Explorer --all.

Note: The parameters cam_models and cam_serials must be modified according to the configuration of your system.

Example with serial numbers:

ros2 launch zed_multi_camera zed_multi_camera.launch.py cam_names:='[zed_front,zed_back]' cam_models:='[<front_camera_model>,<rear_camera_model>]' cam_serials:='[<front_camera_serial>,<rear_camera_serial>]'

Example with ID numbers:

ros2 launch zed_multi_camera zed_multi_camera.launch.py cam_names:='[zed_front,zed_back]' cam_models:='[<front_camera_model>,<rear_camera_model>]' cam_ids:='[<front_camera_id>,<rear_camera_id>]'

:pushpin: Note: For multi-GMSL2 camera setups, it’s advisable to use camera IDs rather than Serial Numbers. Each camera ID linked to a GMSL2 wire remains consistent during reboots, unlike USB3 cameras, which may change.

Simulated cameras

Since v5.6.0 of the ROS 2 Wrapper, the example also starts several cameras streamed by a simulator, such as NVIDIA® Isaac™ Sim with the ZED extension: set sim_mode:=true and give the streaming port of each simulated camera in sim_ports:

ros2 launch zed_multi_camera zed_multi_camera.launch.py cam_names:='[zed_front,zed_rear]' cam_models:='[zedx,zedx]' sim_mode:=true sim_ports:='[30000,30002]'

With ZED SDK >= 5.6 on both the simulator and the ROS 2 side, any number of simulated cameras is supported: each one has its own serial number and calibration, so no serial number or calibration file has to be configured. See Using the ZED with ROS 2 in Isaac™ Sim to set up the simulated cameras.

The Multi-Camera URDF

It is important to create a URDF that defines the position of all the cameras with respect to a reference link.

We provide an example in ‘urdf/zed_multi.urdf.xacro’.

The URDF is created by using the ‘xacro’ tool.

First of all all reference links are created:

```xml

File truncated at 100 lines see the full file

CHANGELOG
No CHANGELOG found.

Package Dependencies

System Dependencies

No direct system dependencies.

Dependant Packages

Name Deps
zed_ipc

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged zed_multi_camera at Robotics Stack Exchange

No version for distro rolling showing github. Known supported distros are highlighted in the buttons above.

Package Summary

Version 5.6.0
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/stereolabs/zed-ros2-examples.git
VCS Type git
VCS Version master
Last Updated 2026-11-17
Dev Status UNKNOWN
Released UNRELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

This package is a tutorial showing how to configure a multi-camera system.

Additional Links

Maintainers

  • STEREOLABS

Authors

No additional authors.

Multi camera tutorial

In this tutorial you will learn how to create a multi-camera configuration with ZED devices.

For a multi-camera configuration it is important to correctly identify each camera in the system by using its serial number and precisely set the position and the orientation of each of them with respect to a reference point.

The launch file explained

The example launch file zed_multi_camera.launch.py allows to dynamically configure a robotics system equipped with multiple different models of ZED cameras.

The launch file starts a Robot State Publisher node that defines the position and orientation of each camera in the multi-camera system, a Robot State Publisher node for each camera that broadcast all the static frames of the camera, and a ZED node for each camera.

The number of ZED nodes to start is infered by the size of the parameters passed to the launch file from the command line.

All the ZED nodes are loaded in the same ROS 2 container using Composition. It is possible to load other ROS 2 components in the same container to leverage zero copy Intra-Process Communication (IPC).

You can retrieve the name of the container and check the components that are running in the same process by using the command

ros2 component list

for example:

$ ros2 component list
/zed_multi/zed_multi_container
  1  /zed_multi/zedx_front
  2  /zed_multi/zedx_rear

:pushpin: Note: All the nodes run in the same namespace zed_multi.

Launch parameters

All the parameter arrays must have the same size:

  • cam_names: {REQUIRED} An array containing the name of the cameras, e.g. '[zed_front,zed_back]'. Note: It is important that all the cameras have a different name to correctly distinguish them.
  • cam_models: {REQUIRED} An array containing the model of the cameras, e.g. '[zed2i,zed2]'
  • cam_serials: An array containing the serial number of the cameras, e.g. [3001234,2001234]
  • cam_ids: An array containing the ID number of the cameras, e.g. [0,1]
  • sim_mode: set it to true when the cameras are streamed by a simulator, such as NVIDIA® Isaac™ Sim. sim_ports then replaces cam_serials and cam_ids.
  • sim_ports: in simulation mode, an array containing the streaming port of each simulated camera, e.g. '[30000,30002]'.
  • sim_address: the address of the simulation server, 127.0.0.1 by default.
  • use_sim_time: use the simulation time from the /clock topic.
  • disable_tf: Only the first camera is configured to broadcast the TF map -> odom -> camera_link to avoid TF conflicts. The TF broadcasting can be disabled by setting this parameter to false. This is required if an external Kalman filter that fuses different odometry sources is used.

:pushpin: Note: One of cam_serials or cam_ids argument is required to uniquely identify the cameras of the system, except in simulation mode where sim_ports is used.

Run the example

Launch the dual camera nodes by using the following command

ros2 launch zed_multi_camera zed_multi_camera.launch.py cam_names:='[zed_front,zed_back]' cam_models:='[zed2i,zed2]' cam_serials:='[31234567,21234567]'

Info: To retrieve the serial number of each connected camera you can use the command $ ZED_Explorer --all.

Note: The parameters cam_models and cam_serials must be modified according to the configuration of your system.

Example with serial numbers:

ros2 launch zed_multi_camera zed_multi_camera.launch.py cam_names:='[zed_front,zed_back]' cam_models:='[<front_camera_model>,<rear_camera_model>]' cam_serials:='[<front_camera_serial>,<rear_camera_serial>]'

Example with ID numbers:

ros2 launch zed_multi_camera zed_multi_camera.launch.py cam_names:='[zed_front,zed_back]' cam_models:='[<front_camera_model>,<rear_camera_model>]' cam_ids:='[<front_camera_id>,<rear_camera_id>]'

:pushpin: Note: For multi-GMSL2 camera setups, it’s advisable to use camera IDs rather than Serial Numbers. Each camera ID linked to a GMSL2 wire remains consistent during reboots, unlike USB3 cameras, which may change.

Simulated cameras

Since v5.6.0 of the ROS 2 Wrapper, the example also starts several cameras streamed by a simulator, such as NVIDIA® Isaac™ Sim with the ZED extension: set sim_mode:=true and give the streaming port of each simulated camera in sim_ports:

ros2 launch zed_multi_camera zed_multi_camera.launch.py cam_names:='[zed_front,zed_rear]' cam_models:='[zedx,zedx]' sim_mode:=true sim_ports:='[30000,30002]'

With ZED SDK >= 5.6 on both the simulator and the ROS 2 side, any number of simulated cameras is supported: each one has its own serial number and calibration, so no serial number or calibration file has to be configured. See Using the ZED with ROS 2 in Isaac™ Sim to set up the simulated cameras.

The Multi-Camera URDF

It is important to create a URDF that defines the position of all the cameras with respect to a reference link.

We provide an example in ‘urdf/zed_multi.urdf.xacro’.

The URDF is created by using the ‘xacro’ tool.

First of all all reference links are created:

```xml

File truncated at 100 lines see the full file

CHANGELOG
No CHANGELOG found.

Package Dependencies

System Dependencies

No direct system dependencies.

Dependant Packages

Name Deps
zed_ipc

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged zed_multi_camera at Robotics Stack Exchange

Package Summary

Version 5.6.0
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/stereolabs/zed-ros2-examples.git
VCS Type git
VCS Version master
Last Updated 2026-11-17
Dev Status UNKNOWN
Released UNRELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

This package is a tutorial showing how to configure a multi-camera system.

Additional Links

Maintainers

  • STEREOLABS

Authors

No additional authors.

Multi camera tutorial

In this tutorial you will learn how to create a multi-camera configuration with ZED devices.

For a multi-camera configuration it is important to correctly identify each camera in the system by using its serial number and precisely set the position and the orientation of each of them with respect to a reference point.

The launch file explained

The example launch file zed_multi_camera.launch.py allows to dynamically configure a robotics system equipped with multiple different models of ZED cameras.

The launch file starts a Robot State Publisher node that defines the position and orientation of each camera in the multi-camera system, a Robot State Publisher node for each camera that broadcast all the static frames of the camera, and a ZED node for each camera.

The number of ZED nodes to start is infered by the size of the parameters passed to the launch file from the command line.

All the ZED nodes are loaded in the same ROS 2 container using Composition. It is possible to load other ROS 2 components in the same container to leverage zero copy Intra-Process Communication (IPC).

You can retrieve the name of the container and check the components that are running in the same process by using the command

ros2 component list

for example:

$ ros2 component list
/zed_multi/zed_multi_container
  1  /zed_multi/zedx_front
  2  /zed_multi/zedx_rear

:pushpin: Note: All the nodes run in the same namespace zed_multi.

Launch parameters

All the parameter arrays must have the same size:

  • cam_names: {REQUIRED} An array containing the name of the cameras, e.g. '[zed_front,zed_back]'. Note: It is important that all the cameras have a different name to correctly distinguish them.
  • cam_models: {REQUIRED} An array containing the model of the cameras, e.g. '[zed2i,zed2]'
  • cam_serials: An array containing the serial number of the cameras, e.g. [3001234,2001234]
  • cam_ids: An array containing the ID number of the cameras, e.g. [0,1]
  • sim_mode: set it to true when the cameras are streamed by a simulator, such as NVIDIA® Isaac™ Sim. sim_ports then replaces cam_serials and cam_ids.
  • sim_ports: in simulation mode, an array containing the streaming port of each simulated camera, e.g. '[30000,30002]'.
  • sim_address: the address of the simulation server, 127.0.0.1 by default.
  • use_sim_time: use the simulation time from the /clock topic.
  • disable_tf: Only the first camera is configured to broadcast the TF map -> odom -> camera_link to avoid TF conflicts. The TF broadcasting can be disabled by setting this parameter to false. This is required if an external Kalman filter that fuses different odometry sources is used.

:pushpin: Note: One of cam_serials or cam_ids argument is required to uniquely identify the cameras of the system, except in simulation mode where sim_ports is used.

Run the example

Launch the dual camera nodes by using the following command

ros2 launch zed_multi_camera zed_multi_camera.launch.py cam_names:='[zed_front,zed_back]' cam_models:='[zed2i,zed2]' cam_serials:='[31234567,21234567]'

Info: To retrieve the serial number of each connected camera you can use the command $ ZED_Explorer --all.

Note: The parameters cam_models and cam_serials must be modified according to the configuration of your system.

Example with serial numbers:

ros2 launch zed_multi_camera zed_multi_camera.launch.py cam_names:='[zed_front,zed_back]' cam_models:='[<front_camera_model>,<rear_camera_model>]' cam_serials:='[<front_camera_serial>,<rear_camera_serial>]'

Example with ID numbers:

ros2 launch zed_multi_camera zed_multi_camera.launch.py cam_names:='[zed_front,zed_back]' cam_models:='[<front_camera_model>,<rear_camera_model>]' cam_ids:='[<front_camera_id>,<rear_camera_id>]'

:pushpin: Note: For multi-GMSL2 camera setups, it’s advisable to use camera IDs rather than Serial Numbers. Each camera ID linked to a GMSL2 wire remains consistent during reboots, unlike USB3 cameras, which may change.

Simulated cameras

Since v5.6.0 of the ROS 2 Wrapper, the example also starts several cameras streamed by a simulator, such as NVIDIA® Isaac™ Sim with the ZED extension: set sim_mode:=true and give the streaming port of each simulated camera in sim_ports:

ros2 launch zed_multi_camera zed_multi_camera.launch.py cam_names:='[zed_front,zed_rear]' cam_models:='[zedx,zedx]' sim_mode:=true sim_ports:='[30000,30002]'

With ZED SDK >= 5.6 on both the simulator and the ROS 2 side, any number of simulated cameras is supported: each one has its own serial number and calibration, so no serial number or calibration file has to be configured. See Using the ZED with ROS 2 in Isaac™ Sim to set up the simulated cameras.

The Multi-Camera URDF

It is important to create a URDF that defines the position of all the cameras with respect to a reference link.

We provide an example in ‘urdf/zed_multi.urdf.xacro’.

The URDF is created by using the ‘xacro’ tool.

First of all all reference links are created:

```xml

File truncated at 100 lines see the full file

CHANGELOG
No CHANGELOG found.

Package Dependencies

System Dependencies

No direct system dependencies.

Dependant Packages

Name Deps
zed_ipc

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged zed_multi_camera at Robotics Stack Exchange

No version for distro galactic showing github. Known supported distros are highlighted in the buttons above.

Package Summary

Version 5.6.0
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/stereolabs/zed-ros2-examples.git
VCS Type git
VCS Version master
Last Updated 2026-11-17
Dev Status UNKNOWN
Released UNRELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

This package is a tutorial showing how to configure a multi-camera system.

Additional Links

Maintainers

  • STEREOLABS

Authors

No additional authors.

Multi camera tutorial

In this tutorial you will learn how to create a multi-camera configuration with ZED devices.

For a multi-camera configuration it is important to correctly identify each camera in the system by using its serial number and precisely set the position and the orientation of each of them with respect to a reference point.

The launch file explained

The example launch file zed_multi_camera.launch.py allows to dynamically configure a robotics system equipped with multiple different models of ZED cameras.

The launch file starts a Robot State Publisher node that defines the position and orientation of each camera in the multi-camera system, a Robot State Publisher node for each camera that broadcast all the static frames of the camera, and a ZED node for each camera.

The number of ZED nodes to start is infered by the size of the parameters passed to the launch file from the command line.

All the ZED nodes are loaded in the same ROS 2 container using Composition. It is possible to load other ROS 2 components in the same container to leverage zero copy Intra-Process Communication (IPC).

You can retrieve the name of the container and check the components that are running in the same process by using the command

ros2 component list

for example:

$ ros2 component list
/zed_multi/zed_multi_container
  1  /zed_multi/zedx_front
  2  /zed_multi/zedx_rear

:pushpin: Note: All the nodes run in the same namespace zed_multi.

Launch parameters

All the parameter arrays must have the same size:

  • cam_names: {REQUIRED} An array containing the name of the cameras, e.g. '[zed_front,zed_back]'. Note: It is important that all the cameras have a different name to correctly distinguish them.
  • cam_models: {REQUIRED} An array containing the model of the cameras, e.g. '[zed2i,zed2]'
  • cam_serials: An array containing the serial number of the cameras, e.g. [3001234,2001234]
  • cam_ids: An array containing the ID number of the cameras, e.g. [0,1]
  • sim_mode: set it to true when the cameras are streamed by a simulator, such as NVIDIA® Isaac™ Sim. sim_ports then replaces cam_serials and cam_ids.
  • sim_ports: in simulation mode, an array containing the streaming port of each simulated camera, e.g. '[30000,30002]'.
  • sim_address: the address of the simulation server, 127.0.0.1 by default.
  • use_sim_time: use the simulation time from the /clock topic.
  • disable_tf: Only the first camera is configured to broadcast the TF map -> odom -> camera_link to avoid TF conflicts. The TF broadcasting can be disabled by setting this parameter to false. This is required if an external Kalman filter that fuses different odometry sources is used.

:pushpin: Note: One of cam_serials or cam_ids argument is required to uniquely identify the cameras of the system, except in simulation mode where sim_ports is used.

Run the example

Launch the dual camera nodes by using the following command

ros2 launch zed_multi_camera zed_multi_camera.launch.py cam_names:='[zed_front,zed_back]' cam_models:='[zed2i,zed2]' cam_serials:='[31234567,21234567]'

Info: To retrieve the serial number of each connected camera you can use the command $ ZED_Explorer --all.

Note: The parameters cam_models and cam_serials must be modified according to the configuration of your system.

Example with serial numbers:

ros2 launch zed_multi_camera zed_multi_camera.launch.py cam_names:='[zed_front,zed_back]' cam_models:='[<front_camera_model>,<rear_camera_model>]' cam_serials:='[<front_camera_serial>,<rear_camera_serial>]'

Example with ID numbers:

ros2 launch zed_multi_camera zed_multi_camera.launch.py cam_names:='[zed_front,zed_back]' cam_models:='[<front_camera_model>,<rear_camera_model>]' cam_ids:='[<front_camera_id>,<rear_camera_id>]'

:pushpin: Note: For multi-GMSL2 camera setups, it’s advisable to use camera IDs rather than Serial Numbers. Each camera ID linked to a GMSL2 wire remains consistent during reboots, unlike USB3 cameras, which may change.

Simulated cameras

Since v5.6.0 of the ROS 2 Wrapper, the example also starts several cameras streamed by a simulator, such as NVIDIA® Isaac™ Sim with the ZED extension: set sim_mode:=true and give the streaming port of each simulated camera in sim_ports:

ros2 launch zed_multi_camera zed_multi_camera.launch.py cam_names:='[zed_front,zed_rear]' cam_models:='[zedx,zedx]' sim_mode:=true sim_ports:='[30000,30002]'

With ZED SDK >= 5.6 on both the simulator and the ROS 2 side, any number of simulated cameras is supported: each one has its own serial number and calibration, so no serial number or calibration file has to be configured. See Using the ZED with ROS 2 in Isaac™ Sim to set up the simulated cameras.

The Multi-Camera URDF

It is important to create a URDF that defines the position of all the cameras with respect to a reference link.

We provide an example in ‘urdf/zed_multi.urdf.xacro’.

The URDF is created by using the ‘xacro’ tool.

First of all all reference links are created:

```xml

File truncated at 100 lines see the full file

CHANGELOG
No CHANGELOG found.

Package Dependencies

System Dependencies

No direct system dependencies.

Dependant Packages

Name Deps
zed_ipc

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged zed_multi_camera at Robotics Stack Exchange

No version for distro iron showing github. Known supported distros are highlighted in the buttons above.

Package Summary

Version 5.6.0
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/stereolabs/zed-ros2-examples.git
VCS Type git
VCS Version master
Last Updated 2026-11-17
Dev Status UNKNOWN
Released UNRELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

This package is a tutorial showing how to configure a multi-camera system.

Additional Links

Maintainers

  • STEREOLABS

Authors

No additional authors.

Multi camera tutorial

In this tutorial you will learn how to create a multi-camera configuration with ZED devices.

For a multi-camera configuration it is important to correctly identify each camera in the system by using its serial number and precisely set the position and the orientation of each of them with respect to a reference point.

The launch file explained

The example launch file zed_multi_camera.launch.py allows to dynamically configure a robotics system equipped with multiple different models of ZED cameras.

The launch file starts a Robot State Publisher node that defines the position and orientation of each camera in the multi-camera system, a Robot State Publisher node for each camera that broadcast all the static frames of the camera, and a ZED node for each camera.

The number of ZED nodes to start is infered by the size of the parameters passed to the launch file from the command line.

All the ZED nodes are loaded in the same ROS 2 container using Composition. It is possible to load other ROS 2 components in the same container to leverage zero copy Intra-Process Communication (IPC).

You can retrieve the name of the container and check the components that are running in the same process by using the command

ros2 component list

for example:

$ ros2 component list
/zed_multi/zed_multi_container
  1  /zed_multi/zedx_front
  2  /zed_multi/zedx_rear

:pushpin: Note: All the nodes run in the same namespace zed_multi.

Launch parameters

All the parameter arrays must have the same size:

  • cam_names: {REQUIRED} An array containing the name of the cameras, e.g. '[zed_front,zed_back]'. Note: It is important that all the cameras have a different name to correctly distinguish them.
  • cam_models: {REQUIRED} An array containing the model of the cameras, e.g. '[zed2i,zed2]'
  • cam_serials: An array containing the serial number of the cameras, e.g. [3001234,2001234]
  • cam_ids: An array containing the ID number of the cameras, e.g. [0,1]
  • sim_mode: set it to true when the cameras are streamed by a simulator, such as NVIDIA® Isaac™ Sim. sim_ports then replaces cam_serials and cam_ids.
  • sim_ports: in simulation mode, an array containing the streaming port of each simulated camera, e.g. '[30000,30002]'.
  • sim_address: the address of the simulation server, 127.0.0.1 by default.
  • use_sim_time: use the simulation time from the /clock topic.
  • disable_tf: Only the first camera is configured to broadcast the TF map -> odom -> camera_link to avoid TF conflicts. The TF broadcasting can be disabled by setting this parameter to false. This is required if an external Kalman filter that fuses different odometry sources is used.

:pushpin: Note: One of cam_serials or cam_ids argument is required to uniquely identify the cameras of the system, except in simulation mode where sim_ports is used.

Run the example

Launch the dual camera nodes by using the following command

ros2 launch zed_multi_camera zed_multi_camera.launch.py cam_names:='[zed_front,zed_back]' cam_models:='[zed2i,zed2]' cam_serials:='[31234567,21234567]'

Info: To retrieve the serial number of each connected camera you can use the command $ ZED_Explorer --all.

Note: The parameters cam_models and cam_serials must be modified according to the configuration of your system.

Example with serial numbers:

ros2 launch zed_multi_camera zed_multi_camera.launch.py cam_names:='[zed_front,zed_back]' cam_models:='[<front_camera_model>,<rear_camera_model>]' cam_serials:='[<front_camera_serial>,<rear_camera_serial>]'

Example with ID numbers:

ros2 launch zed_multi_camera zed_multi_camera.launch.py cam_names:='[zed_front,zed_back]' cam_models:='[<front_camera_model>,<rear_camera_model>]' cam_ids:='[<front_camera_id>,<rear_camera_id>]'

:pushpin: Note: For multi-GMSL2 camera setups, it’s advisable to use camera IDs rather than Serial Numbers. Each camera ID linked to a GMSL2 wire remains consistent during reboots, unlike USB3 cameras, which may change.

Simulated cameras

Since v5.6.0 of the ROS 2 Wrapper, the example also starts several cameras streamed by a simulator, such as NVIDIA® Isaac™ Sim with the ZED extension: set sim_mode:=true and give the streaming port of each simulated camera in sim_ports:

ros2 launch zed_multi_camera zed_multi_camera.launch.py cam_names:='[zed_front,zed_rear]' cam_models:='[zedx,zedx]' sim_mode:=true sim_ports:='[30000,30002]'

With ZED SDK >= 5.6 on both the simulator and the ROS 2 side, any number of simulated cameras is supported: each one has its own serial number and calibration, so no serial number or calibration file has to be configured. See Using the ZED with ROS 2 in Isaac™ Sim to set up the simulated cameras.

The Multi-Camera URDF

It is important to create a URDF that defines the position of all the cameras with respect to a reference link.

We provide an example in ‘urdf/zed_multi.urdf.xacro’.

The URDF is created by using the ‘xacro’ tool.

First of all all reference links are created:

```xml

File truncated at 100 lines see the full file

CHANGELOG
No CHANGELOG found.

Package Dependencies

System Dependencies

No direct system dependencies.

Dependant Packages

Name Deps
zed_ipc

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged zed_multi_camera at Robotics Stack Exchange

No version for distro melodic showing github. Known supported distros are highlighted in the buttons above.

Package Summary

Version 5.6.0
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/stereolabs/zed-ros2-examples.git
VCS Type git
VCS Version master
Last Updated 2026-11-17
Dev Status UNKNOWN
Released UNRELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

This package is a tutorial showing how to configure a multi-camera system.

Additional Links

Maintainers

  • STEREOLABS

Authors

No additional authors.

Multi camera tutorial

In this tutorial you will learn how to create a multi-camera configuration with ZED devices.

For a multi-camera configuration it is important to correctly identify each camera in the system by using its serial number and precisely set the position and the orientation of each of them with respect to a reference point.

The launch file explained

The example launch file zed_multi_camera.launch.py allows to dynamically configure a robotics system equipped with multiple different models of ZED cameras.

The launch file starts a Robot State Publisher node that defines the position and orientation of each camera in the multi-camera system, a Robot State Publisher node for each camera that broadcast all the static frames of the camera, and a ZED node for each camera.

The number of ZED nodes to start is infered by the size of the parameters passed to the launch file from the command line.

All the ZED nodes are loaded in the same ROS 2 container using Composition. It is possible to load other ROS 2 components in the same container to leverage zero copy Intra-Process Communication (IPC).

You can retrieve the name of the container and check the components that are running in the same process by using the command

ros2 component list

for example:

$ ros2 component list
/zed_multi/zed_multi_container
  1  /zed_multi/zedx_front
  2  /zed_multi/zedx_rear

:pushpin: Note: All the nodes run in the same namespace zed_multi.

Launch parameters

All the parameter arrays must have the same size:

  • cam_names: {REQUIRED} An array containing the name of the cameras, e.g. '[zed_front,zed_back]'. Note: It is important that all the cameras have a different name to correctly distinguish them.
  • cam_models: {REQUIRED} An array containing the model of the cameras, e.g. '[zed2i,zed2]'
  • cam_serials: An array containing the serial number of the cameras, e.g. [3001234,2001234]
  • cam_ids: An array containing the ID number of the cameras, e.g. [0,1]
  • sim_mode: set it to true when the cameras are streamed by a simulator, such as NVIDIA® Isaac™ Sim. sim_ports then replaces cam_serials and cam_ids.
  • sim_ports: in simulation mode, an array containing the streaming port of each simulated camera, e.g. '[30000,30002]'.
  • sim_address: the address of the simulation server, 127.0.0.1 by default.
  • use_sim_time: use the simulation time from the /clock topic.
  • disable_tf: Only the first camera is configured to broadcast the TF map -> odom -> camera_link to avoid TF conflicts. The TF broadcasting can be disabled by setting this parameter to false. This is required if an external Kalman filter that fuses different odometry sources is used.

:pushpin: Note: One of cam_serials or cam_ids argument is required to uniquely identify the cameras of the system, except in simulation mode where sim_ports is used.

Run the example

Launch the dual camera nodes by using the following command

ros2 launch zed_multi_camera zed_multi_camera.launch.py cam_names:='[zed_front,zed_back]' cam_models:='[zed2i,zed2]' cam_serials:='[31234567,21234567]'

Info: To retrieve the serial number of each connected camera you can use the command $ ZED_Explorer --all.

Note: The parameters cam_models and cam_serials must be modified according to the configuration of your system.

Example with serial numbers:

ros2 launch zed_multi_camera zed_multi_camera.launch.py cam_names:='[zed_front,zed_back]' cam_models:='[<front_camera_model>,<rear_camera_model>]' cam_serials:='[<front_camera_serial>,<rear_camera_serial>]'

Example with ID numbers:

ros2 launch zed_multi_camera zed_multi_camera.launch.py cam_names:='[zed_front,zed_back]' cam_models:='[<front_camera_model>,<rear_camera_model>]' cam_ids:='[<front_camera_id>,<rear_camera_id>]'

:pushpin: Note: For multi-GMSL2 camera setups, it’s advisable to use camera IDs rather than Serial Numbers. Each camera ID linked to a GMSL2 wire remains consistent during reboots, unlike USB3 cameras, which may change.

Simulated cameras

Since v5.6.0 of the ROS 2 Wrapper, the example also starts several cameras streamed by a simulator, such as NVIDIA® Isaac™ Sim with the ZED extension: set sim_mode:=true and give the streaming port of each simulated camera in sim_ports:

ros2 launch zed_multi_camera zed_multi_camera.launch.py cam_names:='[zed_front,zed_rear]' cam_models:='[zedx,zedx]' sim_mode:=true sim_ports:='[30000,30002]'

With ZED SDK >= 5.6 on both the simulator and the ROS 2 side, any number of simulated cameras is supported: each one has its own serial number and calibration, so no serial number or calibration file has to be configured. See Using the ZED with ROS 2 in Isaac™ Sim to set up the simulated cameras.

The Multi-Camera URDF

It is important to create a URDF that defines the position of all the cameras with respect to a reference link.

We provide an example in ‘urdf/zed_multi.urdf.xacro’.

The URDF is created by using the ‘xacro’ tool.

First of all all reference links are created:

```xml

File truncated at 100 lines see the full file

CHANGELOG
No CHANGELOG found.

Package Dependencies

System Dependencies

No direct system dependencies.

Dependant Packages

Name Deps
zed_ipc

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged zed_multi_camera at Robotics Stack Exchange

No version for distro noetic showing github. Known supported distros are highlighted in the buttons above.

Package Summary

Version 5.6.0
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/stereolabs/zed-ros2-examples.git
VCS Type git
VCS Version master
Last Updated 2026-11-17
Dev Status UNKNOWN
Released UNRELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

This package is a tutorial showing how to configure a multi-camera system.

Additional Links

Maintainers

  • STEREOLABS

Authors

No additional authors.

Multi camera tutorial

In this tutorial you will learn how to create a multi-camera configuration with ZED devices.

For a multi-camera configuration it is important to correctly identify each camera in the system by using its serial number and precisely set the position and the orientation of each of them with respect to a reference point.

The launch file explained

The example launch file zed_multi_camera.launch.py allows to dynamically configure a robotics system equipped with multiple different models of ZED cameras.

The launch file starts a Robot State Publisher node that defines the position and orientation of each camera in the multi-camera system, a Robot State Publisher node for each camera that broadcast all the static frames of the camera, and a ZED node for each camera.

The number of ZED nodes to start is infered by the size of the parameters passed to the launch file from the command line.

All the ZED nodes are loaded in the same ROS 2 container using Composition. It is possible to load other ROS 2 components in the same container to leverage zero copy Intra-Process Communication (IPC).

You can retrieve the name of the container and check the components that are running in the same process by using the command

ros2 component list

for example:

$ ros2 component list
/zed_multi/zed_multi_container
  1  /zed_multi/zedx_front
  2  /zed_multi/zedx_rear

:pushpin: Note: All the nodes run in the same namespace zed_multi.

Launch parameters

All the parameter arrays must have the same size:

  • cam_names: {REQUIRED} An array containing the name of the cameras, e.g. '[zed_front,zed_back]'. Note: It is important that all the cameras have a different name to correctly distinguish them.
  • cam_models: {REQUIRED} An array containing the model of the cameras, e.g. '[zed2i,zed2]'
  • cam_serials: An array containing the serial number of the cameras, e.g. [3001234,2001234]
  • cam_ids: An array containing the ID number of the cameras, e.g. [0,1]
  • sim_mode: set it to true when the cameras are streamed by a simulator, such as NVIDIA® Isaac™ Sim. sim_ports then replaces cam_serials and cam_ids.
  • sim_ports: in simulation mode, an array containing the streaming port of each simulated camera, e.g. '[30000,30002]'.
  • sim_address: the address of the simulation server, 127.0.0.1 by default.
  • use_sim_time: use the simulation time from the /clock topic.
  • disable_tf: Only the first camera is configured to broadcast the TF map -> odom -> camera_link to avoid TF conflicts. The TF broadcasting can be disabled by setting this parameter to false. This is required if an external Kalman filter that fuses different odometry sources is used.

:pushpin: Note: One of cam_serials or cam_ids argument is required to uniquely identify the cameras of the system, except in simulation mode where sim_ports is used.

Run the example

Launch the dual camera nodes by using the following command

ros2 launch zed_multi_camera zed_multi_camera.launch.py cam_names:='[zed_front,zed_back]' cam_models:='[zed2i,zed2]' cam_serials:='[31234567,21234567]'

Info: To retrieve the serial number of each connected camera you can use the command $ ZED_Explorer --all.

Note: The parameters cam_models and cam_serials must be modified according to the configuration of your system.

Example with serial numbers:

ros2 launch zed_multi_camera zed_multi_camera.launch.py cam_names:='[zed_front,zed_back]' cam_models:='[<front_camera_model>,<rear_camera_model>]' cam_serials:='[<front_camera_serial>,<rear_camera_serial>]'

Example with ID numbers:

ros2 launch zed_multi_camera zed_multi_camera.launch.py cam_names:='[zed_front,zed_back]' cam_models:='[<front_camera_model>,<rear_camera_model>]' cam_ids:='[<front_camera_id>,<rear_camera_id>]'

:pushpin: Note: For multi-GMSL2 camera setups, it’s advisable to use camera IDs rather than Serial Numbers. Each camera ID linked to a GMSL2 wire remains consistent during reboots, unlike USB3 cameras, which may change.

Simulated cameras

Since v5.6.0 of the ROS 2 Wrapper, the example also starts several cameras streamed by a simulator, such as NVIDIA® Isaac™ Sim with the ZED extension: set sim_mode:=true and give the streaming port of each simulated camera in sim_ports:

ros2 launch zed_multi_camera zed_multi_camera.launch.py cam_names:='[zed_front,zed_rear]' cam_models:='[zedx,zedx]' sim_mode:=true sim_ports:='[30000,30002]'

With ZED SDK >= 5.6 on both the simulator and the ROS 2 side, any number of simulated cameras is supported: each one has its own serial number and calibration, so no serial number or calibration file has to be configured. See Using the ZED with ROS 2 in Isaac™ Sim to set up the simulated cameras.

The Multi-Camera URDF

It is important to create a URDF that defines the position of all the cameras with respect to a reference link.

We provide an example in ‘urdf/zed_multi.urdf.xacro’.

The URDF is created by using the ‘xacro’ tool.

First of all all reference links are created:

```xml

File truncated at 100 lines see the full file

CHANGELOG
No CHANGELOG found.

Package Dependencies

System Dependencies

No direct system dependencies.

Dependant Packages

Name Deps
zed_ipc

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged zed_multi_camera at Robotics Stack Exchange