2.增加多臂多控制器模式 3.末端姿态由欧拉角控制切换到四元数控制 4.增加vr手柄控制器 Signed-off-by: 1002142102@qq.com <1002142102@qq.com>
23 lines
941 B
Python
23 lines
941 B
Python
from dataclasses import dataclass, field
|
||
from lerobot.cameras.realsense.configuration_realsense import RealSenseCameraConfig
|
||
from lerobot.motors.motors_bus import Motor, MotorCalibration
|
||
from lerobot.robots.config import RobotConfig
|
||
|
||
@RobotConfig.register_subclass("realman")
|
||
@dataclass
|
||
class RealmanRobotConfig(RobotConfig):
|
||
# Port to connect to the arm
|
||
port: str
|
||
mock: bool = field(default_factory=bool)
|
||
#0:关节角度透传模式 1:笛卡尔速度透传
|
||
mode: int = 0
|
||
gripper_range: list[int] = field(default_factory=list)
|
||
disable_torque_on_disconnect: bool = True
|
||
max_relative_target = None
|
||
# cameras
|
||
cameras: dict[str, RealSenseCameraConfig] = field(default_factory=dict)
|
||
joint: list=field(default_factory=list)
|
||
udp_ip: str|None = "127.0.0.1"
|
||
udp_port: int = 8090
|
||
motors: dict[str, Motor] = field(default_factory=dict)
|
||
calibration: dict[str, MotorCalibration] | None = None |