0
$\begingroup$

Rosanswers logo

Hi everyone,

how do I get the distance values out of the PointCloud2 message produced by a Kinect sensor efficiently? At the moment I use a loop iterating all points and writing the z-value to a file.

Thanks for your help

Sebastian


Originally posted by Poseidonius on ROS Answers with karma: 427 on 2012-03-28

Post score: 0

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

Take a look at the pcl_ros tutorials; this will get you a PCL point cloud, rather than a ROS PointCloud2; the PCL version comes with all kinds of useful gadgetry.


Originally posted by Mac with karma: 4119 on 2012-03-28

This answer was ACCEPTED on the original site

Post score: 1

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.