Unable to convert '32FC1' image for display: 'cv_bridge.cvtColorForDisplay()

asked 2016-11-25 03:43:48 -0600

Eric_ROS gravatar image

Hello~ all

I just followed jetsonhacks tutorial to install ROS-kinetic on my Nvidia TX1 successfully. Then git clone git clone link text to install Microsoft Kinect V1 Driver. The steps is as follows:

$mkdir ~/kinectdriver 
$cd ~/kinectdriver 
$git clone https://github.com/avin2/SensorKinect/tree/master
$cd SensorKinect/Bin/
$tar xvjf SensorKinect093-Bin-Linux-x64-v5.1.2.1.tar.bz2
$cd Sensor-Bin-Linux-x64-v5.1.2.1/
$sudo ./install.sh

To test Kinect, I do these on different Terminal to show Depth Image:

  1. roscore
  2. roslaunch openni_launch openni.launch
  3. rosrun image_view image_view image:=/camera/rgb/image_color (<- RGB image shows successfully )
  4. rosrun image_view image_view image:=/camera/depth/image (<- Failed to show depth)

And an error occured with this info:

[ERROR] [1480065718.281091328]: 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)'

It looks like some problems of pixel format conversation. I google this and know the solution is to modify code. But the method is not clean... Anyone knows how to fix it?

Thank you!!

the solution link is link text

edit retag flag offensive close merge delete

Comments

Using Indigo, i have the same problem when using the example from "ROS By Example" volume 1 chapter 10. I use: rosrun image_view image_view image:=/camera/depth/image_rect, and get the SAME error.

The strange thing is that it DID WORK a few months ago. What has changed since then?

Sietse gravatar image Sietse  ( 2016-11-25 07:09:22 -0600 )edit

Forgot to mention. I use a regular PC, no nvidia stuff.

Sietse gravatar image Sietse  ( 2016-11-25 07:36:34 -0600 )edit

@Sietse I got the same problem, have you found any solution? By the way, in Chapter 10.11, I can see the Point Clouds by following the tutorial's instructions.

WillWanghui gravatar image WillWanghui  ( 2017-05-12 03:55:39 -0600 )edit

@Sietes , I saw the depth vision now, see here:another answer

WillWanghui gravatar image WillWanghui  ( 2017-05-12 04:23:43 -0600 )edit