0
$\begingroup$

Rosanswers logo

Hi,

I saved the pointclouds published by kinect in a pcd file. Width is 640 and height is 480.

I expect kinect to give the x, y, z for every pixel in 640x480.

I believe that the sequence of the pointcloud data starts from the left bottom of the image to the right top of the image, pixel wise left to right.

I understand some of the values are nan as points at that point are not defined as they are not visible or due to some noise.

The z component almost gives the distance of the object from the kinect camera.

I don't understand the values of x y in the point cloud. or they normalized with respect to something, if so how to make it global? Is my understanding wrong and they are still the exact distance in meters? I thought kinect drivers are built for ros so its right to pose this question here.

Thanks, Karthik


Originally posted by karthik on ROS Answers with karma: 2831 on 2011-12-16

Post score: 0


Original comments

Comment by karthik on 2011-12-16:
openni_camera

Comment by Ivan Dryanovski on 2011-12-16:
Which driver are you using? openni_camera?

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

z does not give the distance of the point from the camera. (x,y,z) refer to the 3D coordinates of the point in the world in meters (or millimeters, depending), with the camera as the origin (0,0,0).

The depth image, on the other hand, gives the distance from the camera of every pixel in the image.


Originally posted by Dan Lazewatsky with karma: 9115 on 2011-12-16

This answer was ACCEPTED on the original site

Post score: 3


Original comments

Comment by karthik on 2011-12-16:
Thanks for clarifying !!!

$\endgroup$

Your Answer

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