Closed k-okada closed 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
camera/depth/image
camera/depth/image_raw
image
mage_raw
16UC1
Thx for the fix, I just rewrote it with "depth image" instead of "disparity image"
the program only takes 32bit float depth image
(https://github.com/ros-perception/calibration/pull/29/files#diff-75cdd0871abdb10aff724cfb002ff367L130)
openni2_launch publishes
camera/depth/image
andcamera/depth/image_raw
andimage
is 32FC1, butmage_raw
is16UC1