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

Source: https://forum.modalai.com/topic/3001/issue-with-ros-melodic-cv-bridge-and-voxl-vision-hub-conflict-on-voxl2
Category: VOXL SDK and Software (https://forum.modalai.com/category/47/voxl-sdk-and-software)
Tags: ros
Posted: 2024-01-10 14:20:36 UTC by dlee
Replies: 7 · Views: 2908

## dlee · 2024-01-10 14:20:36 UTC

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!

## Reply by tom (ModalAI staff) · 2024-01-10 17:56:32 UTC

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

## Reply by dlee · 2024-01-10 23:05:24 UTC (in reply to tom)

@tom I am using `1.1.2` latest version.

## Reply by Zachary Lowell 0 · 2024-01-11 20:48:14 UTC

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!

## Reply by Zachary Lowell 0 · 2024-01-11 20:50:36 UTC

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!

## Reply by dlee · 2024-01-12 01:50:05 UTC (in reply to Zachary Lowell 0)

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.

## Reply by smilon · 2024-01-17 16:11:46 UTC

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](https://forum.modalai.com/assets/uploads/files/1705507904232-screenshot-from-2024-01-17-18-10-28.png)

## Reply by Zachary Lowell 0 · 2024-01-18 00:16:36 UTC

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!
