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