21 lines
662 B
Python
21 lines
662 B
Python
from dataclasses import dataclass, field
|
|
|
|
from lerobot.common.cameras import CameraConfig
|
|
|
|
from ..config import RobotConfig
|
|
|
|
|
|
@RobotConfig.register_subclass("so100")
|
|
@dataclass
|
|
class SO100RobotConfig(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
|
|
|
|
# cameras
|
|
cameras: dict[str, CameraConfig] = field(default_factory=dict)
|