Files
step2urdf/app/static/index.html
T
sunxianghui 93773f3887 Initial commit: step2urdf tool with handtuned JSON import.
Includes FastAPI backend, vendored step2urdf frontend, and A7 handtuned arm JSON for URDF generation.
2026-08-26 15:32:47 +08:00

62 lines
2.0 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!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>