Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cv_bridge broken in Groovy #5

Closed
pirobot opened this issue Jan 9, 2013 · 5 comments
Closed

cv_bridge broken in Groovy #5

pirobot opened this issue Jan 9, 2013 · 5 comments

Comments

@pirobot
Copy link

pirobot commented Jan 9, 2013

When I run the first cv_bridge Python example on the ROS Wiki, I get the following error repeated over and over:

[ERROR] [WallTime: 1357692371.463472] bad callback: <bound method image_converter.callback of <__main__.image_converter instance at 0xac1378c>>
Traceback (most recent call last):
  File "/opt/ros/groovy/lib/python2.7/dist-packages/rospy/topics.py", line 678, in _invoke_callback
    cb(msg)
  File "/home/patrick/Dropbox/Robotics/ros/experimental-pi-robot-ros-pkg/pi_robot/pi_vision_test/nodes/cv_bridge_test.py", line 22, in callback
    cv_image = self.bridge.imgmsg_to_cv(data, "bgr8")
  File "/opt/ros/groovy/lib/python2.7/dist-packages/cv_bridge/cv_bridge.py", line 105, in imgmsg_to_cv
    source_type = self.encoding_as_cvtype(img_msg.encoding)
  File "/opt/ros/groovy/lib/python2.7/dist-packages/cv_bridge/cv_bridge.py", line 53, in encoding_as_cvtype
    return eval("cv.CV_%s" % encoding)
  File "<string>", line 1, in <module>
AttributeError: 'module' object has no attribute 'CV_yuv422'

I get the same error when trying to use cv_bridge in any of my own existing code--code that runs fine under both Electric and Fuerte.

@vrabaud vrabaud closed this as completed in a61e58b Jan 9, 2013
@vrabaud
Copy link
Contributor

vrabaud commented Jan 9, 2013

thx for reporting the error, I did have it too. 1.10.1 fixes it for me. Please reopen if that is still problematic,

@pirobot
Copy link
Author

pirobot commented Jan 10, 2013

Thanks Vincent! Works for me too now.

@IamUSmarine
Copy link

I am experiencing this same error for the same tutorial in fuerte. How do I fix?

@vrabaud
Copy link
Contributor

vrabaud commented Sep 25, 2014

Fuerte is not supported anymore, I'm sorry. It was a bug back then too. You can patch your code with the commit above. I would strongly suggest to move to Indigo, it's a release supported for 5 years.

@IamUSmarine
Copy link

Thanks for clearing that up.

On Thu, Sep 25, 2014 at 9:49 AM, Vincent Rabaud [email protected]
wrote:

Fuerte is not supported anymore, I'm sorry. It was a bug back then too.
You can patch your code with the commit above. I would strongly suggest to
move to Indigo, it's a release supported for 5 years.


Reply to this email directly or view it on GitHub
#5 (comment)
.

gaoethan pushed a commit that referenced this issue Jun 4, 2018
luca-della-vedova pushed a commit to luca-della-vedova/vision_opencv that referenced this issue Sep 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants