Minor convenince improvements

This commit is contained in:
2018-06-29 18:03:18 +02:00
parent ae9ec9fcce
commit e50c2f973d
2 changed files with 2 additions and 5 deletions

View File

@@ -14,4 +14,4 @@ fi
destination="nao@$nao_ip:/home/nao/pykick/"
# copy the files with scp
scp "$repo/"*.py $destination
scp "$repo"/*.py "$repo"/nao_defaults.json $destination

View File

@@ -198,11 +198,8 @@ class NaoMover(object):
self.mp.stopMove()
if __name__ == '__main__':
cfg = read_config()
mover = NaoMover(cfg['ip'], cfg['port'])
parser = argparse.ArgumentParser()
actions = parser.add_mutually_exclusive_group()
@@ -226,7 +223,7 @@ if __name__ == '__main__':
# perform a (fancy) kick
elif args.kick:
mover.stand_up()
mover.kick()
mover.kick(fancy=True)
elif args.move:
mover.stand_up()