zang09 / ORB_SLAM3_ROS2

ROS2 wrapping package for orbslam3 library
183 stars 65 forks source link

libopencv_calib3d.so.409, may cause conflict with libopencv_calib3d.so.4.2 #25

Open 1melek opened 1 month ago

1melek commented 1 month ago

111 i have opencv 4.2.0 installed and i think it supports 4.0.9 if needed , so how can i fix this issue? im using ubuntu 20.04lts + ros2 foxy+ orbslam3

micah-cobot commented 4 weeks ago

I was able to get rid of this warning by building/including cv_bridge inside the colcon workspace where I have the ORB_SLAM_3 ROS2 package. So instead of installing the ros2 opencv packages as apt-get install ros-${ROS_DISTRO}-vision-opencv, I instead followed the instructions here: https://github.com/ros-perception/vision_opencv/tree/rolling/cv_bridge (i.e. I cloned vision_opencv from the appropriate ros2 distro branch into colcon_ws and then ran a colcon build)

As a side note, it's important to make sure you don't have multiple OpenCV versions installed, at least when getting set up initially. You should use OpenCV 4.2.0 in the beginning