From 60b9d1d61d2b8ae558ea858bdc7b3e4874c08398 Mon Sep 17 00:00:00 2001 From: Alexey Rogachevskiy Date: Sun, 4 Oct 2020 22:38:42 +0300 Subject: [PATCH] builder: Force versions for ROS packages that use OpenCV Also, hold their versions so that they don't get updated for no reason. --- builder/image-ros.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/builder/image-ros.sh b/builder/image-ros.sh index 1da7276e..b564e5ae 100755 --- a/builder/image-ros.sh +++ b/builder/image-ros.sh @@ -84,6 +84,22 @@ echo_stamp "Reconfiguring Clover repository for simplier unshallowing" cd /home/pi/catkin_ws/src/clover git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*" +# This is sort of a hack to force "custom" packages to be installed - the ones built by COEX, linked against OpenCV 4.2 +# I **wish** OpenCV would not be such a mess, but, well, here we are. +echo_stamp "Installing OpenCV 4.2-compatible ROS packages" +apt install -y --no-install-recommends \ +ros-${ROS_DISTRO}-compressed-image-transport=1.14.0-0buster \ +ros-${ROS_DISTRO}-cv-bridge=1.15.0-0buster \ +ros-${ROS_DISTRO}-cv-camera=0.5.0-0buster \ +ros-${ROS_DISTRO}-image-publisher=1.15.2-0buster \ +ros-${ROS_DISTRO}-web-video-server=0.2.1-0buster +apt-mark hold \ +ros-${ROS_DISTRO}-compressed-image-transport \ +ros-${ROS_DISTRO}-cv-bridge \ +ros-${ROS_DISTRO}-cv-camera \ +ros-${ROS_DISTRO}-image-publisher \ +ros-${ROS_DISTRO}-web-video-server + echo_stamp "Build and install Clover" cd /home/pi/catkin_ws # Don't try to install gazebo_ros