Skip to content

Commit 7659b78

Browse files
committed
clean
1 parent a22cbde commit 7659b78

16 files changed

Lines changed: 240 additions & 45 deletions

File tree

‎.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@ checkpoints/
2525
.vscode/
2626

2727
local_*
28+
.DS_Store

‎README.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<h3 align="center">Run your robot model on any device, easily.</h3>
1010

1111
<p align="center">
12-
<strong>English</strong> | <a href="README_zh.md">简体中文</a>
12+
<strong>English</strong> | <a href="README_ZH.md">简体中文</a>
1313
</p>
1414

1515
<p align="center">
@@ -73,7 +73,7 @@ There are two ways to start `model-server`.
7373

7474
##### Option 1: Download a prebuilt binary
7575

76-
For several platforms and configurations, we provide prebuilt `model-server` binaries on the release page.
76+
For several platforms and configurations, we provide prebuilt `model-server` binaries on the [release page](https://github.com/Robot-cpp/robot.cpp/releases/latest).
7777

7878
After downloading, run `model-server` like this:
7979

@@ -227,7 +227,7 @@ Robot.cpp welcomes community contributions for new model runtimes, platform adap
227227

228228
If you want to extend this project, start with these documents:
229229

230-
* [How to add a new model](src/readme.md)
230+
* [How to add a new model](src/README.md)
231231
* How to add a new platform: [real robot](eval/README.md), [simulation](eval/HOW_TO_ADD_NEW_SIM.md).
232232

233233
Issues and PRs are welcome. For larger model-architecture changes, protocol changes, or platform abstraction changes, we recommend opening an issue first to align on the interface boundary.

‎README_zh.md‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
Robot.cpp是一个轻量化的on-device机器人模型推理框架,在llama.cpp的基础上进行开发,继承了其零依赖、轻量化的哲学,无需python相关的依赖配置,即可完成机器人模型推理,这使得其在跨平台尤其是环境配置复杂的边缘设备上具有优势。
3131

32-
具体而言,robot.cpp最核心的概念是 [`model-server`](robot_server/README_zh.md),其为最主要的统一模型接口。在实际工作,仅需要启动 `model-server`,其会监听机器人发送的推理请求,即接受机器人传来的observation,在下层model进行forward计算,返回model生成的action。整体通信设计上为了轻量化零依赖采用手写TCP协议的方式。
32+
具体而言,robot.cpp最核心的概念是 [`model-server`](robot_server/README_ZH.md),其为最主要的统一模型接口。在实际工作,仅需要启动 `model-server`,其会监听机器人发送的推理请求,即接受机器人传来的observation,在下层model进行forward计算,返回model生成的action。整体通信设计上为了轻量化零依赖采用手写TCP协议的方式。
3333

3434
对于如何在机器人上使用,我们亦都提供了一些示例,分别提供了libero和低成本的SO-101的示例作为仿真与真机的使用模板。具体而言,我们采用以下概念组织:
3535

@@ -40,8 +40,8 @@ Robot.cpp是一个轻量化的on-device机器人模型推理框架,在llama.cp
4040

4141
工具上,我们亦都提供了两种工具帮助更好地对机器人模型进行开发:
4242

43-
* [`hf2gguf`](tools/hf2gguf/README_zh.md):用来将safetensor格式的checkpoint转化成项目所需的gguf格式。
44-
* [`quant`](tools/quant/README_zh.md):对模型的任意tensor族群进行选择性quant的工具,用户仅需要调整yaml进行需求配置即可完成量化gguf的生成。
43+
* [`hf2gguf`](tools/hf2gguf/README_ZH.md):用来将safetensor格式的checkpoint转化成项目所需的gguf格式。
44+
* [`quant`](tools/quant/README_ZH.md):对模型的任意tensor族群进行选择性quant的工具,用户仅需要调整yaml进行需求配置即可完成量化gguf的生成。
4545

4646
---
4747

@@ -73,7 +73,7 @@ git submodule update --init --recursive
7373

7474
##### 方法1:直接下载
7575

76-
对于特定的一些平台与设定,我们已经预编译了一些`model-server`的二进制文件,可以直接在release page下载下来直接用。
76+
对于特定的一些平台与设定,我们已经预编译了一些`model-server`的二进制文件,可以直接在 [release page](https://github.com/Robot-cpp/robot.cpp/releases/latest) 下载下来直接用。
7777

7878
下载之后,可以直接用下面的方式运行`model-server`:
7979

@@ -90,7 +90,7 @@ git submodule update --init --recursive
9090

9191
##### 方法2:本地编译
9292

93-
对于更加一般的情况,我们也提供了三个平台的开箱即用编译+启动的shell,可以通过修改shell里的环境变量,或者直接export的形式来快速在本机实现启动。详情参见 [robot_server/README_zh.md](robot_server/README_zh.md)
93+
对于更加一般的情况,我们也提供了三个平台的开箱即用编译+启动的shell,可以通过修改shell里的环境变量,或者直接export的形式来快速在本机实现启动。详情参见 [robot_server/README_ZH.md](robot_server/README_ZH.md)
9494

9595
| Backend | macOS | Linux | Windows |
9696
| ------- | ------------------------------------------------------- | -------------------------------------------------------- | ----------------------------------------------------------- |
@@ -135,11 +135,11 @@ bash robot_client/shell/cpp_client_example.sh
135135

136136
### 🧪 model-server在仿真平台上的使用(以LIBERO为例)
137137

138-
详见 [LIBERO 仿真评测说明](eval/libero/README_zh.md)。
138+
详见 [LIBERO 仿真评测说明](eval/libero/README_ZH.md)。
139139

140140
### 🦾 model-server在真机平台上的使用(以SO-101为例)
141141

142-
详见 [SO101部署说明](eval/lerobot_so101/README_zh.md)。亦可参考视频教程(bilibili link)
142+
详见 [SO101部署说明](eval/lerobot_so101/README_ZH.md)。亦可参考视频教程(bilibili link)
143143

144144
---
145145

@@ -166,7 +166,7 @@ bash robot_client/shell/cpp_client_example.sh
166166

167167
## 🧩 model-zoo
168168

169-
这里整理一些已经转换好的 GGUF 模型,可以直接配合 `model-server` 做smoke test,以方便quick start!但针对自己的实际场景,我们推荐使用[hf2gguf](tools/hf2gguf/README_zh.md)l来生成自己的GGUF model!并且对于不同的部分,您还可以自定义不同的精度,来实现不同部分的精度组合(事实上,不同部分的最优精度通常是不同的),我们的例子中,state proj始终保持f32精度,其他的gguf随着precision精度变化而变化,您可以自行组合,探索更好更高效的性能tradeoff!
169+
这里整理一些已经转换好的 GGUF 模型,可以直接配合 `model-server` 做smoke test,以方便quick start!但针对自己的实际场景,我们推荐使用[hf2gguf](tools/hf2gguf/README_ZH.md)l来生成自己的GGUF model!并且对于不同的部分,您还可以自定义不同的精度,来实现不同部分的精度组合(事实上,不同部分的最优精度通常是不同的),我们的例子中,state proj始终保持f32精度,其他的gguf随着precision精度变化而变化,您可以自行组合,探索更好更高效的性能tradeoff!
170170

171171
| Model | Benchmark | Precision | Link |
172172
| ------- | --------- | --------- | ----------------------------------------------------------------------- |
@@ -227,8 +227,8 @@ robot.cpp 欢迎社区贡献新的模型 runtime、平台适配、评测流程
227227

228228
如果你希望扩展本项目,可以先阅读以下文档:
229229

230-
* [如何新增一个新的模型](src/readme_zh.md)
231-
* 如何接入一个新的平台:[真机](eval/readme_zh.md)、[仿真](eval/HOW_TO_ADD_NEW_SIM_zh.md)。
230+
* [如何新增一个新的模型](src/README_ZH.md)
231+
* 如何接入一个新的平台:[真机](eval/README_ZH.md)、[仿真](eval/HOW_TO_ADD_NEW_SIM_ZH.md)。
232232

233233
欢迎通过 issue 讨论设计,也欢迎提交 PR。对于较大的模型结构、协议变更或平台抽象调整,建议先开 issue 对齐接口边界。
234234

‎eval/README.md‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# eval/ Platform Integration Guide
22

3-
[中文](eval/README_zh.md)
3+
[中文](README_ZH.md)
44

55
The `eval/` directory holds **end-to-end evaluation and closed-loop control examples** for robot.cpp on specific robots or simulators. This code does not run model inference itself—that is handled by [`model-server`](../robot_server/README.md). `eval/` wires each platform’s observation capture, action execution, and (optionally) benchmark workflows.
66

@@ -27,8 +27,8 @@ eval/
2727

2828
| Directory | Scenario | Notes |
2929
|---|---|---|
30-
| [`libero/`](libero/README.md) | Sim eval | LIBERO benchmark with C++ policy rollout and LeRobot baseline. [中文](libero/README_zh.md) |
31-
| [`lerobot_so101/`](lerobot_so101/README.md) | Real robot | SO-101 follower + single-camera observe → predict → act loop. [中文](lerobot_so101/README_zh.md) |
30+
| [`libero/`](libero/README.md) | Sim eval | LIBERO benchmark with C++ policy rollout and LeRobot baseline. [中文](libero/README_ZH.md) |
31+
| [`lerobot_so101/`](lerobot_so101/README.md) | Real robot | SO-101 follower + single-camera observe → predict → act loop. [中文](lerobot_so101/README_ZH.md) |
3232

3333
The two examples are organized slightly differently:
3434

@@ -224,8 +224,8 @@ LIBERO’s [`ModelServerPolicy`](libero/policy/model_server.py) is an example of
224224

225225
## Related docs
226226

227-
- [SO-101 real-robot guide](lerobot_so101/README.md) · [中文](lerobot_so101/README_zh.md)
228-
- [LIBERO sim eval](libero/README.md) · [中文](libero/README_zh.md)
227+
- [SO-101 real-robot guide](lerobot_so101/README.md) · [中文](lerobot_so101/README_ZH.md)
228+
- [LIBERO sim eval](libero/README.md) · [中文](libero/README_ZH.md)
229229
- [robot_server launch and protocol](../robot_server/README.md)
230230
- [robot_client and policy](../robot_client/README.md)
231-
- [Adding a new model runtime](../src/readme_zh.md)
231+
- [Adding a new model runtime](../src/README.md)

‎eval/lerobot_so101/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# LeRobot SO101
22

3-
[中文](eval\lerobot_so101\README_zh.md)
3+
[中文](README_ZH.md)
44

55
This directory provides a real-robot synchronous control example for the
66
LeRobot SO101 platform.

‎eval/lerobot_so101/README_zh.md‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# LeRobot SO101
22

3-
[English](eval\lerobot_so101\README.md)
3+
[English](README.md)
44

55
这个目录提供一个 LeRobot SO101 Platform 的真机同步控制示例。
66

@@ -115,7 +115,7 @@ bash eval/lerobot_so101/shell/run_robot_client.sh
115115
- `R`:清空 action queue,机械臂移动回启动时记录的 home pose
116116
- `Q`:退出同步控制循环
117117

118-
如果相机出现错误,可以使用如下方法进行测试(RealSense 配置详见 [test/README_zh.md](test/README_zh.md)):
118+
如果相机出现错误,可以使用如下方法进行测试(RealSense 配置详见 [test/README_ZH.md](test/README_ZH.md)):
119119

120120
```bash
121121
cd eval/lerobot_so101
@@ -154,4 +154,3 @@ SO101Platform.get_observation()
154154
-> BasePolicy.select_action()
155155
-> SO101Platform.send_action()
156156
```
157-

‎eval/lerobot_so101/test/README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Camera Test & RealSense Setup
22

3-
[中文](README_zh.md)
3+
[中文](README_ZH.md)
44

55
This directory provides **camera smoke tests** before running the SO-101 real-robot client. It shares the same `so101_env` configuration as `shell/run_robot_client.*`.
66

@@ -208,4 +208,4 @@ python eval/lerobot_so101/shell/build_robot_cameras.py
208208
- [ ] `run_camera_test` prints 224×224 frames
209209
- [ ] `MODEL_IMAGE_NAME` matches the model checkpoint
210210

211-
See [../README_zh.md](../README_zh.md) for the full SO-101 real-robot workflow.
211+
See [../README_ZH.md](../README_ZH.md) for the full SO-101 real-robot workflow.

‎eval/lerobot_so101/test/README_zh.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,4 +223,4 @@ python eval/lerobot_so101/shell/build_robot_cameras.py
223223
- [ ] `run_camera_test` 输出 224×224 帧
224224
- [ ] `MODEL_IMAGE_NAME` 与模型 checkpoint 一致
225225

226-
更多 SO-101 真机流程见 [../README_zh.md](../README_zh.md)。
226+
更多 SO-101 真机流程见 [../README_ZH.md](../README_ZH.md)。

‎eval/libero/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# LIBERO Eval
22

3-
[中文文档](README_zh.md)
3+
[中文文档](README_ZH.md)
44

55
This directory provides LIBERO simulation eval and latency scripts for two
66
policy paths:

‎eval/readme_zh.md‎

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# eval/ 平台接入指南
22

3-
[English](eval/README.md)
3+
[English](README.md)
44

5-
`eval/` 目录存放 **robot.cpp 在具体机器人或仿真环境上的评测与闭环控制示例**。这里的代码不负责模型推理本身,推理由 `[model-server](../robot_server/README_zh.md)` 完成。`eval/` 只负责把各平台的 observation 采集、action 下发,以及benchmark 流程串起来。
5+
`eval/` 目录存放 **robot.cpp 在具体机器人或仿真环境上的评测与闭环控制示例**。这里的代码不负责模型推理本身,推理由 `[model-server](../robot_server/README_ZH.md)` 完成。`eval/` 只负责把各平台的 observation 采集、action 下发,以及benchmark 流程串起来。
66

7-
仓库根目录的 [README_zh.md](../README_zh.md) 介绍了整体三层抽象:
7+
仓库根目录的 [README_ZH.md](../README_ZH.md) 介绍了整体三层抽象:
88

99

1010
| 层 | 职责 | 代码位置 |
@@ -30,8 +30,8 @@ eval/
3030

3131
| 目录 | 场景 | 说明 |
3232
| ---------------------------------------------- | ---- | ------------------------------------------------------------------------------------------ |
33-
| `[libero/](libero/README_zh.md)` | 仿真评测 | 面向 LIBERO benchmark,含 C++ policy rollout 与 LeRobot baseline 对比。[English](libero/README.md) |
34-
| `[lerobot_so101/](lerobot_so101/README_zh.md)` | 真机闭环 | SO-101 follower + 单相机的 observe → predict → act 同步控制。[English](lerobot_so101/README.md) |
33+
| `[libero/](libero/README_ZH.md)` | 仿真评测 | 面向 LIBERO benchmark,含 C++ policy rollout 与 LeRobot baseline 对比。[English](libero/README.md) |
34+
| `[lerobot_so101/](lerobot_so101/README_ZH.md)` | 真机闭环 | SO-101 follower + 单相机的 observe → predict → act 同步控制。[English](lerobot_so101/README.md) |
3535

3636

3737
两类示例的组织方式略有不同:
@@ -64,7 +64,7 @@ Platform.send_action() # 下发到机器人
6464

6565
## 如何新增一个 Platform
6666

67-
以下步骤以新增真机 platform 为主。若接入的是仿真 benchmark,可参考 `[eval/libero/](libero/README_zh.md)` 自行组织 runner 与 policy adapter。
67+
以下步骤以新增真机 platform 为主。若接入的是仿真 benchmark,可参考 `[eval/libero/](libero/README_ZH.md)` 自行组织 runner 与 policy adapter。
6868

6969
### step1:创建目录
7070

@@ -207,7 +207,7 @@ strings ckpts/<gguf_dir>/mmproj-smolvla-f32.gguf | rg "observation\.images\."
207207

208208
### step6:启动与验证
209209

210-
1. 启动 model-server(见 [robot_server/README_zh.md](../robot_server/README_zh.md))。
210+
1. 启动 model-server(见 [robot_server/README_ZH.md](../robot_server/README_ZH.md))。
211211
2. 运行 platform client shell。
212212
3. 先用 server 延迟脚本确认 server 正常。
213213
4. 再跑真机 / 仿真闭环;观察 server 终端是否有 `[SmolVLA] Error:` 等报错。
@@ -232,9 +232,8 @@ LIBERO 的 `[ModelServerPolicy](libero/policy/model_server.py)` 即为自定义
232232

233233
## 相关文档
234234

235-
- [SO-101 真机使用说明](lerobot_so101/README_zh.md)
236-
- [LIBERO 仿真评测说明](libero/README_zh.md)
237-
- [robot_server 启动与协议](../robot_server/README_zh.md)
235+
- [SO-101 真机使用说明](lerobot_so101/README_ZH.md)
236+
- [LIBERO 仿真评测说明](libero/README_ZH.md)
237+
- [robot_server 启动与协议](../robot_server/README_ZH.md)
238238
- [robot_client 与 policy](../robot_client/README.md)
239-
- [新增模型 runtime](../src/readme_zh.md)
240-
239+
- [新增模型 runtime](../src/README_ZH.md)

0 commit comments

Comments
 (0)