From caa974b71c9582685167ca601d0b1b4133816270 Mon Sep 17 00:00:00 2001 From: Oleg Kalachev Date: Wed, 22 May 2024 14:17:59 +0300 Subject: [PATCH] Fix running rosbridge_suite adding ROS_OV_OVERRIDE env variable It gives error 'Could not detect OS' (from roslib) on Bookworm without that --- builder/assets/clover.service | 2 +- builder/image-ros.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/builder/assets/clover.service b/builder/assets/clover.service index 6442da88..3add621d 100644 --- a/builder/assets/clover.service +++ b/builder/assets/clover.service @@ -5,7 +5,7 @@ Requires=roscore.service [Service] User=pi ExecStart=/bin/bash -c ". /home/pi/catkin_ws/devel/setup.sh; \ - ROS_HOSTNAME=`hostname`.local exec stdbuf -o L roslaunch clover clover.launch --wait --screen --skip-log-check \ + ROS_HOSTNAME=`hostname`.local ROS_OS_OVERRIDE=debian:bookworm exec stdbuf -o L roslaunch clover clover.launch --wait --screen --skip-log-check \ 2> >(tee /tmp/clover.err)" ExecStartPre=+rm /var/log/clover.log diff --git a/builder/image-ros.sh b/builder/image-ros.sh index 60f0d37a..453f69a3 100755 --- a/builder/image-ros.sh +++ b/builder/image-ros.sh @@ -155,6 +155,7 @@ cat << EOF >> /home/pi/.bashrc LANG='C.UTF-8' LC_ALL='C.UTF-8' export ROS_HOSTNAME=\`hostname\`.local +export ROS_OS_OVERRIDE=debian:bookworm source /opt/ros/${ROS_DISTRO}/setup.bash source /home/pi/catkin_ws/devel/setup.bash EOF