ModalAI Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Issue with ros-melodic-cv-bridge and voxl-vision-hub conflict on VOXL2

    ROS
    4
    8
    720
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • dleeD
      dlee
      last edited by

      Hello,

      I am currently working in a VOXL2 board (Ubuntu 18.04 environment with ROS Melodic). I have been attempting to install ros-melodic-cv-bridge sudo apt install ros-melodic-cv-bridge. However, I've encountered a problem where installing cv-bridge leads to the removal of voxl-vision-hub, rendering my camera unusable. Conversely, installing voxl-vision-hub results in the inability to use cv-bridge.

      I was wondering if anyone has encountered a similar issue or has any suggestions for resolving this conflict between ros-melodic-cv-bridge and voxl-vision-hub. Any guidance or solution would be greatly appreciated.

      Thank you!

      tomT 1 Reply Last reply Reply Quote 0
      • tomT
        tom admin @dlee
        last edited by

        @dlee What SDK version are you running on your voxl2? You can check this with voxl-version

        dleeD 1 Reply Last reply Reply Quote 0
        • dleeD
          dlee @tom
          last edited by

          @tom I am using 1.1.2 latest version.

          1 Reply Last reply Reply Quote 0
          • Zachary Lowell 0Z
            Zachary Lowell 0 ModalAI Team
            last edited by

            Hi @dlee - this is purposeful. The voxl2 uses a ton of dependencies on a specific build of opencv - so by installing ros-melodic-cv-bridge (which you should NOT even be able to do due to dependency conflicts) you break a lot of what is dependent on that build of opencv, including vision-hub. The ros melodic which is on target is the minimal build, meaning opencv isnt installed due to those specific conflicts above.

            You can always try installing it from source and pointing the third party instead of downloading it in sudo. My other recommendation would be to upgrade to ros2 foxy which is already on target.

            https://github.com/ros-perception/vision_opencv/tree/melodic <-- here is the link to to melodic cv bridge. LMK if that helps!

            dleeD 1 Reply Last reply Reply Quote 2
            • Zachary Lowell 0Z
              Zachary Lowell 0 ModalAI Team
              last edited by

              The other option as well is to use a docker image running ros melodic and cv bridge already on it so you do not get conflicts with what is on target!

              1 Reply Last reply Reply Quote 0
              • dleeD
                dlee @Zachary Lowell 0
                last edited by

                Thanks a lot, @Zachary-Lowell-0.
                I didn't want to use docker images, so I used vision_opencv.
                Because the melodic branch required OpenCV 3, I built the package at the noetic branch.

                1 Reply Last reply Reply Quote 0
                • S
                  smilon
                  last edited by

                  Hi i've faced the same issue! Was wondering where voxl-vision-hub went ^^

                  How can we get it back on the system? @Zachary-Lowell-0

                  Screenshot from 2024-01-17 18-10-28.png

                  1 Reply Last reply Reply Quote 0
                  • Zachary Lowell 0Z
                    Zachary Lowell 0 ModalAI Team
                    last edited by

                    Hi @dlee and @smilon so if you are installing your vision_opencv into sudo, then the conflicts will wipe out a ton of MPA and SDK programs. This is highly recommended NOT to be done. Instead either use docker, or leverage the package as a third party in a virtual environment or something along that nature.

                    voxl-vision-hub should be on target from the SDK installation:

                    voxl2:/$ sudo apt-get install voxl-vision-hub
                    Reading package lists... Done
                    Building dependency tree       
                    Reading state information... Done
                    voxl-vision-hub is already the newest version (1.7.3).
                    voxl-vision-hub set to manually installed.
                    0 upgraded, 0 newly installed, 0 to remove and 37 not upgraded.
                    1 not fully installed or removed.
                    After this operation, 0 B of additional disk space will be used.
                    

                    However, most likely had the deb wiped or reconfigured when installing the opencv you were trying to leverage. Provided you guys are on sdk 1.1.2, you can just go into the tarball that has since been untarred and adb push the voxl-suite/voxl-vision-hub deb to the voxl2 and then do a sudo dpkg -i voxl-vision-hubXXXDEB - that will install it back onto the system. The other option is to either reflash or do a sudo apt-get upgrade which would pull the most recent debs from the modalAI apt repository on the cloud.

                    Let me know if this helps either of you!

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post
                    Powered by NodeBB | Contributors