From f500464e9adf79dcd5792dae8f35c3eef584f823 Mon Sep 17 00:00:00 2001 From: Erik Andresen Date: Sat, 27 Oct 2018 16:51:49 +0200 Subject: [PATCH] startup: Only enable teleop if dip bit is set --- .screen-startup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5