DECISION: Keep both hand menus on the verified photo-refined revision
DECISION: Replace the ChatGPT entry at the user's existing 8780 hash route and the Codex entry at the 8764 gallery with the verified R0.4 editor on port 8795. WHY: On 2026-11-17 the user explicitly requested replacing the model in the menu shown in their screenshot, then supplied physical photographs for further refinement. Following "DECISION: Refine the complete five-finger exterior from physical reference photos" and design-docs/lh20-r04-photo-refinement.md, both existing entry points must display the new result without asking the user to adopt yet another route. ALTERNATIVE CONSIDERED AND REJECTED: Updating only one launcher would recreate the version confusion that prompted the earlier request. WHAT CHANGES: Update the version labels, destinations, previews, descriptions and restart command, keeping the original route identifiers. Preserve the Claude card verbatim and retain older Codex workspaces for comparison. Checked: Original 8780 route visibly loaded R0.4 hand.py with 245 parts; the 8764 API reported the correct R0.4 editor online. Served launcher HTML matches source and the new preview returns HTTP 200. Both launcher scripts passed syntax checks; the Claude card matches the pre-edit copy. No CAD source is changed by this menu commit. Co-Authored-By: Codex <noreply@openai.com>
This commit is contained in:
@@ -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。
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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: "暂时无法检查连接" };
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<a class="brand" href="/" data-route="/" aria-label="灵巧手工作台首页"><span class="brand-mark" aria-hidden="true">S</span><span>灵巧手工作台<small>SIMPLECAD</small></span></a>
|
||||
<nav aria-label="选择模型">
|
||||
<a href="/" data-route="/" class="nav-link" aria-current="page">全部方案</a>
|
||||
<a href="/hands/codex" data-route="/hands/codex" class="nav-link">Codex R0.3</a>
|
||||
<a href="/hands/codex" data-route="/hands/codex" class="nav-link">Codex R0.4</a>
|
||||
<a href="/hands/claude" data-route="/hands/claude" class="nav-link">Claude 版</a>
|
||||
</nav>
|
||||
<span class="local"><i></i>本地工作区</span>
|
||||
@@ -28,13 +28,13 @@
|
||||
<article class="card codex">
|
||||
<a class="preview" href="/hands/codex" data-route="/hands/codex" aria-label="查看 Codex 版灵巧手">
|
||||
<span class="preview-label">01 / CODEX</span>
|
||||
<img src="/previews/codex.png" alt="Codex LH20 R0.3 外形重设计,实际 CAD 掌面">
|
||||
<img src="/previews/codex.png" alt="Codex LH20 R0.4 外形重设计,实际 CAD 掌面">
|
||||
<span class="preview-caption">实际 CAD 模型</span>
|
||||
</a>
|
||||
<div class="card-body">
|
||||
<div class="card-heading"><h2>LH20 <span>Codex 版</span></h2><span class="status checking" data-status="codex">检查连接中</span></div>
|
||||
<p>重做纤细指节、圆顶指尖、收腰掌壳和虎口过渡。内部驱动需按新外形重新适配。</p>
|
||||
<div class="tags"><span>20 轴布局</span><span>无腱绳设计方向</span><span>R0.3 · 外形设计</span></div>
|
||||
<p>按实物照片细化圆弧指节、错层叉架、三点紧固端盖和黑色指腹,保留完整五指。内部驱动仍待适配。</p>
|
||||
<div class="tags"><span>20 轴布局</span><span>无腱绳设计方向</span><span>R0.4 · 外形设计</span></div>
|
||||
<a class="enter" href="/hands/codex" data-route="/hands/codex">进入 Codex 模型 <span aria-hidden="true">↗</span></a>
|
||||
</div>
|
||||
</article>
|
||||
@@ -60,6 +60,6 @@
|
||||
<div id="connection-notice" role="status" hidden></div>
|
||||
<div id="editors"></div>
|
||||
</section>
|
||||
<noscript><p class="noscript">请启用 JavaScript,或直接打开 <a href="http://127.0.0.1:8785/">Codex R0.3 编辑器</a> / <a href="http://127.0.0.1:8771/">Claude 编辑器</a>。</p></noscript>
|
||||
<noscript><p class="noscript">请启用 JavaScript,或直接打开 <a href="http://127.0.0.1:8795/">Codex R0.4 编辑器</a> / <a href="http://127.0.0.1:8771/">Claude 编辑器</a>。</p></noscript>
|
||||
</body>
|
||||
</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",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user