Kinect Depth Display Error - Unable to convert '32FC1' image for display

asked 2016-10-24 01:10:00 -0500

Please, help me out in measuring depth. In particular, I am unable to run

`rosrun image_view image_view image:=/camera/depth/image`

and I am getting errors such as

`[ERROR] [1476607767.675041908]: Unable to convert '32FC1' image for display: 'cv_bridge.cvtColorForDisplay() while trying to convert image from '32FC1' to 'bgr8' an exception was thrown ([32FC1] is not a color format. but [bgr8] is. The conversion does not make sense)'`

Here is what I am doing in detail.

I am trying to use Kinect on ROS-Indigo. I have followed the instructions given here and installed it by running

sudo apt-get install libfreenect-dev
sudo apt-get install ros-indigo-freenect-launch
roslaunch freenect_launch freenect.launch

and then I ran

rosrun image_view image_view image:=/camera/rgb/image_color

which gave me the image in front of camera. Further, I ran

rosrun image_view disparity_view image:=/camera/depth/disparity

which gave me again expected parity image.

However, when I ran

rosrun image_view image_view image:=/camera/depth/image

I got this error,

[ERROR] [1476607767.675041908]: Unable to convert '32FC1' image for display: 'cv_bridge.cvtColorForDisplay() while trying to convert image from '32FC1' to 'bgr8' an exception was thrown ([32FC1] is not a color format. but [bgr8] is. The conversion does not make sense)'

I am also getting warning when I run roslaunch freenect_launch freenect.launch such as

[ WARN] [1476608344.579030784]: Could not find any compatible depth output mode for 1. Falling back to default depth output mode 1.

[ WARN] [1476608344.618443854]: Camera calibration file /home/khan/.ros/camera_info/rgb_A22596V00062304A.yaml not found. 
[ WARN] [1476608344.618552283]: Using default parameters for RGB camera calibration.

[ WARN] [1476608344.618674000]: Camera calibration file /home/khan/.ros/camera_info/depth_A22596V00062304A.yaml not found.
[ WARN] [1476608344.618730354]: Using default parameters for IR camera calibration.

Please, help me out in measuring depth. I shall be very thankful to you. :)

edit retag flag offensive close merge delete