Does the new OpenCV support with ROS Groovy 1.9.55 in Ubuntu 12.04LTS

asked 2016-07-06 21:44:08 -0600

Zero gravatar image

updated 2016-07-07 01:44:40 -0600

Hi everyone,

Currently, I was using the OpenCV to do some image process with Baxter robot's hand_camera. The OpenCV was reinstall use the package.

My testing program was able to run but when it going to the callback function and touching with Cvbridge part, the terminal will show an error about ImportError: No module name cv_bridge_boost.

Is it that mean my program had some error or is due to my ROS? follow is the photo share link(I dont know why I cannot upload my image to here): https://drive.google.com/open?id=0B6J...

Follow is the error message:

[ERROR] [WallTime: 1467860360.139658] bad callback: <bound method ColorTest.image_callback of <__main__.ColorTest instance at 0xa88c66c>>
Traceback (most recent call last):
  File "/opt/ros/groovy/lib/python2.7/dist-packages/rospy/topics.py", line 681, in _invoke_callback
    cb(msg)
  File "/home/baxter/ros_ws/src/baxter_examples/scripts/ylj_research/ylj_camTest.py", line 81, in image_callback
    image_cv = self.bridge.imgmsg_to_cv2 (data,"bgr8")
  File "/home/baxter/ros_ws/src/vision_opencv/cv_bridge/python/cv_bridge/core.py", line 115, in imgmsg_to_cv2
    dtype, n_channels = self.encoding_to_dtype_with_channels(img_msg.encoding)
  File "/home/baxter/ros_ws/src/vision_opencv/cv_bridge/python/cv_bridge/core.py", line 91, in encoding_to_dtype_with_channels
    return self.cvtype2_to_dtype_with_channels(self.encoding_to_cvtype2(encoding))
  File "/home/baxter/ros_ws/src/vision_opencv/cv_bridge/python/cv_bridge/core.py", line 83, in encoding_to_cvtype2
    from cv_bridge.boost.cv_bridge_boost import getCvType      ###############################
ImportError: No module named cv_bridge_boost

Thank you!

edit retag flag offensive close merge delete

Comments

cv_bridge_boots is not a module name. Perhaps you meant cv_bridge_boost ? Instead of posting a screenshot of your error message, please copy the error message and paste it into you question so that it is searchable for other users who encounter the same problem.

ahendrix gravatar image ahendrix  ( 2016-07-07 01:23:18 -0600 )edit

ok,I get it. I will edit my question. Thank you.

Zero gravatar image Zero  ( 2016-07-07 01:41:46 -0600 )edit