Initial commit: step2urdf tool with handtuned JSON import.

Includes FastAPI backend, vendored step2urdf frontend, and A7 handtuned arm JSON for URDF generation.
This commit is contained in:
sunxianghui
2026-08-26 15:32:47 +08:00
commit 93773f3887
128 changed files with 20119 additions and 0 deletions
+61
View File
@@ -0,0 +1,61 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Legacy UI — step2urdf-tool</title>
<link rel="stylesheet" href="/legacy/style.css" />
</head>
<body>
<div class="page">
<header class="hero">
<div>
<p class="eyebrow">LEGACY</p>
<h1>旧版静态 UI(已降级)</h1>
<p class="sub">
主界面请用 step2urdf 前端:开发时打开
<a href="http://127.0.0.1:5678">http://127.0.0.1:5678</a>
(Vite + 智谱建议关节 + 导出 URDF)。本页仅保留调试。
</p>
</div>
<div id="health" class="pill">checking…</div>
</header>
<section class="panel">
<h2>1. 上传 STEP</h2>
<div class="row">
<input id="file" type="file" accept=".step,.stp,.STEP,.STP" />
<button id="btnParse" class="primary">解析</button>
</div>
<pre id="parseOut" class="code muted">等待上传…</pre>
</section>
<section class="panel">
<h2>2. 智谱关节提案</h2>
<div class="grid2">
<label>Profile
<select id="profile">
<option value="a7" selected>a7(先试机械臂)</option>
<option value="generic">generic(后续其他 STEP)</option>
</select>
</label>
<label>机器人名
<input id="robotName" value="A7" />
</label>
</div>
<label>额外提示
<textarea id="hint" rows="2" placeholder="可选:关节数量、固定件说明…"></textarea>
</label>
<button id="btnPropose" class="primary">调用智谱</button>
<pre id="draftOut" class="code muted">等待提案…</pre>
</section>
<section class="panel">
<h2>3. 导出 URDF(服务端草稿)</h2>
<button id="btnExport" class="primary">导出</button>
<pre id="exportOut" class="code muted">等待导出…</pre>
</section>
</div>
<script src="/legacy/app.js"></script>
</body>
</html>