added stand rest and kick as inputarguments to stricker.py

This commit is contained in:
Jonas
2018-06-22 17:56:58 +02:00
parent 28a06ea0e3
commit 66b2e54d13

View File

@@ -8,7 +8,7 @@ from .utils import read_config
from .imagereaders import NaoImageReader
from .finders import BallFinder, GoalFinder
from .movements import NaoMover
import sys
class Striker(object):
@@ -272,6 +272,26 @@ if __name__ == '__main__':
run_after=False
)
args=''
try:
args=sys.argv[1]
except:
print("error")
if args:
if args == 'stand':
striker.mover.stand_up()
elif args == 'rest':
striker.mover.rest()
elif args == 'kick':
striker.mover.stand_up()
striker.mover.kick()
striker.mover.rest()
else:
try:
# start with ball tracking first
state = 'tracking'