tr2023-robot/beta/robottest.py
2023-03-25 10:33:33 +01:00

17 lines
355 B
Python

import Robot
x=""
r=Robot.Robot()
t = r.Translation
rot = r.Rotation
while x!="q":
x=input('command: ')
if x=="rotation":
rot(10)
elif x=="droit":
t.droit(10)
elif x=="diagonal":
t.trv(10, True)
elif x=="side":
t.sd(10)
else:
print('available commands: rotation , droit , diagonal , side')