Files
lerobot/robot_client/robots/realman/config.py
1002142102@qq.com cc31254055 1.增加xbox控制器和飞行手柄控制器
2.增加多臂多控制器模式
3.末端姿态由欧拉角控制切换到四元数控制
4.增加vr手柄控制器

Signed-off-by: 1002142102@qq.com <1002142102@qq.com>
2025-12-24 14:02:34 +08:00

23 lines
941 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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