ROS Answers: Open Source Q&A Forum - RSS feedhttps://answers.ros.org/questions/Open source question and answer forum written in Python and DjangoenROS Answers is licensed under Creative Commons Attribution 3.0Mon, 06 Nov 2017 02:38:10 -0600Getting distance with camera/depth/image_rawhttps://answers.ros.org/question/274546/getting-distance-with-cameradepthimage_raw/I want to get the distance of Kinect on the topic camera/depth/image_raw. Can anyone show me the program to do that on python. I used cv_bridge to convert the topic and only obtained the depth image. Please show me how to get the distance.
My depth image is in single channel 32 bit. I wanted to calculate the distance based on the formula found on mathnathan.com as such 34800/(1091.5-d)(cm) where d is the depth array in 11 bit. The formula is based on what is experimented by the person. Should I change my image to 11 bit or is there other formula to obtain the distance. I do not consider using the points topic as it is slow through ros.Mon, 30 Oct 2017 08:26:57 -0500https://answers.ros.org/question/274546/getting-distance-with-cameradepthimage_raw/Comment by gvdhoorn for <p> I want to get the distance of Kinect on the topic camera/depth/image_raw. Can anyone show me the program to do that on python. I used cv_bridge to convert the topic and only obtained the depth image. Please show me how to get the distance.
My depth image is in single channel 32 bit. I wanted to calculate the distance based on the formula found on <a rel="nofollow" href="http://mathnathan.com">mathnathan.com</a> as such 34800/(1091.5-d)(cm) where d is the depth array in 11 bit. The formula is based on what is experimented by the person. Should I change my image to 11 bit or is there other formula to obtain the distance. I do not consider using the points topic as it is slow through ros. </p>
https://answers.ros.org/question/274546/getting-distance-with-cameradepthimage_raw/?comment=274550#post-id-274550> Please show me how to get the distance.
Please show / tell us what you've already tried.
We're here to help, not to do your work for you.
If you tried something and it didn't work or something is unclear, we can help.Mon, 30 Oct 2017 08:52:06 -0500https://answers.ros.org/question/274546/getting-distance-with-cameradepthimage_raw/?comment=274550#post-id-274550Comment by tsw for <p> I want to get the distance of Kinect on the topic camera/depth/image_raw. Can anyone show me the program to do that on python. I used cv_bridge to convert the topic and only obtained the depth image. Please show me how to get the distance.
My depth image is in single channel 32 bit. I wanted to calculate the distance based on the formula found on <a rel="nofollow" href="http://mathnathan.com">mathnathan.com</a> as such 34800/(1091.5-d)(cm) where d is the depth array in 11 bit. The formula is based on what is experimented by the person. Should I change my image to 11 bit or is there other formula to obtain the distance. I do not consider using the points topic as it is slow through ros. </p>
https://answers.ros.org/question/274546/getting-distance-with-cameradepthimage_raw/?comment=275054#post-id-275054Sorry for not being specific. I have updated my question.Mon, 06 Nov 2017 02:38:10 -0600https://answers.ros.org/question/274546/getting-distance-with-cameradepthimage_raw/?comment=275054#post-id-275054