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

Update import order in kalibr_calibrate_cameras to fix cv_bridge_boost exception #677

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aatb-ch
Copy link

@aatb-ch aatb-ch commented Mar 8, 2024

This pr fixes an exception i hit on 20.04 Noetic running in a vm on amd64, need to import cv2 before cv_bridge

parallels@ros1vm:~/aatb_ws/src/sparepack_misc/calib$ rosrun kalibr kalibr_calibrate_cameras  --target ../target/april_6x6.yaml  --models pinhole-radtan pinhole-radtan  --topics /oak/left/image_raw /oak/right/image_raw  --bag ../bag/all.bag
importing libraries
Traceback (most recent call last):
  File "/home/parallels/kalibr_ws/devel/lib/kalibr/kalibr_calibrate_cameras", line 15, in <module>
    exec(compile(fh.read(), python_script, 'exec'), context)
  File "/home/parallels/kalibr_ws/src/kalibr/aslam_offline_calibration/kalibr/python/kalibr_calibrate_cameras", line 4, in <module>
    import cv_bridge
  File "/opt/ros/noetic/lib/python3/dist-packages/cv_bridge/__init__.py", line 6, in <module>
    from cv_bridge.boost.cv_bridge_boost import cvtColorForDisplay, getCvType
SystemError: initialization of cv_bridge_boost raised unreported exception

ros-perception/vision_opencv#339
https://answers.ros.org/question/362388/cv_bridge_boost-raised-unreported-exception-when-importing-cv_bridge/

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

Successfully merging this pull request may close these issues.

1 participant