code-iai / iai_kinect2

Tools for using the Kinect One (Kinect v2) in ROS
Apache License 2.0
879 stars 520 forks source link

getting depth values without opencv #527

Closed bomarali closed 5 years ago

bomarali commented 5 years ago

Hi, I have seen a previous issue where it was suggested to get depth data from the Image depth_rect using the opencv. But say I want to do it without opencv? Since we get 2 unit8 to describe the depth, my question is do we use 2 consecutive bits or i and 2*i bits? Also can you confirm that my bitwise conversion is correct : (uint8_second << 8) | unit8_first ?

bomarali commented 5 years ago

I used ros_numpy to parse image messages. Works fine