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

kinect calibration- ImportError: No module named cv_bridge

asked 2013-03-13 22:04:37 -0600

sai gravatar image

updated 2016-10-24 09:10:24 -0600

ngrennan gravatar image



I am following the tutorial on calibrating kinect at

I am getting the following error

I have cv_bridge installed and I also rosmake it

sai@sai-HP-EliteBook-8460w:~$ rosrun camera_calibration image:=/camera/rgb/image_raw camera:=/camera/rgb --size 5x4 --square 0.0245 Traceback (most recent call last): File "/opt/ros/fuerte/stacks/image_pipeline/camera_calibration/nodes/", line 52, in <module> from camera_calibration.calibrator import cvmat_iterator, MonoCalibrator, StereoCalibrator, ChessboardInfo File "/opt/ros/fuerte/stacks/image_pipeline/camera_calibration/src/camera_calibration/", line 40, in <module>

import cv_bridge

ImportError: No module named cv_bridge

edit retag flag offensive close merge delete


Please specify your Ubuntu version and ROS version :-)

Stephane.M gravatar image Stephane.M  ( 2013-03-14 02:50:41 -0600 )edit

ubuntu 12.04 and fuerte

sai gravatar image sai  ( 2013-03-14 16:39:21 -0600 )edit

Hi Sai, have you checked whether you included the cv_bridge in your manifest.xml?

tianb03 gravatar image tianb03  ( 2013-03-14 22:28:39 -0600 )edit

yeah it is there

sai gravatar image sai  ( 2013-03-14 22:56:27 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2013-03-19 21:57:19 -0600

In the last version of CvBridge, some changes have been made. The tutorials on cv_bridge make no difference between includes in electric and Fuerte/Groovy, but there is some.

Thus, instead of

#include <cv_bridge/CvBridge.h>

You should try

#include <cv_bridge/cv_bridge.h>

Or the inverse ^^

As I'm not sure it'll really help, Let me know...

edit flag offensive delete link more


ok...i ll try it later but as of now, i m trying to run a script at and it gives me the exactly the same error No module names cv_bridge ...Any help ?

sai gravatar image sai  ( 2013-03-20 04:11:09 -0600 )edit

This issue with cv_bridge got solved when I added the path to to the python path of environment variables .... export PYTHONPATH=$PYTHONPATH:/opt/ros/fuerte/stacks/vision_opencv/cv_bridge/src/cv_bridge

sai gravatar image sai  ( 2013-05-14 23:29:29 -0600 )edit

If the same error occurs with image_geometry, then just remove import image_geometry. For calibrating ASUS replace the /camera/rgb/image_raw with /camera/rgb/image_mono in the rosrun camera_calibration cameracalibrator................

sai gravatar image sai  ( 2013-05-14 23:43:29 -0600 )edit

Question Tools


Asked: 2013-03-13 22:04:37 -0600

Seen: 1,926 times

Last updated: Mar 19 '13