ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Has Anybody the PointField Outputs? for PointCloud2 [closed]

asked 2015-04-22 22:39:21 -0500

Wilianson gravatar image

updated 2015-04-23 09:40:27 -0500

Hi, I am working in a application to have the output of my AsusXTion depth sensor, I need to have the XYZ coordinates, to make a representation, but my restrictions are that I can't use the PCL conversion which is in ROS.

I am using a file to output the pointCloud and I have all the others features in my PointCloud2 message such as: height, width, is_bigendian, point_step, row_step, data, is_dense.

But when I am going to have the PointField I can't have because I am using a Java code (without Rosjava) to catch the "rostopic echo " out for the AsusCamera/depth/point topic and because PointField is not a native datatype for java I can't use this datatype to get the atributes for PointCloud. This way to get the output for my depth sensor is another restriction in my program (because restrictions at robot's stack )

My question is if this PointField is always constant or change according the readings for the sensor?. If it is a constant anybody has this outputs for my Asus Xtion depth sensor. Because I have the 16 fields for each pixel, but I don't know how to interpret, I have a litle idea that is a X Y Z, RGBA configuration, and each XYZ has 32 bits and I have to pick each 4 elements for the 16 fields, and the last are RGBA.

Thanks in advance for your answers

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Wilianson
close date 2015-05-20 10:55:59.628585

1 Answer

Sort by ยป oldest newest most voted

answered 2015-04-23 17:12:22 -0500

Wilianson gravatar image

updated 2015-04-23 17:12:46 -0500

Hi, I finally break my restrictions and I realized that the PointField's elements are constant: and they are

  • *element 0 * INT8: 1 UINT8: 2 INT16: 3 UINT16: 4 INT32: 5 UINT32: 6 FLOAT32: 7 FLOAT64: 8 name: x offset: 0 datatype: 7 count: 1 **element 1 INT8: 1 UINT8: 2 INT16: 3 UINT16: 4 INT32: 5 UINT32: 6 FLOAT32: 7 FLOAT64: 8 name: y offset: 4 datatype: 7 count: 1 **element 2 ** INT8: 1 UINT8: 2 INT16: 3 UINT16: 4 INT32: 5 UINT32: 6 FLOAT32: 7 FLOAT64: 8 name: z offset: 8 datatype: 7 count: 1
edit flag offensive delete link more

Question Tools

1 follower


Asked: 2015-04-22 22:36:42 -0500

Seen: 392 times

Last updated: Apr 23 '15