ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

having problem using vision_opencv to get image from kinect?

asked 2013-12-05 22:43:38 -0500

lifelonglearner gravatar image

updated 2013-12-06 14:47:16 -0500

I have kinect which is working well and I can get image by running openni.launch and rviz. I want to subscribe this kinect image in to a node and change it to opencv image format from ros image format for image processing. for doing the same I am following the following page.

however using rosmake it is showing following error .....

/opt/ros/groovy/share/vision_opencv/roscv/src/simplecanny.cpp:12:32: fatal error: cv_bridge/CvBridge.h: No such file or directory
  compilation terminated.
  make[3]: *** [CMakeFiles/roscv.dir/src/simplecanny.cpp.o] Error 1
  make[3]: Leaving directory `/opt/ros/groovy/share/vision_opencv/roscv/build'
  make[2]: *** [CMakeFiles/roscv.dir/all] Error 2
  make[2]: Leaving directory `/opt/ros/groovy/share/vision_opencv/roscv/build'
  make[1]: *** [all] Error 2
  make[1]: Leaving directory `/opt/ros/groovy/share/vision_opencv/roscv/build'
[ rosmake ] Output from build of package roscv written to:
[ rosmake ]    /home/admin-pc/.ros/rosmake/rosmake_output-20131207-114326/roscv/build_output.log
[rosmake-4] Finished <<< roscv [FAIL] [ 2.82 seconds ]                          
[ rosmake ] Halting due to failure in package roscv. 
[ rosmake ] Waiting for other threads to complete.
[ rosmake ] Results:                                                            
[ rosmake ] Built 39 packages with 1 failures.                                  
[ rosmake ] Summary output to directory                                         
[ rosmake ] /home/admin-pc/.ros/rosmake/rosmake_output-20131207-114326
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-03-26 10:14:02 -0500

Wolf gravatar image

The cv_bridge/CvBridge.h is old and not used anymore. Use API given in

#include <cv_bridge/cv_bridge.h>


edit flag offensive delete link more


If i take out this #include statement:

#include <cv_bridge/CvBridge.h>

Then I lose the functionality of my code, yet I don't even have that package. How do I install CvBridge.h from the command line? I am gettting this error:

fatal error: cv_bridge/CvBridge.h: No such file or directory
enthurzan gravatar image enthurzan  ( 2017-07-06 08:34:03 -0500 )edit

Question Tools

1 follower


Asked: 2013-12-05 22:43:38 -0500

Seen: 1,049 times

Last updated: Mar 26 '14