renamed scripts folder to pykick

This commit is contained in:
2018-06-10 12:40:02 +02:00
parent 86b071f36a
commit 86b75c0504
17 changed files with 23 additions and 18 deletions

19
pykick/move_robot.py Normal file
View File

@@ -0,0 +1,19 @@
from .movements import NaoMover
from .utils import read_config
if __name__ == "__main__":
cfg = read_config()
mover = NaoMover(cfg['ip'], cfg['port'])
mover.stand_up()
while True:
axis = int(raw_input('Axis: '))
amount = float(raw_input('How much: '))
if axis == 0:
mover.move_to(amount, 0, 0)
elif axis == 1:
mover.move_to(0, amount, 0)
elif axis == 2:
mover.move_to(0, 0, amount)
else:
print('Axis out of range (0, 1, 2)')