Reachy Mini documentation
已记录的操作
快速入门
Reachy Mini(无线版)
Reachy Mini Lite
模拟
软件指南
SDK 概述安装核心概念快速入门指南JavaScript SDK 与 Web 应用构建并发布应用唤醒与休眠生命周期AI 集成Python SDKREST API媒体架构云后端消费者GStreamer 安装遥测
帮助与支持
示例
最小化演示查看头部追踪序列前往插值游乐场IMU合规模式演示已记录的操作Rerun 查看器拍摄照片Joystick Controller头部位置 GUI声源到达方向声音播放声音录制声音 TTS(伴随头部摆动)自定义媒体管理器
集成
API
已记录的操作
本示例演示了如何针对 Reachy Mini 播放数据集中所有可用的动作。您可以使用预构建的舞蹈和情绪库,也可以提供自己的自定义数据集。
运行命令:
python recorded_moves.py -l [dance, emotions]
或者使用自定义数据集:
python recorded_moves.py --dataset path/to/your/dataset
import argparse
from reachy_mini import ReachyMini
from reachy_mini.motion.recorded_move import RecordedMove, RecordedMoves
# Keep compatibility with the original library flag while allowing custom datasets.
LIBRARY_DATASETS = {
"dance": "pollen-robotics/reachy-mini-dances-library",
"emotions": "pollen-robotics/reachy-mini-emotions-library",
}
def main(dataset_path: str) -> None:
"""Connect to Reachy and run the main demonstration loop."""
recorded_moves = RecordedMoves(dataset_path)
print("Connecting to Reachy Mini...")
with ReachyMini() as reachy:
print("Connection successful! Starting dance sequence...\n")
try:
while True:
for move_name in recorded_moves.list_moves():
move: RecordedMove = recorded_moves.get(move_name)
print(f"Playing move: {move_name}: {move.description}\n")
reachy.play_move(move, initial_goto_duration=1.0)
except KeyboardInterrupt:
print("\n Sequence interrupted by user. Shutting down.")
if __name__ == "__main__":
parser = argparse.ArgumentParser(
description="Demonstrate and play all available dance moves for Reachy Mini."
)
parser.add_argument(
"-l",
"--library",
type=str,
default="dance",
choices=sorted(LIBRARY_DATASETS.keys()),
help="Pick one of the original libraries (default: dance).",
)
parser.add_argument(
"--dataset",
type=str,
help="Local path or HF dataset id. Overrides --library when provided.",
)
args = parser.parse_args()
dataset_path = args.dataset or LIBRARY_DATASETS[args.library]
main(dataset_path)