tr2023-robot/beta/robottest.py

18 lines
355 B
Python
Raw Permalink Normal View History

2023-03-25 09:33:33 +00:00
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')