Improved ball following

1. Made copyfiles a little saner
2. Implemented ball search when not in field of view
This commit is contained in:
2018-06-04 15:23:41 +02:00
parent 6aefab5694
commit 5035329de7
4 changed files with 55 additions and 61 deletions

View File

@@ -3,26 +3,15 @@
# Exit immediately if something fails
set -e
if [ -z "$1" ]
if [ -z "$1" ]
then
nao_ip=192.168.0.11
nao_ip=192.168.0.11
else
nao_ip=$1
nao_ip=$1
fi
sshpass -p 'nao' ssh nao@$nao_ip 'cd ~ && rm ball_approach.py utils.py finders.py movements.py imagereaders.py || echo "already removed"'
destination="$nao_ip:/home/nao/kicker_scripts/"
# copy the files with scp
sshpass -p 'nao' scp ball_approach.py nao@$nao_ip:~
sshpass -p 'nao' scp utils.py nao@$nao_ip:~
sshpass -p 'nao' scp finders.py nao@$nao_ip:~
sshpass -p 'nao' scp movements.py nao@$nao_ip:~
sshpass -p 'nao' scp imagereaders.py nao@$nao_ip:~
# config ersetzen
#sshpass -p 'nao' scp nao_defaults.json nao@192.168.0.11:~
sshpass -p 'nao' scp ball_approach.py utils.py finders.py \
movements.py imagereaders.py $destination