Add CalibrationMode

This commit is contained in:
Simon Alibert
2025-03-23 10:20:08 +01:00
parent c2e761437d
commit e047074825
3 changed files with 18 additions and 17 deletions

View File

@@ -74,10 +74,17 @@ class DriveMode(Enum):
class CalibrationMode(Enum):
# Joints with rotational motions are expressed in degrees in nominal range of [-180, 180]
DEGREE = 0
# Joints with liner motions (like gripper of Aloha) are expressed in nominal range of [0, 100]
LINEAR = 1
RANGE_0_100 = 1
RANGE_M100_100 = 2
VELOCITY = 3
@dataclass
class Motor:
id: int
model: str
calibration: CalibrationMode
class JointOutOfRangeError(Exception):
@@ -190,12 +197,6 @@ class GroupSyncWrite(Protocol):
def txPacket(self): ...
@dataclass
class Motor:
id: int
model: str
class MotorsBus(abc.ABC):
"""The main LeRobot class for implementing motors buses.