Skip to content

Commit

Permalink
[jsk_fetch_startup] add config/config.bash and use it in robot.conf a…
Browse files Browse the repository at this point in the history
…nd install_supervisor.sh
  • Loading branch information
knorth55 authored and sktometometo committed Jun 23, 2023
1 parent 61c1fba commit 9332459
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
7 changes: 7 additions & 0 deletions jsk_fetch_robot/jsk_fetch_startup/config/config.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This file is bash configuration for robot.conf
# This file must be at /var/lib/robot/config.bash

export RS_SERIAL_NO_T265=""
export RS_SERIAL_NO_D435_FRONTRIGHT=""
export RS_SERIAL_NO_D435_FRONTLEFT=""
export RS_SERIAL_NO_L515_HEAD=""
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,9 @@ for file in $(ls ./*.conf); do
echo "copied $file to /etc/supervisor/conf.d"
done

# copy config.bash to /var/lib/robo if not exists
if [ ! -e /var/lib/robot/config.bash ]; then
sudo cp $jsk_fetch_startup/config/config.bash /var/lib/robot/config.bash
fi

set +x
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[program:robot]
command=/bin/bash -c ". /opt/ros/roscore_poststart.bash && . /home/fetch/ros/melodic/devel/setup.bash && rosrun jsk_fetch_startup link_calibration_files.bash && roslaunch jsk_fetch_startup fetch.launch launch_teleop:=false --wait --screen"
command=/bin/bash -c ". /opt/ros/roscore_poststart.bash && . /home/fetch/ros/melodic/devel/setup.bash && if [ -e /var/lib/robot/config.bash ];then . /var/lib/robot/config.bash ;fi && rosrun jsk_fetch_startup link_calibration_files.bash && roslaunch jsk_fetch_startup fetch.launch launch_teleop:=false --wait --screen"
stopsignal=TERM
directory=/home/fetch/ros/melodic
autostart=true
Expand Down

0 comments on commit 9332459

Please sign in to comment.