added entry points
This commit is contained in:
@@ -251,8 +251,6 @@ class NaoMover(object):
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
cfg = read_config()
|
||||
mover = NaoMover(cfg['ip'], cfg['port'])
|
||||
parser = argparse.ArgumentParser()
|
||||
actions = parser.add_mutually_exclusive_group()
|
||||
actions.add_argument("-s", "--stand", action="store_true",
|
||||
@@ -268,6 +266,9 @@ if __name__ == '__main__':
|
||||
|
||||
args = parser.parse_args()
|
||||
|
||||
cfg = read_config()
|
||||
mover = NaoMover(cfg['ip'], cfg['port'])
|
||||
|
||||
if args.stand:
|
||||
mover.stand_up()
|
||||
|
||||
|
||||
@@ -250,7 +250,7 @@ class Striker(object):
|
||||
Raises
|
||||
------
|
||||
ValueError
|
||||
The ball could not be seen :(
|
||||
The ball could not be seen :(
|
||||
|
||||
"""
|
||||
camera = 'upper'
|
||||
|
||||
Reference in New Issue
Block a user