goodrobots / maverick

UAV Autonomous Systems Management
https://goodrobots.github.io/maverick/
MIT License
176 stars 61 forks source link

Disable opencv3 package in ROS, use maverick software component opencv #356

Open fnoop opened 7 years ago

fnoop commented 7 years ago

Use /srv/maverick/software/opencv, don't recompile a second version in /opt/ros.

fnoop commented 7 years ago

http://answers.ros.org/question/257581/how-to-use-arbitrary-version-of-opencv/

fnoop commented 5 years ago

Since ROS melodic, ROS has switched to using system opencv: http://wiki.ros.org/melodic/Migration#opencv

fnoop commented 4 years ago
[dev] [mav@maverick-nano /opt/ros/melodic/lib]$ ldd libcv_bridge.so
    linux-vdso.so.1 (0x0000007f9032b000)
    libopencv_imgcodecs.so.3.2 => /usr/lib/aarch64-linux-gnu/libopencv_imgcodecs.so.3.2 (0x0000007f90231000)
    libboost_regex.so.1.65.1 => /usr/lib/aarch64-linux-gnu/libboost_regex.so.1.65.1 (0x0000007f90118000)
    libopencv_imgproc.so.3.2 => /usr/lib/aarch64-linux-gnu/libopencv_imgproc.so.3.2 (0x0000007f8fe19000)
    libopencv_core.so.3.2 => /usr/lib/aarch64-linux-gnu/libopencv_core.so.3.2 (0x0000007f8fc16000)
    libstdc++.so.6 => /usr/lib/aarch64-linux-gnu/libstdc++.so.6 (0x0000007f8fa82000)
    libgcc_s.so.1 => /lib/aarch64-linux-gnu/libgcc_s.so.1 (0x0000007f8fa5e000)
    libc.so.6 => /lib/aarch64-linux-gnu/libc.so.6 (0x0000007f8f905000)

Need to compile cv_bridge linked against maverick opencv.

fnoop commented 4 years ago

https://answers.ros.org/question/61923/how-to-use-newer-versions-of-opencv-in-fuerte/ https://answers.opencv.org/question/37847/how-to-link-own-build-opencv-instead-of-ros-hydro-opencv/ http://wiki.ros.org/cv_bridge

fnoop commented 4 years ago

Compile instructions: https://answers.ros.org/question/289090/how-to-specify-my-own-opencv3-for-cv_bridge/

To test: https://answers.ros.org/question/304777/new-in-ros-sensor_msgsimage-in-opencv/

fnoop commented 4 years ago

Branch to compile cv_bridge with opencv on melodic: https://github.com/OAkyildiz/vision_opencv

Noetic is released on may23rd 2020, but only supports ubuntu 20.04.

fnoop commented 4 years ago

Added option (on by default) to compile cv_bridge from source. This works even over package/binary installs, and links cv_bridge to maverick custom opencv in ~/software/opencv. This allows us to use our opencv that is optimised for raspberry or jetson/cuda.