stereolabs / zed-ros-wrapper

ROS wrapper for the ZED SDK
https://www.stereolabs.com/docs/ros/
MIT License
447 stars 391 forks source link

[Question] depth/openni_depth_mode: 1 #591

Closed RGring closed 4 years ago

RGring commented 4 years ago

I would like to publish the depth map in mm. When I set the parameter depth/openni_depth_mode to 1, the encoding type on the topic /zed2/zed_node/depth/depth_registered remains 32FC1, though I expected 16UC1.

Do you have any explanations on that?

Myzhar commented 4 years ago

Hi @RGring I'm going to check if it's a bug.

Myzhar commented 4 years ago

The parameter depth/openni_depth_mode is a boolean, not an integer. Using a 1 instead of true was not correctly parsed. The bug has been fixed, you can pull the latest master