FelishLeon's picture
Upload folder using huggingface_hub (part 2)
ef2a612 verified
Raw History Blame Contribute Delete
434 Bytes
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)