From: Erik Andresen Date: Sat, 27 Oct 2018 14:51:49 +0000 (+0200) Subject: startup: Only enable teleop if dip bit is set X-Git-Url: https://defiant.homedns.org/gitweb/?a=commitdiff_plain;h=f500464e9adf79dcd5792dae8f35c3eef584f823;p=ros_wild_thumper.git startup: Only enable teleop if dip bit is set --- diff --git a/.screen-startup b/.screen-startup index 64314b7..9817cb9 100644 --- a/.screen-startup +++ b/.screen-startup @@ -5,6 +5,6 @@ source $HOME/.screenrc screen 0 zsh -is eval 'roscore' screen 1 zsh -is eval 'roslaunch --wait wild_thumper wild_thumper.launch' -screen 2 zsh -is eval 'roslaunch --wait wild_thumper teleop.launch' +screen 2 zsh -is eval '(($(/usr/sbin/i2cget -y 2 0x38 || echo 0xff) & 0x01)) || roslaunch --wait wild_thumper teleop.launch' #screen 3 zsh -is eval 'roslaunch --wait wild_thumper move_base.launch nomap:=true' select 2