Skip to content

Commit

Permalink
rectify rgbd outside rgbd.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
tetov committed Aug 20, 2024
1 parent a981cee commit 838d37f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 6 additions & 0 deletions launch/pointcloud.launch
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
<arg name="rectify_rgb" default="true" />
<arg name="no_record" default="false" />

<node pkg="nodelet" type="nodelet" name="rectify_color"
args="load image_proc/rectify $(arg name)_nodelet_manager" if="$(arg rectify_rgb)">
<remap from="image_mono" to="$(arg name)/rgb/image_raw" />
<remap from="image_rect" to="$(arg name)/rgb/image_rect" />
</node>

<node pkg="nodelet" type="nodelet" name="depth_image_to_rgb_pointcloud"
args="load depth_image_proc/point_cloud_xyzrgb $(arg name)_nodelet_manager">
<param name="queue_size" value="10" />
Expand Down
10 changes: 2 additions & 8 deletions launch/rgbd.launch
Original file line number Diff line number Diff line change
Expand Up @@ -45,21 +45,15 @@
if="$(arg use_realsense)">
<arg name="name" value="$(arg name)" />
<arg name="align_depth" value="true" />
<arg name="pointcloud" value="true" unless="$(arg no_pointcloud)"/>
<arg name="pointcloud" value="true" unless="$(arg no_pointcloud)" />

<!-- Remapping args, to follow luxonis convention -->
<arg name="rgb" default="rgb" />
<arg name="depth_registered_pub" default="$(arg name)" />
</include>

<node pkg="nodelet" type="nodelet" name="rectify_color"
args="load image_proc/rectify $(arg name)_nodelet_manager" if="$(arg rectify_rgb)">
<remap from="image_mono" to="$(arg name)/rgb/image_raw" />
<remap from="image_rect" to="$(arg name)/rgb/image_rect" />
</node>

<include file="$(dirname)/pointcloud.launch" unless="$(arg no_pointcloud)">
<arg name="name" value="$(arg name)"/>
<arg name="name" value="$(arg name)" />
<arg name="rectify_rgb" value="$(arg rectify_rgb)" />
<arg name="no_record" value="$(arg no_record)" />
</include>
Expand Down

0 comments on commit 838d37f

Please sign in to comment.