added stand rest and kick as inputarguments to stricker.py
This commit is contained in:
@@ -8,7 +8,7 @@ from .utils import read_config
|
|||||||
from .imagereaders import NaoImageReader
|
from .imagereaders import NaoImageReader
|
||||||
from .finders import BallFinder, GoalFinder
|
from .finders import BallFinder, GoalFinder
|
||||||
from .movements import NaoMover
|
from .movements import NaoMover
|
||||||
|
import sys
|
||||||
|
|
||||||
class Striker(object):
|
class Striker(object):
|
||||||
|
|
||||||
@@ -272,6 +272,26 @@ if __name__ == '__main__':
|
|||||||
run_after=False
|
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:
|
try:
|
||||||
# start with ball tracking first
|
# start with ball tracking first
|
||||||
state = 'tracking'
|
state = 'tracking'
|
||||||
|
|||||||
Reference in New Issue
Block a user