Multiple Cameras Example

This example demonstrates how to start the camera node and streaming with two cameras using the rs_dual_camera_launch.py.

ros2 launch realsense2_camera rs_dual_camera_launch.py serial_no1:=<serial number of the first camera> serial_no2:=<serial number of the second camera>

Example:

Let's say the serial numbers of two RS cameras are 207322251310 and 234422060144.

ros2 launch realsense2_camera rs_dual_camera_launch.py serial_no1:="'207322251310'" serial_no2:="'234422060144'"

Or with underscore as prefix (this way must be used when there are leading zeros (0) in the serial number. e.g. 007322251310)

ros2 launch realsense2_camera rs_dual_camera_launch.py serial_no1:=_007322251310 serial_no2:=_234422060144

How to know the serial number?

Method 1: Using the rs-enumerate-devices tool

rs-enumerate-devices -s

Method 2: Connect single camera and run

ros2 launch realsense2_camera rs_launch.py

and looking for the serial number in the log printed to screen under "[INFO][...] Device Serial No:".

More Examples: