depthai-ros icon indicating copy to clipboard operation
depthai-ros copied to clipboard

Convert Depth to Meters internally

Open saching13 opened this issue 3 years ago • 2 comments

Change depth image which is in millimeters to meters to align with ROS standard REP 103 and encoded as 32-bit float as in REP 118,

References:

saching13 avatar Nov 30 '21 20:11 saching13

REP 118 explicitly mentions the OpenNI format which is uint16 milimeters. So technically, the output is according to the REP. The performance considerations mentioned at the end of REP 118 might still hold for some use-cases. So maybe it'd be best to support also the float32 output, but let the user choose using a parameter.

peci1 avatar Jan 11 '22 19:01 peci1

Agreed. I think thats the way to go. But conversion to float32 mostly will happen on host-side instead of on-device in this case.

saching13 avatar Jan 11 '22 19:01 saching13