ros-perception / calibration

Provides a toolchain to calibrate sensors and URDF robot models.
http://www.ros.org/wiki/calibration
33 stars 30 forks source link

check if input depth image is 32bit #29

Closed k-okada closed 10 years ago

k-okada commented 10 years ago

the program only takes 32bit float depth image

      const float* depth_ptr = reinterpret_cast<const float*>(&depth_msg->data[0]);

(https://github.com/ros-perception/calibration/pull/29/files#diff-75cdd0871abdb10aff724cfb002ff367L130)

openni2_launch publishes camera/depth/image and camera/depth/image_raw and image is 32FC1, but mage_raw is 16UC1

vrabaud commented 10 years ago

Thx for the fix, I just rewrote it with "depth image" instead of "disparity image"