Skip to content

Commit 3e32933

Browse files
committed
add depth argument to configure scan_processing. With this configuration scan works for both depth_regratation false and true
1 parent b26d199 commit 3e32933

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

turtlebot_bringup/launch/3dsensor.launch

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121

2222
<!-- Factory-calibrated depth registration -->
2323
<arg name="depth_registration" default="true"/>
24+
<arg if="$(arg depth_registration)" name="depth" value="depth_registered" />
25+
<arg unless="$(arg depth_registration)" name="depth" value="depth" />
2426

2527
<!-- Processing Modules -->
2628
<arg name="rgb_processing" default="true"/>
@@ -62,13 +64,13 @@
6264
<param name="scan_height" value="10"/>
6365
<param name="output_frame_id" value="/$(arg camera)_depth_frame"/>
6466
<param name="range_min" value="0.45"/>
65-
<remap from="image" to="$(arg camera)/depth/image_raw"/>
67+
<remap from="image" to="$(arg camera)/$(arg depth)/image_raw"/>
6668
<remap from="scan" to="$(arg scan_topic)"/>
6769

6870
<!-- Somehow topics here get prefixed by "$(arg camera)" when not inside an app namespace,
6971
so in this case "$(arg scan_topic)" must provide an absolute topic name (issue #88).
7072
Probably is a bug in the nodelet manager: https://github.com/ros/nodelet_core/issues/7 -->
71-
<remap from="$(arg camera)/image" to="$(arg camera)/depth/image_raw"/>
73+
<remap from="$(arg camera)/image" to="$(arg camera)/$(arg depth)/image_raw"/>
7274
<remap from="$(arg camera)/scan" to="$(arg scan_topic)"/>
7375
</node>
7476
</group>

0 commit comments

Comments
 (0)