Melodic on ev3dev, cannot install vision_opencv

asked 2018-10-06 09:38:34 -0500

Antracyt gravatar image

updated 2019-06-13 10:21:40 -0500

Evgeny gravatar image

I have installed ros melodic on RaspberryPi3 running ev3dev system using this tutorial https://github.com/moriarty/ros-ev3/b... I need to use opencv2 and cv_bridge so i have trying to install this packages using apt-get:

robot@ev3dev:~$ sudo apt-get install ros-melodic-vision-opencv
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package ros-melodic-vision-opencv

robot@ev3dev:~$ sudo apt-get install ros-melodic-cv-bridge
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package ros-melodic-cv-bridge

and using rosdep:

robot@ev3dev:~$ rosdep install vision_opencv
ERROR: Rosdep cannot find all required resources to answer your query
Missing resource vision_opencv
ROS path [0]=/opt/ros/melodic/share/ros
ROS path [1]=/opt/ros/melodic/share

robot@ev3dev:~$ rosdep install cv_bridge
ERROR: Rosdep cannot find all required resources to answer your query
Missing resource cv_bridge
ROS path [0]=/opt/ros/melodic/share/ros
ROS path [1]=/opt/ros/melodic/share

robot@ev3dev:~$ rosdep install opencv2
ERROR: Rosdep cannot find all required resources to answer your query
Missing resource opencv2
ROS path [0]=/opt/ros/melodic/share/ros
ROS path [1]=/opt/ros/melodic/share

What i should do to install this packages?


Edit: I did different approach. I did these commands on clean ev3dev-stretch-rpi2-generic system under docker:

sudo apt update && sudo apt install ros-robot

sudo apt-get install python-rosdep

sudo rosdep init

rosdep update

rosdep install vision_opencv
ERROR: Rosdep cannot find all required resources to answer your query
Missing resource vision_opencv
ROS path [0]=/usr/share

Same error appears when I am tying to install cv_bridge or opencv...

edit retag flag offensive close merge delete

Comments

The instructions you link to (moriarty's steps) build everything from source. You cannot use apt-get afterwards to install more packages with a setup like that.

gvdhoorn gravatar imagegvdhoorn ( 2018-10-06 09:44:44 -0500 )edit

So there is no way to install additional dependencies on setup like this?

Antracyt gravatar imageAntracyt ( 2018-10-06 10:24:46 -0500 )edit

Well, technically you're not adding dependencies, but new packages.

But that is definitely possible: you'll just have to build those from sources as well. See the rosinstall_generator bit in the steps Moriarty outlined.

There is nothing EV3 specific about this btw, identical on all platforms.

gvdhoorn gravatar imagegvdhoorn ( 2018-10-06 10:56:40 -0500 )edit

re: edit & ros-robot: please read wiki/UpstreamPackages.

gvdhoorn gravatar imagegvdhoorn ( 2018-10-07 05:45:12 -0500 )edit