forked from IntelRealSense/realsense-ros
-
Notifications
You must be signed in to change notification settings - Fork 1
/
rs_multiple_devices.launch
36 lines (33 loc) · 1.96 KB
/
rs_multiple_devices.launch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<launch>
<arg name="serial_no_camera1" default=""/> <!-- Note: Replace with actual serial number -->
<arg name="serial_no_camera2" default=""/> <!-- Note: Replace with actual serial number -->
<arg name="serial_no_camera3" default=""/> <!-- Note: Replace with actual serial number -->
<arg name="camera1" default="camera1"/> <!-- Note: Replace with camera name -->
<arg name="camera2" default="camera2"/> <!-- Note: Replace with camera name -->
<arg name="camera3" default="camera3"/> <!-- Note: Replace with camera name -->
<arg name="tf_prefix_camera1" default="$(arg camera1)"/>
<arg name="tf_prefix_camera2" default="$(arg camera2)"/>
<arg name="tf_prefix_camera3" default="$(arg camera3)"/>
<arg name="initial_reset" default="false"/>
<group ns="$(arg camera1)">
<include file="$(find any_realsense2_camera)/launch/includes/nodelet.launch.xml">
<arg name="serial_no" value="$(arg serial_no_camera1)"/>
<arg name="tf_prefix" value="$(arg tf_prefix_camera1)"/>
<arg name="initial_reset" value="$(arg initial_reset)"/>
</include>
</group>
<group ns="$(arg camera2)">
<include file="$(find any_realsense2_camera)/launch/includes/nodelet.launch.xml">
<arg name="serial_no" value="$(arg serial_no_camera2)"/>
<arg name="tf_prefix" value="$(arg tf_prefix_camera2)"/>
<arg name="initial_reset" value="$(arg initial_reset)"/>
</include>
</group>
<group ns="$(arg camera3)" if="$(eval serial_no_camera3 != '')">
<include file="$(find any_realsense2_camera)/launch/includes/nodelet.launch.xml">
<arg name="serial_no" value="$(arg serial_no_camera3)"/>
<arg name="tf_prefix" value="$(arg tf_prefix_camera3)"/>
<arg name="initial_reset" value="$(arg initial_reset)"/>
</include>
</group>
</launch>