Skip to content

Commit

Permalink
Fix running rosbridge_suite adding ROS_OV_OVERRIDE env variable
Browse files Browse the repository at this point in the history
It gives error 'Could not detect OS' (from roslib) on Bookworm without that
  • Loading branch information
okalachev committed May 22, 2024
1 parent 3f00001 commit caa974b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion builder/assets/clover.service
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions builder/image-ros.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit caa974b

Please sign in to comment.