tr2023-robot/testofrobot.py

20 lines
388 B
Python
Raw Normal View History

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