Skip to content

Commit 5cb8867

Browse files
committed
Migrate docs site and add HuggingFace asset support
1 parent 5c7078e commit 5cb8867

64 files changed

Lines changed: 22474 additions & 1570 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/deploy-docs.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Deploy Docs
2+
3+
on:
4+
push:
5+
branches: [master]
6+
paths:
7+
- 'docs/**'
8+
workflow_dispatch:
9+
10+
permissions:
11+
contents: read
12+
pages: write
13+
id-token: write
14+
15+
concurrency:
16+
group: pages
17+
cancel-in-progress: false
18+
19+
jobs:
20+
build:
21+
runs-on: ubuntu-latest
22+
defaults:
23+
run:
24+
working-directory: docs
25+
steps:
26+
- uses: actions/checkout@v4
27+
28+
- uses: actions/setup-node@v4
29+
with:
30+
node-version: 20
31+
cache: npm
32+
cache-dependency-path: docs/package-lock.json
33+
34+
- name: Install dependencies
35+
run: npm ci
36+
37+
- name: Build website
38+
run: npm run build
39+
40+
- name: Upload artifact
41+
uses: actions/upload-pages-artifact@v3
42+
with:
43+
path: docs/build
44+
45+
deploy:
46+
environment:
47+
name: github-pages
48+
url: ${{ steps.deployment.outputs.page_url }}
49+
runs-on: ubuntu-latest
50+
needs: build
51+
steps:
52+
- name: Deploy to GitHub Pages
53+
id: deployment
54+
uses: actions/deploy-pages@v4

README.md

Lines changed: 40 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -4,64 +4,49 @@
44

55
<p align="center">
66
<h1 align="center">Teleopit</h1>
7-
<h3 align="center">轻量、可扩展的人形机器人全身遥操作框架</h3>
7+
<h3 align="center">Lightweight, extensible whole-body teleoperation framework for humanoid robots</h3>
88
</p>
99

1010
<p align="center">
11-
<a href="#quick-start">Quick Start</a>
12-
<a href="docs/pico4.md">Pico VR 部署</a>
13-
<a href="docs/sim2real.md">真机部署</a>
14-
<a href="docs/training.md">训练</a>
15-
<a href="docs/assets.md">资源说明</a>
11+
<a href="https://BotRunner64.github.io/Teleopit/">Documentation</a> &bull;
12+
<a href="https://BotRunner64.github.io/Teleopit/docs/getting-started/quick-start">Quick Start</a> &bull;
13+
<a href="https://BotRunner64.github.io/Teleopit/docs/tutorials/pico4-vr">Pico VR</a> &bull;
14+
<a href="https://BotRunner64.github.io/Teleopit/docs/tutorials/sim2real">Sim2Real</a> &bull;
15+
<a href="https://BotRunner64.github.io/Teleopit/docs/tutorials/training">Training</a>
1616
</p>
1717

18-
## 安装
18+
## Installation
1919

2020
```bash
21-
pip install -e . # 推理(sim2sim
22-
pip install -e '.[train]' # 训练
23-
pip install -e '.[sim2real]' # 真机部署
21+
pip install -e . # Inference (sim2sim)
22+
pip install -e '.[train]' # Training
23+
pip install -e '.[sim2real]' # Hardware deployment
2424
```
2525

26-
核心 mocap 可视化与离线渲染现已统一为 MuJoCo 后端,不再依赖 `matplotlib`;旧的 `bvh` 可视化命名已废弃。
27-
28-
## 下载模型和数据
29-
30-
一键下载所有资源(模型、数据、GMR retargeting assets):
26+
## Download Models and Data
3127

3228
```bash
3329
pip install modelscope
3430
python scripts/setup/download_assets.py
3531
```
3632

37-
只下载推理必需的部分:
33+
Download only inference essentials:
3834

3935
```bash
4036
python scripts/setup/download_assets.py --only gmr ckpt bvh
4137
```
4238

43-
下载内容说明:
44-
45-
| 资源 | 大小 | 用途 |
46-
|------|------|------|
47-
| `track.onnx` | 4M | ONNX 推理模型 |
48-
| `track.pt` | 27M | PyTorch checkpoint(resume 训练用) |
49-
| `data/datasets/seed/train/shard_*.npz` | ~25G | 训练集 |
50-
| `data/datasets/seed/val/shard_*.npz` | ~1.4G | 验证集 |
51-
| `data/sample_bvh/*.bvh` | 5M | 示例动作文件 |
52-
| `teleopit/retargeting/gmr/assets/` | ~1.2G | GMR retargeting 机器人模型 |
53-
5439
## Quick Start
5540

56-
离线 sim2sim
41+
Offline sim2sim:
5742

5843
```bash
5944
python scripts/run/run_sim.py \
6045
controller.policy_path=track.onnx \
6146
input.bvh_file=data/sample_bvh/aiming1_subject1.bvh
6247
```
6348

64-
训练(传 shard 目录):
49+
Training:
6550

6651
```bash
6752
python train_mimic/scripts/train.py \
@@ -70,7 +55,7 @@ python train_mimic/scripts/train.py \
7055
--max_iterations 30000
7156
```
7257

73-
导出 ONNX
58+
Export ONNX:
7459

7560
```bash
7661
python train_mimic/scripts/save_onnx.py \
@@ -79,42 +64,42 @@ python train_mimic/scripts/save_onnx.py \
7964
--history_length 10
8065
```
8166

82-
## 更多用法
67+
## Use Cases
8368

84-
| 场景 | 命令 | 文档 |
85-
|------|------|------|
86-
| **离线 sim2real 动作播放** | `python scripts/run/run_sim2real.py controller.policy_path=track.onnx input.bvh_file=...` | [sim2real.md](docs/sim2real.md) |
87-
| **Pico 4 VR 遥操作** | `python scripts/run/run_sim.py --config-name pico4_sim ...` | **[Pico VR 部署](docs/pico4.md)** |
88-
| **Pico 4 真机部署** | `python scripts/run/run_sim2real.py --config-name pico4_sim2real ...` | **[Pico VR 部署](docs/pico4.md)** |
89-
| **G1 Onboard(NX 机载)** | `python scripts/run/run_onboard_sim2real.py ...` | [sim2real.md](docs/sim2real.md) |
90-
| **离线 sim2sim 键盘重播** | `python scripts/run/run_sim.py controller.policy_path=track.onnx input.bvh_file=... playback.keyboard.enabled=true` | [inference.md](docs/inference.md) |
91-
| 训练与导出 | `python train_mimic/scripts/train.py ...` | [training.md](docs/training.md) |
69+
| Scenario | Command | Docs |
70+
|----------|---------|------|
71+
| **Offline sim2sim** | `python scripts/run/run_sim.py controller.policy_path=track.onnx input.bvh_file=...` | [Sim2Sim](https://BotRunner64.github.io/Teleopit/docs/tutorials/offline-sim2sim) |
72+
| **Pico 4 VR teleoperation** | `python scripts/run/run_sim.py --config-name pico4_sim ...` | [Pico VR](https://BotRunner64.github.io/Teleopit/docs/tutorials/pico4-vr) |
73+
| **Pico 4 hardware deploy** | `python scripts/run/run_sim2real.py --config-name pico4_sim2real ...` | [Pico VR](https://BotRunner64.github.io/Teleopit/docs/tutorials/pico4-vr) |
74+
| **G1 Onboard (NX)** | `python scripts/run/run_onboard_sim2real.py ...` | [Onboard](https://BotRunner64.github.io/Teleopit/docs/tutorials/onboard-sim2real) |
75+
| **Offline keyboard replay** | `python scripts/run/run_sim.py ... playback.keyboard.enabled=true` | [Sim2Sim](https://BotRunner64.github.io/Teleopit/docs/tutorials/offline-sim2sim) |
76+
| **Training & export** | `python train_mimic/scripts/train.py ...` | [Training](https://BotRunner64.github.io/Teleopit/docs/tutorials/training) |
9277

93-
离线 `sim2sim` 键盘映射:`Space/P` 暂停/恢复,`R` 从头重播,`Q` 停止;`sim2real` 继续使用遥控器,`Y` 进入播放、`A` 暂停/恢复、`B` 重播、`X` 回站立。
94-
Pico mocap 暂停恢复的重要提示:恢复时尽量不要运动,尽量让恢复姿态接近暂停姿态;如果出现扭曲,立即再次暂停,等姿态稳定后再恢复。
78+
Offline sim2sim keyboard: `Space/P` pause/resume, `R` replay, `Q` stop. Sim2real uses the wireless remote: `Y` enter playback, `A` pause/resume, `B` replay, `X` return to standing.
9579

96-
## 文档
80+
## Documentation
9781

98-
- **[Pico VR 部署](docs/pico4.md)**:Pico 4 / Pico 4 Ultra 全身追踪遥操作完整指南
99-
- [真机部署](docs/sim2real.md):Unitree G1 部署、离线动作播放、Pico 遥操作
100-
- [G1 Bridge SDK](docs/g1_bridge_sdk.md):C++ DDS 桥接库安装与 API 说明
101-
- [推理与运行](docs/inference.md):离线播放、viewer、录制、遥控重播
102-
- [训练](docs/training.md):训练、评估、导出 ONNX
103-
- [数据集](docs/dataset.md):数据下载与自定义构建
104-
- [资源管理](docs/assets.md):外部资源下载与 ModelScope 上传
105-
- [配置说明](docs/configuration.md):Hydra 配置入口
106-
- [架构](docs/architecture.md):系统边界与技术规格
82+
Full documentation is available at **[BotRunner64.github.io/Teleopit](https://BotRunner64.github.io/Teleopit/)**.
10783

108-
## 更新日志
84+
- [Installation](https://BotRunner64.github.io/Teleopit/docs/getting-started/installation)
85+
- [Configuration](https://BotRunner64.github.io/Teleopit/docs/configuration/overview)
86+
- [Architecture](https://BotRunner64.github.io/Teleopit/docs/reference/architecture)
87+
- [Asset Management](https://BotRunner64.github.io/Teleopit/docs/reference/assets)
88+
89+
## Changelog
10990

11091
### v0.2.0 (2026-04-03)
11192

112-
机载 Onboard Sim2RealG1 NX + ZMQ Pico4)、G1 Bridge SDKC++ DDS pybind11)、独立 Standing 控制器(RL policy + timing 诊断)、实时 mocap 缓冲与 catch-up 优化;发布模型升级至 30k checkpoint
93+
Onboard Sim2Real (G1 NX + ZMQ Pico4), G1 Bridge SDK (C++ DDS pybind11), standalone Standing controller (RL policy + timing diagnostics), realtime mocap buffering with catch-up optimization; released model upgraded to 30k checkpoint.
11394

11495
### v0.1.1 (2025-03-28)
11596

116-
数据集 shard-only 改造、adaptive_bin 采样、外部资源管理、仓库瘦身。
97+
Dataset shard-only refactor, adaptive_bin sampling, external asset management, repository slimming.
11798

11899
### v0.1.0 (2025-03-25)
119100

120-
首个公开版本:General-Tracking-G1 全身追踪训练、ONNX sim2sim 推理、Pico 4 VR 遥操作、Unitree G1 真机部署。
101+
Initial public release: General-Tracking-G1 whole-body tracking training, ONNX sim2sim inference, Pico 4 VR teleoperation, Unitree G1 hardware deployment.
102+
103+
## License
104+
105+
[MIT](LICENSE)

docs/.gitignore

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Dependencies
2+
/node_modules
3+
4+
# Production
5+
/build
6+
7+
# Generated files
8+
.docusaurus
9+
.cache-loader
10+
11+
# Misc
12+
.DS_Store
13+
.env.local
14+
.env.development.local
15+
.env.test.local
16+
.env.production.local
17+
18+
npm-debug.log*
19+
yarn-debug.log*
20+
yarn-error.log*

docs/architecture.md

Lines changed: 0 additions & 78 deletions
This file was deleted.

0 commit comments

Comments
 (0)