File size: 434 Bytes
ef2a612 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | from .config import RobotConfig
from .robot import Robot
def make_robot_from_config(config: RobotConfig) -> Robot:
if config.type == "send_robot":
from .send_robot import SendRobot
return SendRobot(config)
if config.type == "send_robot_end_effector":
from .send_robot.send_robot_end_effector import SendRobotEndEffector
return SendRobotEndEffector(config)
raise ValueError(config.type)
|