增加high lever,待测试,待全部转换为C++版本加速,待接口与官方同步

This commit is contained in:
cyy_mac
2026-06-20 20:31:12 +08:00
parent 0e6c90a868
commit 96db3f40f4
12 changed files with 677 additions and 5 deletions

View File

@@ -1,5 +1,35 @@
# Examples
## 高层 (HighLevel) — 通过 sportMode + MQTT, 不需停 Pi 进程
适合: 走/跳/姿态/表演动作. 跟 lowlevel 控制方式互不兼容, 同时只用一种.
### example_highlevel_walk.py — 走一圈
```bash
python examples/example_highlevel_walk.py
```
起立 → walk 模式 → 前进 2 秒 → 转向 2 秒 → 趴下.
### example_highlevel_pose.py — 姿态变化
```bash
python examples/example_highlevel_pose.py
```
stand 模式下做各种姿态: 倾斜/扭转/抬头/低头/蹲下/撑直.
### example_highlevel_dance.py — 跳舞 + 头灯
```bash
python examples/example_highlevel_dance.py
```
dance_1 + 头灯炫彩切换.
## 低层 (LowLevel) — 直接控制 12 电机, 必须停 sportMode
每个示例都假定:
- 你已经从狗上提取了 `blowfish_state.bin` (或用包内置的)
- 已经停掉 Pi 上的 keep_sport_alive + Legged_sport + appTransit