Skip to content

Commit

Permalink
tweak for pr2 point cloud
Browse files Browse the repository at this point in the history
  • Loading branch information
ojh6404 committed Mar 17, 2024
1 parent 274f1d9 commit fe03661
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<arg name="launch_manager" default="true" />
<arg name="machine" default="localhost" />
<arg name="namespace" default="kinect_head_remote" />
<arg name="decompress" default="false" />

<arg name="RGB_CAMERA_INFO" default="/kinect_head/rgb/camera_info" />
<arg name="RGB_IMAGE" default="/kinect_head/rgb/image_rect_color" />
Expand All @@ -20,12 +21,13 @@
<node name="rgb_decompress" pkg="image_transport" type="republish"
args="compressed in:=$(arg RGB_IMAGE) out:=$(arg RGB_REMOTE_IMAGE)" />
<node name="depth_decompress" pkg="image_transport" type="republish"
args="compressedDepth in:=$(arg DEPTH_IMAGE) out:=$(arg DEPTH_REMOTE_IMAGE)" />
args="compressedDepth in:=$(arg DEPTH_IMAGE) out:=$(arg DEPTH_REMOTE_IMAGE)" if="$(arg decompress)" />
<node pkg="nodelet" type="nodelet" name="point_cloud_xyzrgb"
args="load depth_image_proc/point_cloud_xyzrgb $(arg manager)" output="screen" >
<remap from="rgb/camera_info" to="$(arg RGB_CAMERA_INFO)" />
<remap from="rgb/image_rect_color" to="$(arg RGB_REMOTE_IMAGE)" />
<remap from="depth_registered/image_rect" to="$(arg DEPTH_REMOTE_IMAGE)" />
<remap from="depth_registered/image_rect" to="$(arg DEPTH_IMAGE)" unless="$(arg decompress)" />
<remap from="depth_registered/image_rect" to="$(arg DEPTH_REMOTE_IMAGE)" if="$(arg decompress)" />
<remap from="depth_registered/points" to="$(arg CLOUD)" />
<rosparam>
queue_size: 100
Expand Down
7 changes: 5 additions & 2 deletions tracking_ros/launch/tracking_3d.launch
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<launch>
<arg name="namespace" default="tracking_ros" />
<arg name="standalone" default="false"/> <!-- debug nodes by setting then standalone -->
<arg name="decompress" default="false" />
<arg name="MANAGER" value="detection_manager" unless="$(arg standalone)"/>
<arg name="MANAGER" value="" if="$(arg standalone)"/>
<arg name="LOAD_STATEMENT" value="load" unless="$(arg standalone)"/>
Expand All @@ -15,9 +16,10 @@
<group ns='$(arg namespace)'>
<node name="$(arg MANAGER)" pkg="nodelet" type="nodelet" args="manager"/>

<include file="$(find tracking_ros)/launch/decompress_point_cloud.launch" >
<include file="$(find tracking_ros)/launch/create_point_cloud.launch" >
<arg name="launch_manager" value="false"/> <!-- already launched -->
<arg name="manager" value="$(arg MANAGER)"/>
<arg name="decompress" value="$(arg decompress)"/>
<arg name="namespace" value="$(arg namespace)"/>
<arg name="RGB_CAMERA_INFO" value="$(arg input_camera_info)" />
<arg name="RGB_IMAGE" value="$(arg input_image)" />
Expand Down Expand Up @@ -60,10 +62,11 @@
align_boxes: true
align_boxes_with_plane: false
force_to_flip_z_axis: false
use_pca: false
use_pca: true
target_frame_id: $(arg target_frame_id)
approximate_sync: true
queue_size: 100
publish_tf: true
</rosparam>
</node>
</group>
Expand Down

0 comments on commit fe03661

Please sign in to comment.