xtion depth_image to point_cloud

asked 2015-05-22 03:32:06 -0500

MarkyMark2012 gravatar image

updated 2015-05-26 13:36:43 -0500

Hi All,

Now I know I missing something supid here - I#m usnig the launch script below to convert the depth_image into a point cloud. What am I missing. The service starts but my topics aren't linking up

UPDATE:

I've updated the launch file to make it simpler

  <launch>
    <!-- Nodelet manager for this pipeline -->
    <node pkg="nodelet" type="nodelet" args="manager" name="depth_transforms_manager" output="screen"/>
    <!-- Convert to point cloud -->
    <node pkg="nodelet" type="nodelet" name="cloudify" args="load depth_image_proc/point_cloud_xyz depth_transforms_manager --no-bond">

    <!-- Input: Camera calibration and metadata.  (sensor_msgs/camera_info) -->
    <remap from="camera_info"      to="/openni2_camera/depth/camera_info"/> 
    <!-- Input: Rectified depth image, registered to the RGB camera. (sensor_msgs/Image) -->
    <remap from="image_rect" to="/openni2_camera/depth/image_raw"/>        
    <!-- Output: XYZ point cloud. If using PCL, subscribe as PointCloud<PointXYZ>.  (sensor_msgs/PointCloud2)  -->
    <remap from="points" to="/openni2_camera/depth/points"/>

</node>
</launch>

This are the available topics

image description

UPDATE: And now I can see Cloudify and the depth_transform_manager

image description

However I there is no connectivity between the depth_transform_manager and the openni2_camera depth topics and I can't see why not? camera_info and image_rect should be remapped to /openni2_camera/depth/camera_info and /openni2_camera/depth/image_raw respectively.

Any suggestions?

Many Thanks

Mark

edit retag flag offensive close merge delete

Comments

Maybe you need to add a forward slash at the beginning of the topic names?

yohtm gravatar imageyohtm ( 2015-05-22 09:15:39 -0500 )edit

Hi, did you manage to solve this problem?

jpgc gravatar imagejpgc ( 2016-09-25 09:01:41 -0500 )edit

@jpgc - no unfortunately. If you find a solution please let me know

MarkyMark2012 gravatar imageMarkyMark2012 ( 2016-09-26 06:22:22 -0500 )edit

@MarkyMark2012 i didn't find a solution but i managed to do the conversion in another way.

jpgc gravatar imagejpgc ( 2016-09-27 11:12:25 -0500 )edit

@jpgc - could you let me know. Cheers

MarkyMark2012 gravatar imageMarkyMark2012 ( 2016-09-28 01:14:45 -0500 )edit

Sure, i found this script to do the conversion and this one.

jpgc gravatar imagejpgc ( 2016-09-29 08:18:08 -0500 )edit