添加record脚本

This commit is contained in:
2025-12-08 15:09:30 +08:00
parent 15091ad9b6
commit 0866168e29
17 changed files with 598 additions and 26 deletions

View File

@@ -0,0 +1,22 @@
from dataclasses import dataclass
from lerobot.teleoperators import TeleoperatorConfig
@dataclass
@TeleoperatorConfig.register_subclass("flight_stick")
class FlightStickConfig(TeleoperatorConfig):
#控制器索引
index: int = 0
#定义启动按钮
start_button: str = "button_7"
#定义精细控制模式切换按钮
fine_control_button: str = "button_10"
#定义夹爪开按钮
gripper_open_button: str = "button_1"
#定义夹爪关按钮
gripper_close_button: str = "button_0"
#定义方向帽子键
hat_button: int = 0
#RX旋转映射
RX_MAP: str = "button_4_5"
#RY旋转映射
RX_MAP: str = "button_2_3"