Files
lerobot/lerobot/common/robots/koch/configuration_koch.py
T
2025-03-03 20:19:23 +01:00

31 lines
952 B
Python

from dataclasses import dataclass, field
from lerobot.common.cameras import CameraConfig
from ..config import RobotConfig
@RobotConfig.register_subclass("koch")
@dataclass
class KochRobotConfig(RobotConfig):
# Port to connect to the robot
port: str
# `max_relative_target` limits the magnitude of the relative positional target vector for safety purposes.
# Set this to a positive scalar to have the same value for all motors, or a list that is the same length as
# the number of motors in your follower arms.
max_relative_target: int | None = None
mock: bool = False
# motors
shoulder_pan: tuple = (1, "xl430-w250")
shoulder_lift: tuple = (2, "xl430-w250")
elbow_flex: tuple = (3, "xl330-m288")
wrist_flex: tuple = (4, "xl330-m288")
wrist_roll: tuple = (5, "xl330-m288")
gripper: tuple = (6, "xl330-m288")
# cameras
cameras: dict[str, CameraConfig] = field(default_factory=dict)