Ask Your Question
1

kinect raw data

asked 2012-07-04 15:27:50 -0600

rosmaker gravatar image

updated 2016-10-24 08:59:37 -0600

ngrennan gravatar image

I am using ubuntu 11.10 and openni.

My question is how to convert the raw depth data to XYZ point?

(x,y,d) coordinate of (pixel, pixel, mm)

I want to know how to convert it to (mm, mm, mm)

edit retag flag offensive close merge delete

Comments

Are you using the openni_camera stack? What launch file are you using to start the Kinect (e.g. openni_launch openni.launch)?

Eric Perko gravatar imageEric Perko ( 2012-07-04 17:44:26 -0600 )edit

I am using openni_launch openni.launch to start the kinect.

rosmaker gravatar imagerosmaker ( 2012-07-04 21:35:27 -0600 )edit

Can you also teach me the changing fomula??

rosmaker gravatar imagerosmaker ( 2012-07-04 21:36:36 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2012-07-04 23:12:59 -0600

Hi rosmaker,

If you are using

roslaunch openni_launch openni.launch

then the conversion is already being done for you.

You only need to subscribe to the topic /camera/depth_registered/points. This topic is of type sensor_msgs/PointCloud2 and represents the 3D point cloud of the scene in meters.

You can find further information on how to access point cloud data in http://www.ros.org/wiki/pcl/Tutorials

I hope this helps

edit flag offensive delete link more

Comments

What is the way to use the scene in [mm]? If I am using other launch file or not, does I use other way?

rosmaker gravatar imagerosmaker ( 2012-07-05 02:15:50 -0600 )edit

Well, if you want your coordinates in mm, one thing you can do is multiply by 1000 all the values in /camera/depth_registered/points

Martin Peris gravatar imageMartin Peris ( 2012-07-05 02:57:35 -0600 )edit

openni have convertprojectivetorealworld function in windows openni. Is this same the topic /camera/depth_registered/points?

rosmaker gravatar imagerosmaker ( 2012-07-05 04:01:31 -0600 )edit

And does raw depth data send by the kinect on 11bit ? how about changed xyz data?

rosmaker gravatar imagerosmaker ( 2012-07-05 04:52:37 -0600 )edit

how do I do the opposite? How do I convert the pixels around point (0.1 meters, 0.52 meters to pixel (x, y) position? I am using the old Kinect (640 x 480 resulution kinect)

Pototo gravatar imagePototo ( 2016-06-21 14:09:49 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2012-07-04 15:27:50 -0600

Seen: 951 times

Last updated: Jul 04 '12