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

19 lines
388 B
Python

import Robot
import Container
robot = Robot.MotorizedPlatform
def translation(arg):
try:
callable = getattr(robot,arg)
possible=True
except AttributeError:
print('ERROR')
possible=False
if possible:
callable()
x=""
while x!="q":
x=input('command : ')
if x=="help":
print(robot.__dict__)
else:
translation(x)