diff --git a/examples/hand_gallery/README.md b/examples/hand_gallery/README.md index c174f707..5809400b 100644 --- a/examples/hand_gallery/README.md +++ b/examples/hand_gallery/README.md @@ -7,13 +7,15 @@ python3 examples/hand_gallery/launch.py ``` - `http://127.0.0.1:8764/`:选择菜单。 -- `http://127.0.0.1:8764/hands/codex`:Codex 的 LH20 R0.3 外形重设计(独立端口 8785)。 +- `http://127.0.0.1:8764/hands/codex`:Codex 的 LH20 R0.4 外形重设计(独立端口 8795)。 - `http://127.0.0.1:8764/hands/claude`:Claude 的 20 自由度灵巧手。 顶部菜单可随时切换;浏览器前进、后退和直接刷新路由均支持。已经打开的编辑器保留在各自 iframe 中,切换不会触发整手重新构建。右上角可将当前编辑器放到独立窗口。 -启动器检查现有服务的工作区,复用匹配的 8785 / 8771 编辑器;未启动时使用 `.venv/bin/sca` / `.venv-hand/bin/sca` 启动相应 `hand.py`。遇到无关服务占用端口会报错,不终止其他进程。菜单只绑定本机地址;预览图直接读取两个项目已有的 CAD 渲染结果。 +启动器检查现有服务的工作区,复用匹配的 8795 / 8771 编辑器;未启动时使用 `.venv/bin/sca` / `.venv-hand/bin/sca` 启动相应 `hand.py`。遇到无关服务占用端口会报错,不终止其他进程。菜单只绑定本机地址;预览图直接读取两个项目已有的 CAD 渲染结果。 R0.1 仍保留于 `examples/lh20_hand`,原编辑器端口 8765 不受影响,首页保留对照链接。需要单独重开时运行 `.venv/bin/sca edit examples/lh20_hand/hand.py --port 8765`。修改模型注册表后只需重启菜单服务;已有编辑器不必重启。 `models.py` 管理模型路径与端口,`server.py` 提供只读状态与固定资源路由,`web/` 实现页面;无需新增依赖。日志和 PID 位于忽略提交的 `.runtime/`。本菜单不修改任一 CAD 模型或 SDK 源码。 + +用户已有的 `http://127.0.0.1:8780/hand_launcher/#/chatgpt` 入口同样指向 R0.4。R0.3 外形对照仍保留在 `examples/lh20_hand_r03` 与端口 8785。 diff --git a/examples/hand_gallery/models.py b/examples/hand_gallery/models.py index 2fd9f118..3874922f 100644 --- a/examples/hand_gallery/models.py +++ b/examples/hand_gallery/models.py @@ -8,11 +8,11 @@ HOST = "127.0.0.1" PORT = 8764 MODELS = { "codex": { - "name": "LH20 R0.3 外形 · Codex", - "workspace": ROOT / "examples/lh20_hand_r03", + "name": "LH20 R0.4 外形 · Codex", + "workspace": ROOT / "examples/lh20_hand_r04", "executable": ROOT / ".venv/bin/sca", - "port": 8785, - "preview": ROOT / "examples/lh20_hand_r03/out/hand_front.png", + "port": 8795, + "preview": ROOT / "examples/lh20_hand_r04/out/hand_front.png", }, "claude": { "name": "20 自由度灵巧手 · Claude", diff --git a/examples/hand_gallery/web/app.js b/examples/hand_gallery/web/app.js index 878163fd..554f771f 100644 --- a/examples/hand_gallery/web/app.js +++ b/examples/hand_gallery/web/app.js @@ -1,5 +1,5 @@ const models = { - codex: { name: "LH20 R0.3 外形 · Codex", url: "http://127.0.0.1:8785", state: "checking" }, + codex: { name: "LH20 R0.4 外形 · Codex", url: "http://127.0.0.1:8795", state: "checking" }, claude: { name: "20 自由度灵巧手 · Claude", url: "http://127.0.0.1:8771", state: "checking" }, }; const labels = { online: "编辑器已连接", loading: "编辑器启动中", offline: "编辑器未启动", mismatch: "端口对应其他项目", checking: "检查连接中", unavailable: "暂时无法检查连接" }; diff --git a/examples/hand_gallery/web/index.html b/examples/hand_gallery/web/index.html index 3cb7f924..ae183d34 100644 --- a/examples/hand_gallery/web/index.html +++ b/examples/hand_gallery/web/index.html @@ -12,7 +12,7 @@ 灵巧手工作台SIMPLECAD 本地工作区 @@ -28,13 +28,13 @@
01 / CODEX - Codex LH20 R0.3 外形重设计,实际 CAD 掌面 + Codex LH20 R0.4 外形重设计,实际 CAD 掌面 实际 CAD 模型

LH20 Codex 版

检查连接中
-

重做纤细指节、圆顶指尖、收腰掌壳和虎口过渡。内部驱动需按新外形重新适配。

-
20 轴布局无腱绳设计方向R0.3 · 外形设计
+

按实物照片细化圆弧指节、错层叉架、三点紧固端盖和黑色指腹,保留完整五指。内部驱动仍待适配。

+
20 轴布局无腱绳设计方向R0.4 · 外形设计
进入 Codex 模型
@@ -60,6 +60,6 @@
- + diff --git a/examples/hand_launcher/index.html b/examples/hand_launcher/index.html index a81ffc33..e0070d5f 100644 --- a/examples/hand_launcher/index.html +++ b/examples/hand_launcher/index.html @@ -64,11 +64,11 @@ const HANDS = [ start: ".venv-hand/bin/sca edit examples/dexterous_hand_20dof --port 8771 --no-browser", }, { - id: "chatgpt", name: "ChatGPT 做的手 · R0.3", tag: "lh20_hand_r03 (LH20 R0.3)", - url: "http://127.0.0.1:8785/", - thumb: "../lh20_hand_r03/out/hand_front.png", - text: "LH20 R0.3 外形重设计:纤细指节、圆顶指尖、关节开口、收腰掌壳与虎口过渡。146 个外形零件、20 轴布局;内部驱动尚待适配。", - start: ".venv/bin/sca edit examples/lh20_hand_r03/hand.py --host 127.0.0.1 --port 8785 --no-browser", + id: "chatgpt", name: "ChatGPT 做的手 · R0.4", tag: "lh20_hand_r04 (LH20 R0.4)", + url: "http://127.0.0.1:8795/", + thumb: "../lh20_hand_r04/out/hand_front.png", + text: "LH20 R0.4 实物对照优化:完整五指(含小拇指)、圆弧指节、错层叉架、三点紧固端盖与黑色指腹。245 个外形零件、20 轴布局;内部驱动尚待适配。", + start: ".venv/bin/sca edit examples/lh20_hand_r04/hand.py --host 127.0.0.1 --port 8795 --no-browser", }, ];