Ask Your Question
0

Cannot see depth image - Kinect - Unable to convert '32FC1' image for display: 'cv_bridge.cvtColorForDisplay()

asked 2016-10-16 04:13:25 -0600

updated 2016-10-22 05:53:04 -0600

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

Comments

have you been resolved the problem ?

Valen gravatar imageValen ( 2016-10-17 11:51:39 -0600 )edit

No, this problem hasn't been solved yet.

Dr Abdul Mannan gravatar imageDr Abdul Mannan ( 2016-10-19 00:10:56 -0600 )edit

have you been resolved the problem ? 2016.12.23 13:26:12

Forzen Wind gravatar imageForzen Wind ( 2016-12-22 23:26:34 -0600 )edit

No. Please let me know if you solve this problem.

Dr Abdul Mannan gravatar imageDr Abdul Mannan ( 2016-12-28 01:20:02 -0600 )edit

have you been resolved the problem ?

WilsonTang gravatar imageWilsonTang ( 2017-02-15 20:59:53 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2016-12-30 10:31:20 -0600

Milad gravatar image

I had the same problem. instead of rosrun image_view image_view image:=/camera/depth/image try to use rosrun image_view image_view image:=/camera/depth/image_raw. This helped me to measure the depth. Also make sure that roslaunch openni_launch openni.launch is running on the master (turtlebot or so). I hope this help you as well.

edit flag offensive delete link more

Comments

I am running with tutorial Ros By Example. Had the same problem too, in Chapter 10. The tutorial uses:roslaunch freenect_launch freenect.launch and then rosrun image_view image_view image:=/camera/depth/image_rect Doesn't work.

WillWanghui gravatar imageWillWanghui ( 2017-05-12 04:16:05 -0600 )edit

By following your suggestion, I just tried: roslaunch freenect_launch freenect.launch and rosrun image_view image_view image:=/camera/depth/image_raw It works now, at least I saw the same effect as the tutorial describes.

WillWanghui gravatar imageWillWanghui ( 2017-05-12 04:19:51 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2016-10-16 04:13:25 -0600

Seen: 1,901 times

Last updated: Oct 22 '16