Add ABB120 demo suite and docs
This commit is contained in:
@@ -2,20 +2,32 @@
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
:root {
|
||||
color-scheme: light;
|
||||
--ink: #1f2933;
|
||||
--muted: #5d6972;
|
||||
--line: #c7d0d6;
|
||||
--panel: #f8fafb;
|
||||
--panel-strong: #ffffff;
|
||||
--accent: #1f7a8c;
|
||||
--accent-dark: #14566a;
|
||||
--rail: #dde5e9;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: Arial, sans-serif;
|
||||
color: #1f2933;
|
||||
font-family: Arial, "Microsoft YaHei", sans-serif;
|
||||
color: var(--ink);
|
||||
background: #eef2f4;
|
||||
}
|
||||
|
||||
.workbench {
|
||||
min-height: 100vh;
|
||||
display: grid;
|
||||
grid-template-columns: 240px minmax(320px, 1fr) 280px;
|
||||
grid-template-rows: 48px minmax(280px, 1fr) 180px;
|
||||
grid-template-columns: 240px minmax(360px, 1fr) 300px;
|
||||
grid-template-rows: auto minmax(280px, 1fr) minmax(230px, 34vh);
|
||||
gap: 1px;
|
||||
background: #c7d0d6;
|
||||
background: var(--line);
|
||||
}
|
||||
|
||||
.command-bar,
|
||||
@@ -24,24 +36,74 @@ body {
|
||||
.pendant,
|
||||
.editor,
|
||||
.bottom-panel {
|
||||
background: #f8fafb;
|
||||
background: var(--panel);
|
||||
}
|
||||
|
||||
.command-bar {
|
||||
grid-column: 1 / 4;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
display: grid;
|
||||
grid-template-columns: auto minmax(220px, 360px) repeat(7, auto) minmax(260px, 1fr);
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 8px 12px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.station-title {
|
||||
display: grid;
|
||||
gap: 2px;
|
||||
min-width: 150px;
|
||||
}
|
||||
|
||||
.station-title span,
|
||||
.program-picker span,
|
||||
.frame-control span {
|
||||
color: var(--muted);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.program-picker,
|
||||
.frame-control {
|
||||
display: grid;
|
||||
gap: 3px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.program-picker select,
|
||||
.frame-control input {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
button,
|
||||
select {
|
||||
min-height: 32px;
|
||||
border: 1px solid #9aa8b2;
|
||||
background: var(--panel-strong);
|
||||
color: var(--ink);
|
||||
border-radius: 4px;
|
||||
font: inherit;
|
||||
}
|
||||
|
||||
button {
|
||||
min-height: 32px;
|
||||
border: 1px solid #9aa8b2;
|
||||
background: #ffffff;
|
||||
color: #1f2933;
|
||||
border-radius: 4px;
|
||||
padding: 0 10px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
button:hover,
|
||||
select:hover {
|
||||
border-color: var(--accent);
|
||||
}
|
||||
|
||||
button[aria-pressed="true"] {
|
||||
background: var(--accent-dark);
|
||||
color: #ffffff;
|
||||
border-color: var(--accent-dark);
|
||||
}
|
||||
|
||||
output {
|
||||
color: var(--muted);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.object-tree {
|
||||
@@ -58,7 +120,11 @@ button {
|
||||
.object-tree ul {
|
||||
margin: 0;
|
||||
padding-left: 18px;
|
||||
line-height: 1.8;
|
||||
line-height: 1.75;
|
||||
}
|
||||
|
||||
.object-tree li {
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.viewport {
|
||||
@@ -75,10 +141,20 @@ button {
|
||||
width: calc(100% - 48px);
|
||||
}
|
||||
|
||||
.viewport circle {
|
||||
fill: var(--accent-dark);
|
||||
}
|
||||
|
||||
[data-path-current] {
|
||||
fill: #b8542f;
|
||||
stroke: #ffffff;
|
||||
stroke-width: 3;
|
||||
}
|
||||
|
||||
.robot-arm {
|
||||
position: absolute;
|
||||
left: 12%;
|
||||
top: 20%;
|
||||
top: 18%;
|
||||
width: 62%;
|
||||
height: 48%;
|
||||
}
|
||||
@@ -114,7 +190,7 @@ button {
|
||||
|
||||
.pendant dl {
|
||||
display: grid;
|
||||
grid-template-columns: 84px 1fr;
|
||||
grid-template-columns: 78px minmax(0, 1fr);
|
||||
gap: 8px;
|
||||
margin: 0;
|
||||
}
|
||||
@@ -123,6 +199,11 @@ button {
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.pendant dd {
|
||||
margin: 0;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.editor {
|
||||
grid-column: 1 / 3;
|
||||
padding: 12px;
|
||||
@@ -138,43 +219,126 @@ button {
|
||||
.editor pre {
|
||||
margin: 0;
|
||||
padding: 12px;
|
||||
background: #1f2933;
|
||||
min-height: 150px;
|
||||
background: #202a33;
|
||||
color: #f8fafb;
|
||||
overflow: auto;
|
||||
line-height: 1.45;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.bottom-panel {
|
||||
grid-column: 1 / 4;
|
||||
padding: 12px;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(7, minmax(100px, 1fr));
|
||||
grid-template-columns: repeat(9, minmax(100px, 1fr));
|
||||
gap: 8px;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.bottom-panel div {
|
||||
border: 1px solid #c7d0d6;
|
||||
.bottom-panel > div {
|
||||
border: 1px solid var(--line);
|
||||
padding: 8px;
|
||||
background: #ffffff;
|
||||
background: var(--panel-strong);
|
||||
display: grid;
|
||||
gap: 6px;
|
||||
min-width: 0;
|
||||
align-content: start;
|
||||
}
|
||||
|
||||
.bottom-panel span {
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
@media (max-width: 840px) {
|
||||
.bottom-panel progress {
|
||||
width: 100%;
|
||||
height: 8px;
|
||||
}
|
||||
|
||||
.steps-panel,
|
||||
.trajectory-panel {
|
||||
grid-column: 1 / -1;
|
||||
min-height: 150px;
|
||||
}
|
||||
|
||||
.steps-table-wrap,
|
||||
.trajectory-table-wrap {
|
||||
overflow: auto;
|
||||
border: 1px solid var(--line);
|
||||
max-height: 260px;
|
||||
}
|
||||
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
th,
|
||||
td {
|
||||
border-bottom: 1px solid #e1e7eb;
|
||||
border-right: 1px solid #e1e7eb;
|
||||
padding: 6px 7px;
|
||||
text-align: left;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
th {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 1;
|
||||
background: var(--rail);
|
||||
}
|
||||
|
||||
tr[aria-current="true"] td {
|
||||
background: #e6f2f4;
|
||||
color: #0f4d5d;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
tr[data-step-state="active"] td {
|
||||
background: #fff2cc;
|
||||
color: #6f4b00;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
tr[data-step-state="complete"] td {
|
||||
background: #f4f7f8;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
@media (max-width: 1180px) {
|
||||
.command-bar {
|
||||
grid-template-columns: auto minmax(200px, 1fr) repeat(7, auto);
|
||||
}
|
||||
|
||||
.frame-control {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.workbench {
|
||||
grid-template-columns: 1fr;
|
||||
grid-template-rows: auto;
|
||||
}
|
||||
|
||||
.command-bar,
|
||||
.editor {
|
||||
.editor,
|
||||
.bottom-panel {
|
||||
grid-column: auto;
|
||||
}
|
||||
|
||||
.command-bar {
|
||||
grid-template-columns: 1fr 1fr;
|
||||
}
|
||||
|
||||
.station-title,
|
||||
.program-picker,
|
||||
.frame-control {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
|
||||
.bottom-panel {
|
||||
grid-template-columns: 1fr 1fr;
|
||||
}
|
||||
@@ -183,3 +347,33 @@ button {
|
||||
min-height: 300px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 560px) {
|
||||
.command-bar {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.command-bar button {
|
||||
padding: 0 6px;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.station-title,
|
||||
.program-picker,
|
||||
.frame-control {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
|
||||
.bottom-panel {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.robot-arm {
|
||||
left: 4%;
|
||||
width: 80%;
|
||||
transform: scale(0.85);
|
||||
transform-origin: left top;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,9 +7,16 @@
|
||||
<link rel="stylesheet" href="./virtual-controller.css">
|
||||
</head>
|
||||
<body>
|
||||
<main class="workbench" data-robot="abb_irb120_3_58">
|
||||
<main class="workbench" data-robot="abb_irb120_3_58" data-suite="working2-abb120-spec" data-job="W2-JOB-latest">
|
||||
<header class="command-bar">
|
||||
<strong>ABB120 Station</strong>
|
||||
<div class="station-title">
|
||||
<strong>ABB120 Station</strong>
|
||||
<span data-field="job">W2-JOB-latest</span>
|
||||
</div>
|
||||
<label class="program-picker">
|
||||
<span>Program</span>
|
||||
<select data-program-select aria-label="Program"></select>
|
||||
</label>
|
||||
<button type="button" data-command="load">Load</button>
|
||||
<button type="button" data-command="run">Run</button>
|
||||
<button type="button" data-command="pause">Pause</button>
|
||||
@@ -17,21 +24,28 @@
|
||||
<button type="button" data-command="stop">Stop</button>
|
||||
<button type="button" data-command="reset">Reset</button>
|
||||
<button type="button" data-command="export">Export</button>
|
||||
<label class="frame-control">
|
||||
<span>Sample</span>
|
||||
<input type="range" min="0" max="0" value="0" data-frame-slider aria-label="Execution sample">
|
||||
<output data-field="frame">0 / 0</output>
|
||||
</label>
|
||||
</header>
|
||||
|
||||
<aside class="object-tree">
|
||||
<h2>Station</h2>
|
||||
<ul>
|
||||
<ul data-object-tree>
|
||||
<li>Robot: abb_irb120_3_58</li>
|
||||
<li>Tool: tool0</li>
|
||||
<li>Frame: world</li>
|
||||
<li>Path: pick_place</li>
|
||||
<li>Operation: pick_op</li>
|
||||
<li>Program: main</li>
|
||||
<li>Reports</li>
|
||||
<li>Program: W2_60_IOWaitPulse</li>
|
||||
<li>Suite: working2-abb120-spec</li>
|
||||
<li>Job: W2-JOB-latest</li>
|
||||
</ul>
|
||||
</aside>
|
||||
|
||||
<section class="viewport" aria-label="station viewport">
|
||||
<div class="robot-arm">
|
||||
<div class="robot-arm" aria-hidden="true">
|
||||
<span class="joint j1"></span>
|
||||
<span class="link l1"></span>
|
||||
<span class="joint j2"></span>
|
||||
@@ -41,23 +55,27 @@
|
||||
<span class="joint j4"></span>
|
||||
</div>
|
||||
<svg viewBox="0 0 480 240" role="img" aria-label="path trace">
|
||||
<path d="M70 170 C150 80 260 80 410 150" fill="none" stroke="#1f7a8c" stroke-width="4"/>
|
||||
<circle cx="70" cy="170" r="6"/>
|
||||
<circle cx="250" cy="90" r="6"/>
|
||||
<circle cx="410" cy="150" r="6"/>
|
||||
<path data-path-trace d="M70 170 C150 80 260 80 410 150" fill="none" stroke="#1f7a8c" stroke-width="4"/>
|
||||
<circle data-path-start cx="70" cy="170" r="6"/>
|
||||
<circle data-path-current cx="70" cy="170" r="8"/>
|
||||
<circle data-path-end cx="410" cy="150" r="6"/>
|
||||
</svg>
|
||||
</section>
|
||||
|
||||
<aside class="pendant">
|
||||
<h2>Controller</h2>
|
||||
<dl>
|
||||
<dt>State</dt><dd data-field="state">ready</dd>
|
||||
<dt>Program</dt><dd data-field="program">W2_60_IOWaitPulse</dd>
|
||||
<dt>Mode</dt><dd data-field="mode">auto</dd>
|
||||
<dt>Motors</dt><dd data-field="motors">on</dd>
|
||||
<dt>PC</dt><dd data-field="pc">main:0</dd>
|
||||
<dt>Time</dt><dd data-field="runtime">0 / 0 s @ 50 ms</dd>
|
||||
<dt>Joints</dt><dd data-field="joints">[0, 0, 0, 0, 0, 0]</dd>
|
||||
<dt>TCP</dt><dd data-field="tcp">[0, 0, 580, 0, 0, 0]</dd>
|
||||
<dt>TCP</dt><dd data-field="tcp">pos [0.374, 0, 0.63] q [0, 0.707107, 0, 0.707107]</dd>
|
||||
</dl>
|
||||
</aside>
|
||||
|
||||
<section class="editor">
|
||||
<nav>
|
||||
<button type="button" data-tab="grl" aria-pressed="true">GRL</button>
|
||||
@@ -69,6 +87,7 @@
|
||||
run_path pick_place
|
||||
end</pre>
|
||||
</section>
|
||||
|
||||
<section class="bottom-panel">
|
||||
<div><strong>Log</strong><span data-field="log">ready</span></div>
|
||||
<div><strong>Diagnostics</strong><span data-field="diagnostics">ready</span></div>
|
||||
@@ -76,7 +95,54 @@ end</pre>
|
||||
<div><strong>Wait</strong><span data-field="wait">none</span></div>
|
||||
<div><strong>Motion Queue</strong><span data-field="queue">empty</span></div>
|
||||
<div><strong>Trace</strong><span data-field="trace">0 events</span></div>
|
||||
<div><strong>Reports</strong><span data-field="reports">A120-REPORT</span></div>
|
||||
<div><strong>Reports</strong><span data-field="reports">W2-REPORT</span></div>
|
||||
<div><strong>Parser</strong><span data-field="parser">idle</span><progress data-parser-progress max="1" value="0" aria-label="Parser progress"></progress></div>
|
||||
<div><strong>Storage</strong><span data-field="storage">checking browser storage</span></div>
|
||||
<div class="steps-panel">
|
||||
<strong>Program Steps</strong>
|
||||
<span data-field="step-status">step 0</span>
|
||||
<div class="steps-table-wrap">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>Time</th>
|
||||
<th>Line</th>
|
||||
<th>Step</th>
|
||||
<th>Source</th>
|
||||
<th>Motion/Target</th>
|
||||
<th>Samples</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody data-step-table></tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="trajectory-panel">
|
||||
<strong>Trajectory Frames</strong>
|
||||
<span data-field="frame-time">t=0 s</span>
|
||||
<div class="trajectory-table-wrap">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>t</th>
|
||||
<th>Motion</th>
|
||||
<th>Target</th>
|
||||
<th>TCP XYZ</th>
|
||||
<th>TCP Q</th>
|
||||
<th>J1</th>
|
||||
<th>J2</th>
|
||||
<th>J3</th>
|
||||
<th>J4</th>
|
||||
<th>J5</th>
|
||||
<th>J6</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody data-frame-table></tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</main>
|
||||
<script src="./virtual-controller.js"></script>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user