how to access depth values form /camera/depth/image_raw?? [closed]
Hey ,
i am using ros hydro and ubuntu 12.04 (LTS) , i need to know how to convert the 8-bit depth data which i receive from kinect in the topic /camera/depth/image_raw to depth of individual points in mm . i know that we have to use encoding and is_bigendian values , but i dont know how to use them . can someone please guide me how to use them .
Note: i didnt want to use point cloud data type because it was a bit complicated when compared to /camera/depth/image_raw and i only need depth data , so i thought this was better . if you feel that in order to access depth data point clouds are better please guide me how to obtain the depth data from point cloud .
Thank you for your patience .
Do you mean something like this http://answers.ros.org/question/141741/calculate-depth-from-point-cloud-xyz/?answer=141756#post-id-141756
no , i want to know how to get the values x,y,z in the first place , also the time taken for my robot to read point cloud data is very high like 4sec difference between one input and the other , how do i rectify it ?? please help me out .