Robotics StackExchange | Archived questions

Nan values published in point clouds (depth_registered) with new openni_camera and openni_launch

Hello, I was using opennicameradeprecated in my program but i saw that the accuracy wasn't enough so i installed opennilaunch in order to be able to calibrate the kinect. Using this package if i turn the variable depthregistration on I get x = y = z = Nan in the whole point cloud(/camera/depthregistered/points) (I also realized that all the image of depthregistered are black). Although, i get the right rgb values so i guess that the driver is working! As this was not working at all i tried to use again the opennicameradeprecated package but as I think the opennicamera is not the same package than before so opennicameradeprecated was not working any more. I downloaded again opennicameradeprecated but when i launch opennicameradeprecated return an error because it looks for launch files in opennicamera but there are not, they are at opennicameradeprecated but if i change the launch file so that it takes the launch files from openniCameraDeprecated instead of from openni_camera point clouds are not published.

So my questions are, using opennilaunch Do you know why all the points are returned as Nan? or how can i use again the package opennicamera_deprecated?

I know it is a little bit mess, i hope you could help me I don't know what else to try! Than you very much in advance!

Antonio!

Edit 2 I have noticed something! The problem is that when i enable depthregistration all the image in depthregistered are black (all the pixels have value 0) That is the reason why i think all the values of the point clouds are Nan. While if point_registration is turned off, both image are corrects, but the translation between both cameras RGB ans Depth is not corrected so the point cloud is not the correct one! I know what is going on but i don't know the solution, hahaha! Could anyone help me, please?

Asked by anto1389 on 2013-01-30 22:25:53 UTC

Comments

I have seen that before... Apparently the depth_registration flag doesn't need to be set anymore for depth registered clouds to be published, but you claim they are wrong? I kind of noticed it seemed funky, but I wasn't sure. Might actually be a bug, which we could file to OpenNI devs

Asked by georgebrindeiro on 2013-01-31 01:58:05 UTC

Thank you very much for your answer, what it is happening to me, it is exactly the same than this post: http://answers.ros.org/question/36997/deprecated-kinect-driver-superior-to-the-new-one/ but the solution they propose is to enable the depth_registration, which doesn't work to me!

Asked by anto1389 on 2013-01-31 02:20:10 UTC

This topic is similar to this one: http://answers.ros.org/question/53706/registered-depth-image-is-black/ , let's try to concentrate the discussion there! I am proposing we report this bug in the OpenNI community.

Asked by georgebrindeiro on 2013-01-31 05:28:26 UTC

Answers