Spaces:
Running
Running
Publish browser-local SAC inference and DLS comparison
Browse files- LICENSE +21 -0
- README.md +20 -5
- THIRD_PARTY_NOTICES.md +3 -0
- UR-DESCRIPTION-LICENSE +25 -0
- actor.bin +3 -0
- app.js +22 -0
- cases.json +0 -0
- core.js +18 -0
- index.html +1 -19
- kinematics.json +345 -0
- package.json +1 -0
- runtime-fixtures.json +1 -0
- runtime-validation.json +19 -0
- style.css +1 -28
- summary.json +170 -0
- test.mjs +3 -0
LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2026 Dev Kumar
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 6 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 7 |
+
in the Software without restriction, including without limitation the rights
|
| 8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 9 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 10 |
+
furnished to do so, subject to the following conditions:
|
| 11 |
+
|
| 12 |
+
The above copyright notice and this permission notice shall be included in all
|
| 13 |
+
copies or substantial portions of the Software.
|
| 14 |
+
|
| 15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 21 |
+
SOFTWARE.
|
README.md
CHANGED
|
@@ -1,10 +1,25 @@
|
|
| 1 |
---
|
| 2 |
title: UR7e Policy Lab
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: static
|
| 7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
title: UR7e Policy Lab
|
| 3 |
+
emoji: 🦾
|
| 4 |
+
colorFrom: green
|
| 5 |
+
colorTo: gray
|
| 6 |
sdk: static
|
| 7 |
+
app_file: index.html
|
| 8 |
+
license: mit
|
| 9 |
+
short_description: Run a frozen SAC robot policy locally and compare DLS.
|
| 10 |
+
tags:
|
| 11 |
+
- robotics
|
| 12 |
+
- reinforcement-learning
|
| 13 |
+
- control
|
| 14 |
+
- simulation
|
| 15 |
---
|
| 16 |
|
| 17 |
+
# UR7e Policy Lab
|
| 18 |
+
|
| 19 |
+
Run the real exported deterministic SAC actor inside your browser, or compare a fixed damped-least-squares controller. Orbit and zoom the 3D kinematic skeleton, choose among 100 prespecified target trajectories, and perturb sensor observations. No inference API, paid GPU or third-party script is used.
|
| 20 |
+
|
| 21 |
+
The reference evaluation is the separate 600-episode Python CPU experiment linked in the app. Browser preview uses an independently implemented JavaScript runtime and seeded noise generator; it is not the source of the published Python metrics. The runtime is checked against exported observations, actions and forward kinematics.
|
| 22 |
+
|
| 23 |
+
[Download model and reproduce](https://huggingface.co/devkumarhf/ur7e-sac-line-following) · [Engineering source](https://github.com/devkumar-projects/UR7e-Reinforcement-Learning-Suite) · [Experimental analysis](https://www.kaggle.com/code/devkumarkaggle/ur7e-sac-vs-dls-reproducible-policy-benchmark)
|
| 24 |
+
|
| 25 |
+
Default kinematics only: no dynamics, collision, contact-force or hardware validation. Robot is displayed as a kinematic skeleton; no proprietary meshes are included. Original project and weights: Dev Kumar. Upstream robot description terms are preserved in THIRD_PARTY_NOTICES.md and UR-DESCRIPTION-LICENSE.
|
THIRD_PARTY_NOTICES.md
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
## Kinematics attribution
|
| 2 |
+
|
| 3 |
+
The original generated URDF identifies Universal Robots `ur_description`, with a migration-to-YAML credit to Ludovic Delval. The generated comments are retained verbatim. Upstream description project: https://github.com/UniversalRobots/Universal_Robots_ROS2_Description (Humble branch); redistribution terms are in UR-DESCRIPTION-LICENSE. No meshes are included. Default geometry is not a calibration of an individual physical robot. The project and weights retain their original MIT licence from Dev Kumar's source repository. No endorsement by Universal Robots is implied.
|
UR-DESCRIPTION-LICENSE
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Redistribution and use in source and binary forms, with or without
|
| 2 |
+
modification, are permitted provided that the following conditions are met:
|
| 3 |
+
|
| 4 |
+
* Redistributions of source code must retain the above copyright
|
| 5 |
+
notice, this list of conditions and the following disclaimer.
|
| 6 |
+
|
| 7 |
+
* Redistributions in binary form must reproduce the above copyright
|
| 8 |
+
notice, this list of conditions and the following disclaimer in the
|
| 9 |
+
documentation and/or other materials provided with the distribution.
|
| 10 |
+
|
| 11 |
+
* Neither the name of the copyright holder nor the names of its
|
| 12 |
+
contributors may be used to endorse or promote products derived from
|
| 13 |
+
this software without specific prior written permission.
|
| 14 |
+
|
| 15 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
| 16 |
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
| 17 |
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
| 18 |
+
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
| 19 |
+
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
| 20 |
+
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
| 21 |
+
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
| 22 |
+
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
| 23 |
+
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
| 24 |
+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
| 25 |
+
POSSIBILITY OF SUCH DAMAGE.
|
actor.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c7902ee198f5b750a4caa8c7e5a6c9010b5259bdda6d778e8defe1a1cfea14c3
|
| 3 |
+
size 1124376
|
app.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import {Actor,Environment,chainPoints,dls} from './core.js';
|
| 2 |
+
const $=s=>document.querySelector(s),canvas=$('#scene'),ctx=canvas.getContext('2d');let actor,config,cases,env,running=false,loadReady=false,yaw=.6,pitch=.34,zoom=1.1,drag=null,lastLatency=0,noiseState=1;
|
| 3 |
+
const random=()=>{noiseState=(Math.imul(1664525,noiseState)+1013904223)>>>0;return(noiseState+.5)/4294967296;};
|
| 4 |
+
const normal=()=>Math.sqrt(-2*Math.log(random()))*Math.cos(2*Math.PI*random());
|
| 5 |
+
function selectedCase(){const subset=cases.filter(c=>c.shape===$('#shape').value);return subset[Number($('#example').value)];}
|
| 6 |
+
function reset(){if(!loadReady)return;running=false;const c=selectedCase();env=new Environment(config,c.target);noiseState=c.seed>>>0;$('#example-label').textContent=`${Number($('#example').value)+1} / 20`;$('#run').textContent='Run';$('#status').textContent=`Seed ${c.seed} · Ready`;lastLatency=0;update();draw();}
|
| 7 |
+
function update(){if(!env)return;$('#progress').textContent=`${Math.round(env.cursor/59*100)}%`;$('#rms').textContent=env.rms===null?'—':`${env.rms.toFixed(2)} mm`;$('#steps').textContent=`${env.steps} / 800`;$('#latency').textContent=lastLatency?`${lastLatency.toFixed(2)} ms`:'—';}
|
| 8 |
+
function step(){const o=env.observation(),noise=Number($('#noise').value);if(noise){for(let i=0;i<6;i++)o[i]+=normal()*noise/config.limits[i][1];for(let i=6;i<9;i++)o[i]+=normal()*noise;}const st=performance.now();const action=$('#controller').value==='sac'?actor.predict(o):dls(config,o);lastLatency=performance.now()-st;env.step(action);}
|
| 9 |
+
function size(){const rect=canvas.getBoundingClientRect(),dpr=Math.min(2,devicePixelRatio||1);if(canvas.width!==Math.round(rect.width*dpr)||canvas.height!==Math.round(rect.height*dpr)){canvas.width=Math.round(rect.width*dpr);canvas.height=Math.round(rect.height*dpr);}ctx.setTransform(dpr,0,0,dpr,0,0);return[rect.width,rect.height];}
|
| 10 |
+
function draw(){const[w,h]=size();ctx.clearRect(0,0,w,h);if(!env)return;const scale=Math.min(w*.65,h*.63)*zoom;
|
| 11 |
+
const project=p=>{let x=p[0]-.17,y=p[1],z=p[2]-.29;const rx=Math.cos(yaw)*x-Math.sin(yaw)*y,depth=Math.sin(yaw)*x+Math.cos(yaw)*y;const ry=Math.cos(pitch)*z-Math.sin(pitch)*depth,d=Math.cos(pitch)*depth+Math.sin(pitch)*z,k=2.8/(2.8-d);return[w*.48+rx*scale*k,h*.53-ry*scale*k];};
|
| 12 |
+
const line=(points,color,width=1)=>{if(!points.length)return;ctx.beginPath();points.forEach((p,i)=>{const[x,y]=project(p);i?ctx.lineTo(x,y):ctx.moveTo(x,y);});ctx.strokeStyle=color;ctx.lineWidth=width;ctx.lineCap='round';ctx.lineJoin='round';ctx.stroke();};
|
| 13 |
+
for(let i=-4;i<=4;i++){const t=i*.2;line([[-.8,t,0],[.8,t,0]],'#24332c',.6);line([[t,-.8,0],[t,.8,0]],'#24332c',.6);}
|
| 14 |
+
line([[.45,-.39,.21],[.45,.39,.21],[.45,.39,.79],[.45,-.39,.79],[.45,-.39,.21]],'#3a5144');line(env.target,'#a5cf93',2);line(env.path,'#83b7d1',1.8);
|
| 15 |
+
const points=chainPoints(config,env.q);line(points,'#17231d',15);line(points,'#aabbb0',8);for(const p of points){const[x,y]=project(p);ctx.beginPath();ctx.arc(x,y,4,0,Math.PI*2);ctx.fillStyle='#263c31';ctx.fill();ctx.strokeStyle='#c0d3c5';ctx.lineWidth=1;ctx.stroke();}
|
| 16 |
+
const tcp=project(points.at(-1));ctx.beginPath();ctx.arc(...tcp,5,0,Math.PI*2);ctx.fillStyle='#8bcce9';ctx.fill();const target=project(env.target[env.cursor]);ctx.beginPath();ctx.arc(...target,4,0,Math.PI*2);ctx.strokeStyle='#d1edb9';ctx.lineWidth=1.5;ctx.stroke();
|
| 17 |
+
ctx.font='10px ui-monospace,monospace';for(const[end,label,color]of[[[.15,0,0],'X','#b98a80'],[[0,.15,0],'Y','#8aaa8a'],[[0,0,.15],'Z','#89adcc']]){line([[0,0,0],end],color,2);const[x,y]=project(end);ctx.fillStyle=color;ctx.fillText(label,x+5,y-4);}ctx.fillStyle='#7d9586';ctx.fillText('POSITION-ONLY DEFAULT KINEMATICS',20,h-47);
|
| 18 |
+
}
|
| 19 |
+
canvas.addEventListener('pointerdown',e=>{drag={x:e.clientX,y:e.clientY};canvas.setPointerCapture(e.pointerId);});canvas.addEventListener('pointermove',e=>{if(!drag)return;yaw+=(e.clientX-drag.x)*.009;pitch=Math.max(-1.1,Math.min(1.2,pitch+(e.clientY-drag.y)*.007));drag={x:e.clientX,y:e.clientY};draw();});canvas.addEventListener('pointerup',()=>drag=null);canvas.addEventListener('pointercancel',()=>drag=null);canvas.addEventListener('wheel',e=>{e.preventDefault();zoom=Math.max(.5,Math.min(2.4,zoom*Math.exp(-e.deltaY*.001)));draw();},{passive:false});canvas.addEventListener('keydown',e=>{if(!['ArrowLeft','ArrowRight','ArrowUp','ArrowDown','+','-'].includes(e.key))return;e.preventDefault();if(e.key==='ArrowLeft')yaw-=.1;if(e.key==='ArrowRight')yaw+=.1;if(e.key==='ArrowUp')pitch-=.08;if(e.key==='ArrowDown')pitch+=.08;if(e.key==='+')zoom=Math.min(2.4,zoom*1.1);if(e.key==='-')zoom=Math.max(.5,zoom/1.1);draw();});
|
| 20 |
+
$('#run').addEventListener('click',()=>{if(!loadReady)return;if(env.done)reset();running=!running;$('#run').textContent=running?'Pause':'Run';if(!running)$('#status').textContent='Paused';});$('#reset').addEventListener('click',reset);for(const id of ['controller','shape','example','noise'])$('#'+id).addEventListener('input',reset);new ResizeObserver(draw).observe(canvas);
|
| 21 |
+
function frame(){if(running&&env&&!document.hidden){for(let i=0;i<4&&!env.done;i++)step();$('#status').textContent=env.done?env.reason:env.phase?'Tracking the target':'Approaching the first point';if(env.done){running=false;$('#run').textContent='Run again';}update();draw();}requestAnimationFrame(frame);}requestAnimationFrame(frame);
|
| 22 |
+
try{const results=await Promise.all([fetch('actor.bin').then(r=>{if(!r.ok)throw Error('Actor download failed');return r.arrayBuffer();}),fetch('kinematics.json').then(r=>r.json()),fetch('cases.json').then(r=>r.json())]);actor=new Actor(results[0]);config=results[1];cases=results[2];loadReady=true;$('#run').disabled=false;reset();window.policyLab={actor,config,cases,get environment(){return env;},step,reset};}catch(e){$('#status').textContent='Could not load local assets. Please reload.';console.error(e);}
|
cases.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
core.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
const f=Math.fround;
|
| 2 |
+
export function multiply(a,b){const r=Array(16).fill(0);for(let i=0;i<4;i++)for(let j=0;j<4;j++)for(let k=0;k<4;k++)r[i*4+j]+=a[i*4+k]*b[k*4+j];return r;}
|
| 3 |
+
const identity=()=>[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];
|
| 4 |
+
export function chainPoints(config,q){let t=identity();const points=[];for(const link of config.links){t=multiply(t,link.base_matrix.flat());if(link.joint!==null){const [x,y,z]=link.axis,a=q[link.joint],c=Math.cos(a),s=Math.sin(a),v=1-c;t=multiply(t,[x*x*v+c,x*y*v-z*s,x*z*v+y*s,0,y*x*v+z*s,y*y*v+c,y*z*v-x*s,0,z*x*v-y*s,z*y*v+x*s,z*z*v+c,0,0,0,0,1]);}points.push([f(t[3]),f(t[7]),f(t[11])]);}return points;}
|
| 5 |
+
export const fk=(config,q)=>chainPoints(config,q).at(-1);
|
| 6 |
+
export const distance=(a,b)=>Math.hypot(...a.map((x,i)=>x-b[i]));
|
| 7 |
+
export class Actor{
|
| 8 |
+
constructor(buffer){const values=new Float32Array(buffer);if(values.length!==512*29+512+512*512+512+6*512+6)throw Error('Invalid actor size');let n=0;this.parts=[512*29,512,512*512,512,6*512,6].map(size=>{const a=values.slice(n,n+size);n+=size;return a;});}
|
| 9 |
+
predict(observation){if(observation.length!==29||!Array.from(observation).every(Number.isFinite))throw Error('Expected finite 29D observation');const [w1,b1,w2,b2,wm,bm]=this.parts;const layer=(x,w,b,rows,cols,relu)=>{const y=new Float32Array(rows);for(let i=0;i<rows;i++){let s=b[i];for(let j=0;j<cols;j++)s+=w[i*cols+j]*x[j];y[i]=relu?Math.max(0,s):Math.tanh(s);}return y;};return layer(layer(layer(observation,w1,b1,512,29,true),w2,b2,512,512,true),wm,bm,6,512,false);}
|
| 10 |
+
}
|
| 11 |
+
function solve3(a,b){a=a.map((r,i)=>[...r,b[i]]);for(let j=0;j<3;j++){let pivot=j;for(let i=j+1;i<3;i++)if(Math.abs(a[i][j])>Math.abs(a[pivot][j]))pivot=i;[a[j],a[pivot]]=[a[pivot],a[j]];let d=a[j][j];if(Math.abs(d)<1e-12)throw Error('Singular DLS matrix');for(let k=j;k<4;k++)a[j][k]/=d;for(let i=0;i<3;i++)if(i!==j){const z=a[i][j];for(let k=j;k<4;k++)a[i][k]-=z*a[j][k];}}return a.map(r=>r[3]);}
|
| 12 |
+
export function dls(config,o){const q=Array.from(o.slice(0,6),(v,i)=>v*config.limits[i][1]);const jac=[[],[],[]];for(let j=0;j<6;j++){const a=q.slice(),b=q.slice();a[j]+=1e-4;b[j]-=1e-4;const fa=fk(config,a),fb=fk(config,b);for(let k=0;k<3;k++)jac[k][j]=(fa[k]-fb[k])/2e-4;}const mat=Array.from({length:3},(_,i)=>Array.from({length:3},(_,j)=>jac[i].reduce((s,v,k)=>s+v*jac[j][k],0)+(i===j?.02**2:0)));const x=solve3(mat,Array.from(o.slice(11,14),(v,i)=>v-o[6+i]));return Float32Array.from({length:6},(_,i)=>Math.max(-1,Math.min(1,.8*jac.reduce((s,r,k)=>s+r[i]*x[k],0)/.05)));}
|
| 13 |
+
export class Environment{
|
| 14 |
+
constructor(config,target){this.config=config;this.target=target;this.q=Float32Array.from(config.home);this.cursor=0;this.phase=0;this.steps=0;this.stagnation=0;this.errors=[];this.path=[];this.done=false;this.success=false;this.reason='Ready';}
|
| 15 |
+
observation(){const p=fk(this.config,this.q),look=[];for(let i=0;i<5;i++)look.push(...this.target[Math.min(this.cursor+i,59)]);return Float32Array.from([...Array.from(this.q,(v,i)=>v/this.config.limits[i][1]),...p,this.cursor/60,this.phase,...this.target[this.cursor],...look]);}
|
| 16 |
+
step(action){if(this.done)return;this.steps++;for(let i=0;i<6;i++)this.q[i]=f(Math.max(this.config.limits[i][0],Math.min(this.config.limits[i][1],f(this.q[i]+f(Math.max(-1,Math.min(1,action[i]))*.05)))));const p=fk(this.config,this.q);this.path.push(p);const dist=distance(p,this.target[this.cursor]);let error=Infinity;for(let i=Math.max(0,this.cursor-3);i<Math.min(60,this.cursor+12);i++)error=Math.min(error,distance(p,this.target[i]));if(this.phase===0){if(distance(p,this.target[0])<.02){this.phase=1;this.errors=[];}}else{this.errors.push(error*1000);if(dist<.025&&this.cursor<59){this.cursor++;this.stagnation=0;}else this.stagnation++;if(this.cursor===59&&dist<.025){this.done=true;this.reason='Endpoint tolerance not met';}if(error>.06){this.done=true;this.reason='Off path';}if(this.stagnation>150){this.done=true;this.reason='Stagnation';}}if(this.steps>=800){this.done=true;this.reason='Step limit';}if(this.done&&this.phase===1&&this.cursor===59&&distance(p,this.target[59])<.025&&this.errors.every(e=>e<=60)){this.success=true;this.reason='Strict completion';}}
|
| 17 |
+
get rms(){return this.errors.length?Math.sqrt(this.errors.reduce((s,v)=>s+v*v,0)/this.errors.length):null;}
|
| 18 |
+
}
|
index.html
CHANGED
|
@@ -1,19 +1 @@
|
|
| 1 |
-
<!doctype html>
|
| 2 |
-
<html>
|
| 3 |
-
<head>
|
| 4 |
-
<meta charset="utf-8" />
|
| 5 |
-
<meta name="viewport" content="width=device-width" />
|
| 6 |
-
<title>My static Space</title>
|
| 7 |
-
<link rel="stylesheet" href="style.css" />
|
| 8 |
-
</head>
|
| 9 |
-
<body>
|
| 10 |
-
<div class="card">
|
| 11 |
-
<h1>Welcome to your static Space!</h1>
|
| 12 |
-
<p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
|
| 13 |
-
<p>
|
| 14 |
-
Also don't forget to check the
|
| 15 |
-
<a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
|
| 16 |
-
</p>
|
| 17 |
-
</div>
|
| 18 |
-
</body>
|
| 19 |
-
</html>
|
|
|
|
| 1 |
+
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="description" content="Run Dev Kumar's frozen UR7e SAC policy locally, compare a classical DLS controller and inspect a reproducible CPU benchmark."><title>UR7e Policy Lab · Dev Kumar</title><link rel="stylesheet" href="style.css"></head><body><main><header><a href="https://huggingface.co/devkumarhf" target="_blank" rel="noopener">DEV KUMAR / APPLIED ROBOTICS</a><span class="badge">LOCAL INFERENCE · NO API</span></header><section class="intro"><p class="eyebrow">MODEL → EXPERIMENT → EVIDENCE</p><h1>UR7e Policy Lab<span>.</span></h1><p>A frozen robot policy. A classical controller. The same trajectory.</p><div class="links"><a href="https://huggingface.co/devkumarhf/ur7e-sac-line-following" target="_blank" rel="noopener">Model & weights ↗</a><a href="https://www.kaggle.com/code/devkumarkaggle/ur7e-sac-vs-dls-reproducible-policy-benchmark" target="_blank" rel="noopener">Experimental notebook ↗</a><a href="https://github.com/devkumar-projects/UR7e-Reinforcement-Learning-Suite" target="_blank" rel="noopener">Engineering source ↗</a></div></section><div class="lab"><section class="viewport"><div class="viewport-title"><span>6 AXES · KINEMATIC SIMULATION</span><span>Drag to orbit · Scroll to zoom</span></div><canvas id="scene" aria-label="Interactive 3D robot kinematic skeleton and target trajectory" tabindex="0"></canvas><div class="legend"><span class="target">Target</span><span class="actual">End-effector path</span><span>Live deterministic inference</span></div></section><aside><h2>Run the policy</h2><label>Controller<select id="controller"><option value="sac">Frozen SAC · 512 × 512</option><option value="dls">Damped least squares · fixed baseline</option></select></label><label>Trajectory family<select id="shape"><option value="segment">Straight segment</option><option value="bezier">Quadratic Bézier</option><option value="bezier3">Cubic Bézier</option><option value="sinus">Sinusoid</option><option value="arc">Circular arc</option></select></label><label>Prespecified example <span id="example-label">1 / 20</span><input id="example" type="range" min="0" max="19" value="0"></label><label>Sensor noise<select id="noise"><option value="0">None</option><option value="0.002">2 mm position / 2 mrad joints</option><option value="0.005">5 mm position / 5 mrad joints</option></select></label><div class="actions"><button id="run" disabled>Loading actor…</button><button id="reset">Reset</button></div><p id="status" role="status" aria-live="polite">Loading local model assets.</p><dl><div><dt>Trajectory progress</dt><dd id="progress">0%</dd></div><div><dt>Tracking RMS</dt><dd id="rms">—</dd></div><div><dt>Steps</dt><dd id="steps">0 / 800</dd></div><div><dt>Latest action time</dt><dd id="latency">—</dd></div></dl><p class="note">Preview runs entirely in JavaScript. Noise samples and numerical rounding differ from the Python reference benchmark.</p></aside></div><section class="evidence"><div><p class="eyebrow">REFERENCE EXPERIMENT</p><h2>600 CPU episodes.<br>Both sides of the result.</h2><p>100 paired trajectories × 2 controllers × 3 noise levels. No retraining. One frozen checkpoint.</p></div><div class="table-wrap"><table><caption>Measured Python evaluation · no added noise</caption><thead><tr><th>Controller</th><th>Strict completion</th><th>Tracking RMS*</th></tr></thead><tbody><tr><td>Frozen SAC</td><td>93 / 100</td><td>5.21 mm</td></tr><tr><td>Fixed DLS</td><td>90 / 100</td><td>2.38 mm</td></tr></tbody></table><p class="note">*Mean per-episode RMS over acquired trajectories, including failures. DLS tracks more accurately in this experiment. The completion difference does not establish statistical superiority. <a href="summary.json">All conditions and metadata ↗</a></p></div></section><footer><p>Position-only default kinematics. No dynamics, contact force, collision model or physical-robot validation. Original training seed history is unavailable.</p><p>Original project and policy: Dev Kumar. <a href="THIRD_PARTY_NOTICES.md">Robot-description attribution</a> · <a href="https://dev-kumar.com/" target="_blank" rel="noopener">Portfolio</a></p></footer></main><script type="module" src="app.js"></script></body></html>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
kinematics.json
ADDED
|
@@ -0,0 +1,345 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"links": [
|
| 3 |
+
{
|
| 4 |
+
"name": "Base link",
|
| 5 |
+
"base_matrix": [
|
| 6 |
+
[
|
| 7 |
+
1.0,
|
| 8 |
+
0.0,
|
| 9 |
+
0.0,
|
| 10 |
+
0.0
|
| 11 |
+
],
|
| 12 |
+
[
|
| 13 |
+
0.0,
|
| 14 |
+
1.0,
|
| 15 |
+
0.0,
|
| 16 |
+
0.0
|
| 17 |
+
],
|
| 18 |
+
[
|
| 19 |
+
0.0,
|
| 20 |
+
0.0,
|
| 21 |
+
1.0,
|
| 22 |
+
0.0
|
| 23 |
+
],
|
| 24 |
+
[
|
| 25 |
+
0.0,
|
| 26 |
+
0.0,
|
| 27 |
+
0.0,
|
| 28 |
+
1.0
|
| 29 |
+
]
|
| 30 |
+
],
|
| 31 |
+
"axis": null,
|
| 32 |
+
"joint": null
|
| 33 |
+
},
|
| 34 |
+
{
|
| 35 |
+
"name": "base_link-base_link_inertia",
|
| 36 |
+
"base_matrix": [
|
| 37 |
+
[
|
| 38 |
+
-1.0,
|
| 39 |
+
-1.22464679914735e-16,
|
| 40 |
+
0.0,
|
| 41 |
+
0.0
|
| 42 |
+
],
|
| 43 |
+
[
|
| 44 |
+
1.22464679914735e-16,
|
| 45 |
+
-1.0,
|
| 46 |
+
0.0,
|
| 47 |
+
0.0
|
| 48 |
+
],
|
| 49 |
+
[
|
| 50 |
+
0.0,
|
| 51 |
+
0.0,
|
| 52 |
+
1.0,
|
| 53 |
+
0.0
|
| 54 |
+
],
|
| 55 |
+
[
|
| 56 |
+
0.0,
|
| 57 |
+
0.0,
|
| 58 |
+
0.0,
|
| 59 |
+
1.0
|
| 60 |
+
]
|
| 61 |
+
],
|
| 62 |
+
"axis": null,
|
| 63 |
+
"joint": null
|
| 64 |
+
},
|
| 65 |
+
{
|
| 66 |
+
"name": "shoulder_pan_joint",
|
| 67 |
+
"base_matrix": [
|
| 68 |
+
[
|
| 69 |
+
1.0,
|
| 70 |
+
-0.0,
|
| 71 |
+
0.0,
|
| 72 |
+
0.0
|
| 73 |
+
],
|
| 74 |
+
[
|
| 75 |
+
0.0,
|
| 76 |
+
1.0,
|
| 77 |
+
0.0,
|
| 78 |
+
0.0
|
| 79 |
+
],
|
| 80 |
+
[
|
| 81 |
+
0.0,
|
| 82 |
+
0.0,
|
| 83 |
+
1.0,
|
| 84 |
+
0.1625
|
| 85 |
+
],
|
| 86 |
+
[
|
| 87 |
+
0.0,
|
| 88 |
+
0.0,
|
| 89 |
+
0.0,
|
| 90 |
+
1.0
|
| 91 |
+
]
|
| 92 |
+
],
|
| 93 |
+
"axis": [
|
| 94 |
+
0.0,
|
| 95 |
+
0.0,
|
| 96 |
+
1.0
|
| 97 |
+
],
|
| 98 |
+
"joint": 0
|
| 99 |
+
},
|
| 100 |
+
{
|
| 101 |
+
"name": "shoulder_lift_joint",
|
| 102 |
+
"base_matrix": [
|
| 103 |
+
[
|
| 104 |
+
1.0,
|
| 105 |
+
-0.0,
|
| 106 |
+
0.0,
|
| 107 |
+
0.0
|
| 108 |
+
],
|
| 109 |
+
[
|
| 110 |
+
-0.0,
|
| 111 |
+
-2.05103428515331e-10,
|
| 112 |
+
-1.0,
|
| 113 |
+
0.0
|
| 114 |
+
],
|
| 115 |
+
[
|
| 116 |
+
0.0,
|
| 117 |
+
1.0,
|
| 118 |
+
-2.05103428515331e-10,
|
| 119 |
+
0.0
|
| 120 |
+
],
|
| 121 |
+
[
|
| 122 |
+
0.0,
|
| 123 |
+
0.0,
|
| 124 |
+
0.0,
|
| 125 |
+
1.0
|
| 126 |
+
]
|
| 127 |
+
],
|
| 128 |
+
"axis": [
|
| 129 |
+
0.0,
|
| 130 |
+
0.0,
|
| 131 |
+
1.0
|
| 132 |
+
],
|
| 133 |
+
"joint": 1
|
| 134 |
+
},
|
| 135 |
+
{
|
| 136 |
+
"name": "elbow_joint",
|
| 137 |
+
"base_matrix": [
|
| 138 |
+
[
|
| 139 |
+
1.0,
|
| 140 |
+
-0.0,
|
| 141 |
+
0.0,
|
| 142 |
+
-0.425
|
| 143 |
+
],
|
| 144 |
+
[
|
| 145 |
+
0.0,
|
| 146 |
+
1.0,
|
| 147 |
+
0.0,
|
| 148 |
+
0.0
|
| 149 |
+
],
|
| 150 |
+
[
|
| 151 |
+
0.0,
|
| 152 |
+
0.0,
|
| 153 |
+
1.0,
|
| 154 |
+
0.0
|
| 155 |
+
],
|
| 156 |
+
[
|
| 157 |
+
0.0,
|
| 158 |
+
0.0,
|
| 159 |
+
0.0,
|
| 160 |
+
1.0
|
| 161 |
+
]
|
| 162 |
+
],
|
| 163 |
+
"axis": [
|
| 164 |
+
0.0,
|
| 165 |
+
0.0,
|
| 166 |
+
1.0
|
| 167 |
+
],
|
| 168 |
+
"joint": 2
|
| 169 |
+
},
|
| 170 |
+
{
|
| 171 |
+
"name": "wrist_1_joint",
|
| 172 |
+
"base_matrix": [
|
| 173 |
+
[
|
| 174 |
+
1.0,
|
| 175 |
+
-0.0,
|
| 176 |
+
0.0,
|
| 177 |
+
-0.3922
|
| 178 |
+
],
|
| 179 |
+
[
|
| 180 |
+
0.0,
|
| 181 |
+
1.0,
|
| 182 |
+
0.0,
|
| 183 |
+
0.0
|
| 184 |
+
],
|
| 185 |
+
[
|
| 186 |
+
0.0,
|
| 187 |
+
0.0,
|
| 188 |
+
1.0,
|
| 189 |
+
0.1333
|
| 190 |
+
],
|
| 191 |
+
[
|
| 192 |
+
0.0,
|
| 193 |
+
0.0,
|
| 194 |
+
0.0,
|
| 195 |
+
1.0
|
| 196 |
+
]
|
| 197 |
+
],
|
| 198 |
+
"axis": [
|
| 199 |
+
0.0,
|
| 200 |
+
0.0,
|
| 201 |
+
1.0
|
| 202 |
+
],
|
| 203 |
+
"joint": 3
|
| 204 |
+
},
|
| 205 |
+
{
|
| 206 |
+
"name": "wrist_2_joint",
|
| 207 |
+
"base_matrix": [
|
| 208 |
+
[
|
| 209 |
+
1.0,
|
| 210 |
+
-0.0,
|
| 211 |
+
0.0,
|
| 212 |
+
0.0
|
| 213 |
+
],
|
| 214 |
+
[
|
| 215 |
+
-0.0,
|
| 216 |
+
-2.05103428515331e-10,
|
| 217 |
+
-1.0,
|
| 218 |
+
-0.0997
|
| 219 |
+
],
|
| 220 |
+
[
|
| 221 |
+
0.0,
|
| 222 |
+
1.0,
|
| 223 |
+
-2.05103428515331e-10,
|
| 224 |
+
-2.04488118229785e-11
|
| 225 |
+
],
|
| 226 |
+
[
|
| 227 |
+
0.0,
|
| 228 |
+
0.0,
|
| 229 |
+
0.0,
|
| 230 |
+
1.0
|
| 231 |
+
]
|
| 232 |
+
],
|
| 233 |
+
"axis": [
|
| 234 |
+
0.0,
|
| 235 |
+
0.0,
|
| 236 |
+
1.0
|
| 237 |
+
],
|
| 238 |
+
"joint": 4
|
| 239 |
+
},
|
| 240 |
+
{
|
| 241 |
+
"name": "wrist_3_joint",
|
| 242 |
+
"base_matrix": [
|
| 243 |
+
[
|
| 244 |
+
1.0,
|
| 245 |
+
-1.22464679939853e-16,
|
| 246 |
+
1.22464679889617e-16,
|
| 247 |
+
0.0
|
| 248 |
+
],
|
| 249 |
+
[
|
| 250 |
+
-1.22464679914735e-16,
|
| 251 |
+
-2.05103550980011e-10,
|
| 252 |
+
1.0,
|
| 253 |
+
0.0996
|
| 254 |
+
],
|
| 255 |
+
[
|
| 256 |
+
-1.22464679914735e-16,
|
| 257 |
+
-1.0,
|
| 258 |
+
-2.05103550980011e-10,
|
| 259 |
+
-2.0428301480127e-11
|
| 260 |
+
],
|
| 261 |
+
[
|
| 262 |
+
0.0,
|
| 263 |
+
0.0,
|
| 264 |
+
0.0,
|
| 265 |
+
1.0
|
| 266 |
+
]
|
| 267 |
+
],
|
| 268 |
+
"axis": [
|
| 269 |
+
0.0,
|
| 270 |
+
0.0,
|
| 271 |
+
1.0
|
| 272 |
+
],
|
| 273 |
+
"joint": 5
|
| 274 |
+
},
|
| 275 |
+
{
|
| 276 |
+
"name": "wrist_3_link-ft_frame",
|
| 277 |
+
"base_matrix": [
|
| 278 |
+
[
|
| 279 |
+
1.0,
|
| 280 |
+
0.0,
|
| 281 |
+
0.0,
|
| 282 |
+
0.0
|
| 283 |
+
],
|
| 284 |
+
[
|
| 285 |
+
0.0,
|
| 286 |
+
-1.0,
|
| 287 |
+
-1.22464679914735e-16,
|
| 288 |
+
0.0
|
| 289 |
+
],
|
| 290 |
+
[
|
| 291 |
+
0.0,
|
| 292 |
+
1.22464679914735e-16,
|
| 293 |
+
-1.0,
|
| 294 |
+
0.0
|
| 295 |
+
],
|
| 296 |
+
[
|
| 297 |
+
0.0,
|
| 298 |
+
0.0,
|
| 299 |
+
0.0,
|
| 300 |
+
1.0
|
| 301 |
+
]
|
| 302 |
+
],
|
| 303 |
+
"axis": null,
|
| 304 |
+
"joint": null
|
| 305 |
+
}
|
| 306 |
+
],
|
| 307 |
+
"home": [
|
| 308 |
+
0.0,
|
| 309 |
+
-1.5707963705062866,
|
| 310 |
+
1.5707963705062866,
|
| 311 |
+
-1.5707963705062866,
|
| 312 |
+
-1.5707963705062866,
|
| 313 |
+
0.0
|
| 314 |
+
],
|
| 315 |
+
"limits": [
|
| 316 |
+
[
|
| 317 |
+
-6.283185307179586,
|
| 318 |
+
6.283185307179586
|
| 319 |
+
],
|
| 320 |
+
[
|
| 321 |
+
-6.283185307179586,
|
| 322 |
+
6.283185307179586
|
| 323 |
+
],
|
| 324 |
+
[
|
| 325 |
+
-3.141592653589793,
|
| 326 |
+
3.141592653589793
|
| 327 |
+
],
|
| 328 |
+
[
|
| 329 |
+
-6.283185307179586,
|
| 330 |
+
6.283185307179586
|
| 331 |
+
],
|
| 332 |
+
[
|
| 333 |
+
-6.283185307179586,
|
| 334 |
+
6.283185307179586
|
| 335 |
+
],
|
| 336 |
+
[
|
| 337 |
+
-6.283185307179586,
|
| 338 |
+
6.283185307179586
|
| 339 |
+
]
|
| 340 |
+
],
|
| 341 |
+
"max_delta": 0.05,
|
| 342 |
+
"observation_size": 29,
|
| 343 |
+
"actions": 6,
|
| 344 |
+
"source": "ur7e_generated.urdf in pinned source commit; default kinematics, not robot-specific calibration."
|
| 345 |
+
}
|
package.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"private":true,"type":"module","scripts":{"test":"node test.mjs"}}
|
runtime-fixtures.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
[{"observation":[0.0,-0.25,0.5,-0.25,-0.25,0.0,0.4918999969959259,0.13329999148845673,0.4879000186920166,0.0,0.0,0.44999998807907104,-0.03628533333539963,0.3243376612663269,0.44999998807907104,-0.03628533333539963,0.3243376612663269,0.44999998807907104,-0.030822375789284706,0.31908732652664185,0.44999998807907104,-0.02502155303955078,0.3142128586769104,0.44999998807907104,-0.018908673897385597,0.3097359836101532,0.44999998807907104,-0.012510936707258224,0.30567657947540283],"action":[-0.991531491279602,0.7916195392608643,0.9949727058410645,0.2753514051437378,-0.9709863662719727,-0.9628593325614929],"angles":[0.0,-1.5707963705062866,1.5707963705062866,-1.5707963705062866,-1.5707963705062866,0.0],"position":[0.4918999969959259,0.13329999148845673,0.4879000186920166]},{"observation":[-0.03947112336754799,-0.24121364951133728,0.578323483467102,-0.2268168032169342,-0.287210613489151,-0.014430228620767593,0.4594285488128662,-0.00263140257447958,0.34001120924949646,0.0,0.0,0.44999998807907104,-0.03628533333539963,0.3243376612663269,0.44999998807907104,-0.03628533333539963,0.3243376612663269,0.44999998807907104,-0.030822375789284706,0.31908732652664185,0.44999998807907104,-0.02502155303955078,0.3142128586769104,0.44999998807907104,-0.018908673897385597,0.3097359836101532,0.44999998807907104,-0.012510936707258224,0.30567657947540283],"action":[-0.872020959854126,0.4486430883407593,0.12225830554962158,0.9898554086685181,-0.9931345582008362,0.9795465469360352],"angles":[-0.24800437688827515,-1.5155900716781616,1.816856861114502,-1.4251320362091064,-1.8045974969863892,-0.09066779911518097],"position":[0.4594285488128662,-0.00263140257447958,0.34001120924949646]},{"observation":[-0.04721487686038017,-0.23903560638427734,0.602105975151062,-0.2383941113948822,-0.2848925292491913,-0.012463130056858063,0.45139920711517334,-0.02124592289328575,0.3060115873813629,0.06666667014360428,1.0,0.44999998807907104,-0.012510936707258224,0.30567657947540283,0.44999998807907104,-0.012510936707258224,0.30567657947540283,0.44999998807907104,-0.005856807809323072,0.30205270648002625,0.44999998807907104,0.0010241067502647638,0.29888051748275757,0.44999998807907104,0.008101191371679306,0.2961741089820862,0.44999998807907104,0.015342958271503448,0.2939454913139343],"action":[0.26371872425079346,-0.12275654077529907,0.3633338212966919,-0.745082437992096,-0.17322230339050293,-0.6180277466773987],"angles":[-0.29665982723236084,-1.5019049644470215,1.8915716409683228,-1.49787437915802,-1.7900326251983643,-0.07830815762281418],"position":[0.45139920711517334,-0.02124592289328575,0.3060115873813629]},{"observation":[-0.034483328461647034,-0.24016931653022766,0.6215620636940002,-0.26152077317237854,-0.2907717525959015,-0.04150519147515297,0.45139437913894653,0.011288909241557121,0.2923794686794281,0.15000000596046448,1.0,0.44999998807907104,0.02271718718111515,0.2922046482563019,0.44999998807907104,0.02271718718111515,0.2922046482563019,0.44999998807907104,0.03019106574356556,0.29095926880836487,0.44999998807907104,0.037731342017650604,0.2902149260044098,0.44999998807907104,0.04530446603894234,0.2899749279022217,0.44999998807907104,0.05287674441933632,0.2902403175830841],"action":[0.40118980407714844,-0.02133357524871826,0.1285719871520996,-0.30743980407714844,-0.17198491096496582,-0.3548535108566284],"angles":[-0.2166651338338852,-1.5090283155441284,1.9526947736740112,-1.6431834697723389,-1.8269727230072021,-0.2607848048210144],"position":[0.45139437913894653,0.011288909241557121,0.2923794686794281]},{"observation":[-0.019314715638756752,-0.24094046652317047,0.6281663179397583,-0.2661498486995697,-0.29489967226982117,-0.041130781173706055,0.44510984420776367,0.05207064375281334,0.28830814361572266,0.23333333432674408,1.0,0.44999998807907104,0.06041448190808296,0.29100993275642395,0.44999998807907104,0.06041448190808296,0.29100993275642395,0.44999998807907104,0.06788414716720581,0.2922803461551666,0.44999998807907104,0.07525249570608139,0.29404589533805847,0.44999998807907104,0.08248675614595413,0.2962987422943115,0.44999998807907104,0.08955472707748413,0.2990288734436035],"action":[0.38690972328186035,0.011506199836730957,0.016069650650024414,-0.34206318855285645,-0.2696875333786011,0.6485178470611572],"angles":[-0.12135793268680573,-1.51387357711792,1.9734426736831665,-1.6722687482833862,-1.8529092073440552,-0.2584323287010193],"position":[0.44510984420776367,0.05207064375281334,0.28830814361572266]},{"observation":[-0.0030716964974999428,-0.24178828299045563,0.6308591365814209,-0.28479525446891785,-0.3104880154132843,-0.01245375070720911,0.4490477740764618,0.0877012312412262,0.29802411794662476,0.3166666626930237,1.0,0.44999998807907104,0.09642497450113297,0.30222412943840027,0.44999998807907104,0.09642497450113297,0.30222412943840027,0.44999998807907104,0.10306692123413086,0.30587026476860046,0.44999998807907104,0.10945101082324982,0.3099510967731476,0.44999998807907104,0.11554885655641556,0.31444844603538513,0.44999998807907104,0.12133330851793289,0.31934231519699097],"action":[0.40399229526519775,-0.05624455213546753,0.035555124282836914,-0.5599318146705627,-0.49063730239868164,0.7987494468688965],"angles":[-0.019300037994980812,-1.5192005634307861,1.9819023609161377,-1.7894213199615479,-1.9508538246154785,-0.07824922353029251],"position":[0.4490477740764618,0.0877012312412262,0.29802411794662476]},{"observation":[0.0,-0.25,0.5,-0.25,-0.25,0.0,0.4918999969959259,0.13329999148845673,0.4879000186920166,0.0,0.0,0.44999998807907104,-0.3499999940395355,0.4540850520133972,0.44999998807907104,-0.3499999940395355,0.4540850520133972,0.44999998807907104,-0.33813560009002686,0.4668613076210022,0.44999998807907104,-0.3262711763381958,0.4774109423160553,0.44999998807907104,-0.31440678238868713,0.4849890470504761,0.44999998807907104,-0.3025423586368561,0.4890604615211487],"action":[-0.983927845954895,-0.8159701228141785,0.9484641551971436,-0.9675768613815308,-0.9647455811500549,-0.7206422090530396],"angles":[0.0,-1.5707963705062866,1.5707963705062866,-1.5707963705062866,-1.5707963705062866,0.0],"position":[0.4918999969959259,0.13329999148845673,0.4879000186920166]},{"observation":[-0.039375897496938705,-0.2517588138580322,0.5206688642501831,-0.287666380405426,-0.28612861037254333,-0.011892671696841717,0.5144632458686829,-0.015576904639601707,0.4890455901622772,0.0,0.0,0.44999998807907104,-0.3499999940395355,0.4540850520133972,0.44999998807907104,-0.3499999940395355,0.4540850520133972,0.44999998807907104,-0.33813560009002686,0.4668613076210022,0.44999998807907104,-0.3262711763381958,0.4774109423160553,0.44999998807907104,-0.31440678238868713,0.4849890470504761,0.44999998807907104,-0.3025423586368561,0.4890604615211487],"action":[-0.9927541613578796,0.7626174688339233,-0.43518221378326416,-0.946720540523529,-0.9236791133880615,0.13547134399414062],"angles":[-0.24740605056285858,-1.5818471908569336,1.635729432106018,-1.807461142539978,-1.797798991203308,-0.07472386211156845],"position":[0.5144632458686829,-0.015576904639601707,0.4890455901622772]},{"observation":[-0.07884649187326431,-0.23421598970890045,0.5169997215270996,-0.32416611909866333,-0.323483407497406,-0.0053454814478755,0.5279644727706909,-0.18420468270778656,0.47171345353126526,0.0,0.0,0.44999998807907104,-0.3499999940395355,0.4540850520133972,0.44999998807907104,-0.3499999940395355,0.4540850520133972,0.44999998807907104,-0.33813560009002686,0.4668613076210022,0.44999998807907104,-0.3262711763381958,0.4774109423160553,0.44999998807907104,-0.31440678238868713,0.4849890470504761,0.44999998807907104,-0.3025423586368561,0.4890604615211487],"action":[-0.9925463795661926,-0.19386661052703857,0.630469799041748,-0.7912039160728455,-0.8598375916481018,0.7014737129211426],"angles":[-0.4954071342945099,-1.4716224670410156,1.6242024898529053,-2.0367958545684814,-2.032506227493286,-0.03358665108680725],"position":[0.5279644727706909,-0.18420468270778656,0.47171345353126526]},{"observation":[-0.11815102398395538,-0.2283894419670105,0.5307300686836243,-0.33867648243904114,-0.35932889580726624,0.028010530397295952,0.45877954363822937,-0.32571879029273987,0.45212602615356445,0.0,0.0,0.44999998807907104,-0.3499999940395355,0.4540850520133972,0.44999998807907104,-0.3499999940395355,0.4540850520133972,0.44999998807907104,-0.33813560009002686,0.4668613076210022,0.44999998807907104,-0.3262711763381958,0.4774109423160553,0.44999998807907104,-0.31440678238868713,0.4849890470504761,0.44999998807907104,-0.3025423586368561,0.4890604615211487],"action":[-0.8284450173377991,0.3344757556915283,-0.43264061212539673,0.9949259757995605,-0.9396515488624573,0.9438080787658691],"angles":[-0.742364764213562,-1.4350131750106812,1.6673376560211182,-2.127967119216919,-2.257730007171631,0.1759953498840332],"position":[0.45877954363822937,-0.32571879029273987,0.45212602615356445]},{"observation":[-0.11709330976009369,-0.23653791844844818,0.5204692482948303,-0.32639262080192566,-0.36113241314888,0.032147206366062164,0.4489295184612274,-0.3129669725894928,0.4880658686161041,0.06666667014360428,1.0,0.44999998807907104,-0.3025423586368561,0.4890604615211487,0.44999998807907104,-0.3025423586368561,0.4890604615211487,0.44999998807907104,-0.2906779646873474,0.4893377721309662,0.44999998807907104,-0.27881357073783875,0.4858013093471527,0.44999998807907104,-0.2669491469860077,0.4787008464336395,0.44999998807907104,-0.255084753036499,0.46853774785995483],"action":[0.35884296894073486,-0.2654489278793335,0.2591869831085205,-0.27795732021331787,-0.43809008598327637,0.2764575481414795],"angles":[-0.7357189655303955,-1.4862115383148193,1.635102391242981,-2.0507853031158447,-2.269061803817749,0.2019868642091751],"position":[0.4489295184612274,-0.3129669725894928,0.4880658686161041]},{"observation":[-0.10123804211616516,-0.24448862671852112,0.5610600709915161,-0.3377598822116852,-0.3843100070953369,0.018753057345747948,0.4472532272338867,-0.2571048140525818,0.4682919681072235,0.15000000596046448,1.0,0.44999998807907104,-0.24322034418582916,0.45602965354919434,0.44999998807907104,-0.24322034418582916,0.45602965354919434,0.44999998807907104,-0.2313559353351593,0.44205981492996216,0.44999998807907104,-0.21949152648448944,0.42761462926864624,0.44999998807907104,-0.20762711763381958,0.41371414065361023,0.44999998807907104,-0.19576270878314972,0.40133988857269287],"action":[0.4142221212387085,-0.11291784048080444,0.7388980388641357,-0.12291789054870605,-0.7231836915016174,-0.8800548911094666],"angles":[-0.6360973715782166,-1.5361673831939697,1.7626221179962158,-2.1222078800201416,-2.4146909713745117,0.11782893538475037],"position":[0.4472532272338867,-0.2571048140525818,0.4682919681072235]},{"observation":[0.0,-0.25,0.5,-0.25,-0.25,0.0,0.4918999969959259,0.13329999148845673,0.4879000186920166,0.0,0.0,0.44999998807907104,0.27315378189086914,0.2524716854095459,0.44999998807907104,0.27315378189086914,0.2524716854095459,0.44999998807907104,0.26903659105300903,0.25579050183296204,0.44999998807907104,0.2649194002151489,0.2591093182563782,0.44999998807907104,0.2608022093772888,0.2624281644821167,0.44999998807907104,0.2566850185394287,0.26574698090553284],"action":[0.986121654510498,0.9937586784362793,0.9913235902786255,-0.82060706615448,0.1916729211807251,-0.9701446890830994],"angles":[0.0,-1.5707963705062866,1.5707963705062866,-1.5707963705062866,-1.5707963705062866,0.0],"position":[0.4918999969959259,0.13329999148845673,0.4879000186920166]},{"observation":[0.03665976971387863,-0.21538126468658447,0.5781964659690857,-0.24464277923107147,-0.2353346347808838,-0.015719346702098846,0.43768510222435,0.2489675134420395,0.267545223236084,0.0,0.0,0.44999998807907104,0.27315378189086914,0.2524716854095459,0.44999998807907104,0.27315378189086914,0.2524716854095459,0.44999998807907104,0.26903659105300903,0.25579050183296204,0.44999998807907104,0.2649194002151489,0.2591093182563782,0.44999998807907104,0.2608022093772888,0.2624281644821167,0.44999998807907104,0.2566850185394287,0.26574698090553284],"action":[0.7817013263702393,0.7573167085647583,-0.16704607009887695,-0.07772010564804077,0.7633380889892578,0.9139204025268555],"angles":[0.2303401380777359,-1.3532804250717163,1.816457748413086,-1.5371359586715698,-1.4786511659622192,-0.09876756370067596],"position":[0.43768510222435,0.2489675134420395,0.267545223236084]},{"observation":[0.03628145903348923,-0.2155473381280899,0.5927190184593201,-0.2720615863800049,-0.22232870757579803,-0.03605848178267479,0.44485458731651306,0.25773197412490845,0.2594224214553833,0.06666667014360428,1.0,0.44999998807907104,0.2566850185394287,0.26574698090553284,0.44999998807907104,0.2566850185394287,0.26574698090553284,0.44999998807907104,0.2525678277015686,0.269065797328949,0.44999998807907104,0.2484506517648697,0.2723846137523651,0.44999998807907104,0.24433346092700958,0.27570345997810364,0.44999998807907104,0.24021627008914948,0.2790222764015198],"action":[-0.046293556690216064,-0.2932621240615845,0.3838925361633301,-0.9906567335128784,-0.2563401460647583,-0.9886297583580017],"angles":[0.2279631346464157,-1.3543238639831543,1.8620816469192505,-1.7094134092330933,-1.3969324827194214,-0.22656211256980896],"position":[0.44485458731651306,0.25773197412490845,0.2594224214553833]},{"observation":[0.028844399377703667,-0.22776034474372864,0.6171159148216248,-0.30757322907447815,-0.23183827102184296,-0.07500410825014114,0.4521496295928955,0.22990378737449646,0.28029611706733704,0.15000000596046448,1.0,0.44999998807907104,0.23609907925128937,0.2823410928249359,0.44999998807907104,0.23609907925128937,0.2823410928249359,0.44999998807907104,0.23198188841342926,0.28565990924835205,0.44999998807907104,0.22786469757556915,0.2889787554740906,0.44999998807907104,0.22374750673770905,0.2922975718975067,0.44999998807907104,0.21963031589984894,0.29561638832092285],"action":[-0.160433828830719,-0.27231884002685547,0.11980593204498291,0.3821679353713989,-0.27242326736450195,-0.9412564635276794],"angles":[0.1812347024679184,-1.4310604333877563,1.938726782798767,-1.9325395822525024,-1.456682801246643,-0.47126469016075134],"position":[0.4521496295928955,0.22990378737449646,0.28029611706733704]},{"observation":[0.027222484350204468,-0.23328609764575958,0.6081333160400391,-0.2794201076030731,-0.24866077303886414,-0.1018468588590622,0.43967902660369873,0.21207095682621002,0.29455843567848206,0.23333333432674408,1.0,0.44999998807907104,0.21551312506198883,0.298935204744339,0.44999998807907104,0.21551312506198883,0.298935204744339,0.44999998807907104,0.21139593422412872,0.3022540509700775,0.44999998807907104,0.20727874338626862,0.30557286739349365,0.44999998807907104,0.2031615525484085,0.3088916838169098,0.44999998807907104,0.1990443617105484,0.3122105002403259],"action":[0.05464279651641846,0.044925689697265625,-0.20280027389526367,0.24766743183135986,-0.8272867202758789,0.18064641952514648],"angles":[0.17104391753673553,-1.4657797813415527,1.910507082939148,-1.7556482553482056,-1.5623817443847656,-0.6399226784706116],"position":[0.43967902660369873,0.21207095682621002,0.29455843567848206]},{"observation":[0.02714342623949051,-0.23393385112285614,0.6045377254486084,-0.29087647795677185,-0.2776094973087311,-0.07944341003894806,0.4541264474391937,0.19602738320827484,0.30830293893814087,0.3166666626930237,1.0,0.44999998807907104,0.1949271708726883,0.31552931666374207,0.44999998807907104,0.1949271708726883,0.31552931666374207,0.44999998807907104,0.19080998003482819,0.3188481628894806,0.44999998807907104,0.18669278919696808,0.32216697931289673,0.44999998807907104,0.18257559835910797,0.32548579573631287,0.44999998807907104,0.17845840752124786,0.328804612159729],"action":[-0.06952768564224243,-0.17900848388671875,0.1372154951095581,-0.49388766288757324,-0.4991813898086548,0.8357234001159668],"angles":[0.17054717242717743,-1.469849705696106,1.8992112874984741,-1.8276307582855225,-1.744271993637085,-0.4991576671600342],"position":[0.4541264474391937,0.19602738320827484,0.30830293893814087]}]
|
runtime-validation.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"fixture_count": 18,
|
| 3 |
+
"max_absolute_action_difference": 9.5367431640625e-7,
|
| 4 |
+
"max_fk_difference_m": 5.960464477539063e-8,
|
| 5 |
+
"live_runs": [
|
| 6 |
+
{
|
| 7 |
+
"controller": "sac",
|
| 8 |
+
"steps": 69,
|
| 9 |
+
"success": true,
|
| 10 |
+
"rms": 6.066419503807156
|
| 11 |
+
},
|
| 12 |
+
{
|
| 13 |
+
"controller": "dls",
|
| 14 |
+
"steps": 69,
|
| 15 |
+
"success": true,
|
| 16 |
+
"rms": 2.017529826623653
|
| 17 |
+
}
|
| 18 |
+
]
|
| 19 |
+
}
|
style.css
CHANGED
|
@@ -1,28 +1 @@
|
|
| 1 |
-
body {
|
| 2 |
-
padding: 2rem;
|
| 3 |
-
font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
|
| 4 |
-
}
|
| 5 |
-
|
| 6 |
-
h1 {
|
| 7 |
-
font-size: 16px;
|
| 8 |
-
margin-top: 0;
|
| 9 |
-
}
|
| 10 |
-
|
| 11 |
-
p {
|
| 12 |
-
color: rgb(107, 114, 128);
|
| 13 |
-
font-size: 15px;
|
| 14 |
-
margin-bottom: 10px;
|
| 15 |
-
margin-top: 5px;
|
| 16 |
-
}
|
| 17 |
-
|
| 18 |
-
.card {
|
| 19 |
-
max-width: 620px;
|
| 20 |
-
margin: 0 auto;
|
| 21 |
-
padding: 16px;
|
| 22 |
-
border: 1px solid lightgray;
|
| 23 |
-
border-radius: 16px;
|
| 24 |
-
}
|
| 25 |
-
|
| 26 |
-
.card p:last-child {
|
| 27 |
-
margin-bottom: 0;
|
| 28 |
-
}
|
|
|
|
| 1 |
+
:root{color-scheme:dark;--bg:#0b0e0e;--surface:#121918;--ink:#e7ede8;--muted:#a2afa7;--line:#2a3731;--green:#a5cfb4;--blue:#83b7d1}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:system-ui,sans-serif;line-height:1.6}main{max-width:1280px;margin:auto;padding:32px}header{display:flex;justify-content:space-between;gap:16px;align-items:center;font:11px ui-monospace,monospace;letter-spacing:.1em}a{color:var(--green);text-decoration:none}a:hover{text-decoration:underline}.badge{border:1px solid var(--line);padding:6px 12px;border-radius:30px}.intro{padding:50px 0 30px}.eyebrow{font:11px ui-monospace,monospace;letter-spacing:.14em;color:var(--green)}h1{font-size:clamp(34px,5vw,64px);letter-spacing:-.06em;line-height:1.1;margin:10px 0 18px}h1 span{color:var(--green)}.intro>p:not(.eyebrow){font-size:18px;color:var(--muted)}.links{display:flex;flex-wrap:wrap;gap:12px 26px;font-size:12px}.lab{display:grid;grid-template-columns:minmax(0,1fr) 300px;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--surface)}.viewport{position:relative;min-width:0;background:radial-gradient(ellipse at 50% 55%,#192722,#0d1312 75%)}.viewport-title{position:absolute;top:16px;left:20px;right:20px;display:flex;justify-content:space-between;gap:15px;font:10px ui-monospace,monospace;color:var(--muted);z-index:1;pointer-events:none}canvas{display:block;width:100%;height:540px;touch-action:none;cursor:grab}canvas:active{cursor:grabbing}.legend{position:absolute;bottom:16px;left:20px;right:20px;display:flex;flex-wrap:wrap;gap:18px;font:10px ui-monospace,monospace;color:var(--muted)}.legend span:before{content:'•';margin-right:7px}.target{color:#b2d7a4}.actual{color:var(--blue)}aside{padding:20px;border-left:1px solid var(--line)}h2{font-size:20px;line-height:1.35;letter-spacing:-.025em;margin:0 0 18px}label{display:block;font-size:12px;color:var(--muted);margin:14px 0}label span{float:right}select,input{display:block;width:100%;margin-top:7px;accent-color:var(--green)}select{padding:10px;border:1px solid var(--line);border-radius:6px;color:var(--ink);background:#0d1312;font-size:12px;max-width:100%}.actions{display:flex;gap:8px;margin-top:20px}button{padding:10px 18px;border:1px solid var(--line);border-radius:6px;cursor:pointer;color:var(--ink);background:#1b2922;font:inherit;font-size:12px}button:first-child{flex:1;color:#0d1610;background:var(--green)}button:disabled{opacity:.5;cursor:wait}#status{font:12px ui-monospace,monospace;min-height:34px;color:var(--green)}dl{font-size:12px;margin:0}dl div{display:flex;justify-content:space-between;padding:6px 0;border-bottom:1px solid var(--line)}dt{color:var(--muted)}dd{margin:0}.note{font-size:11px;color:var(--muted);line-height:1.6}.evidence{display:grid;grid-template-columns:1fr 1.25fr;gap:50px;padding:46px 0}.evidence p{color:var(--muted);font-size:13px}.evidence .eyebrow{color:var(--green);font-size:10px}.evidence h2{font-size:28px}.table-wrap{min-width:0}table{width:100%;border-collapse:collapse;font-size:13px;text-align:left}caption{text-align:left;color:var(--muted);font:11px ui-monospace,monospace;padding-bottom:15px}td,th{border-bottom:1px solid var(--line);padding:12px 8px}th{font-size:11px;color:var(--muted);font-weight:500}footer{border-top:1px solid var(--line);font-size:11px;color:var(--muted);padding:16px 0}a:focus-visible,button:focus-visible,select:focus-visible,canvas:focus-visible{outline:2px solid var(--green);outline-offset:3px}@media(max-width:780px){main{padding:18px}.intro{padding-top:32px}.lab{grid-template-columns:1fr}aside{border-left:0;border-top:1px solid var(--line)}canvas{height:370px}.viewport-title{font-size:8px}.evidence{grid-template-columns:1fr;gap:20px}.badge{font-size:8px}header{font-size:9px}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
summary.json
ADDED
|
@@ -0,0 +1,170 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"date": "2026-11-18",
|
| 3 |
+
"checkpoint_sha256": "c4da7cb46867354f4c4f2b397e1a0b6822792fb7725092c8dbc4584e2d610425",
|
| 4 |
+
"python": "3.12.3",
|
| 5 |
+
"platform": "Linux-7.3.4-3-t2-noble-x86_64-with-glibc2.39",
|
| 6 |
+
"versions": {
|
| 7 |
+
"numpy": "1.26.4",
|
| 8 |
+
"torch": "2.12.1+cu130",
|
| 9 |
+
"stable_baselines3": "2.8.0",
|
| 10 |
+
"gymnasium": "1.2.3",
|
| 11 |
+
"ikpy": "3.4.2",
|
| 12 |
+
"matplotlib": "3.9.4"
|
| 13 |
+
},
|
| 14 |
+
"device": "cpu",
|
| 15 |
+
"torch_threads": 1,
|
| 16 |
+
"elapsed_seconds": 38.53,
|
| 17 |
+
"protocol": "100 prespecified seeded trajectories, balanced over five shape generators; paired controllers and sensor-noise conditions; no retraining. Training seed history unavailable: exact disjointness from original training cannot be certified.",
|
| 18 |
+
"conditions": [
|
| 19 |
+
{
|
| 20 |
+
"controller": "sac",
|
| 21 |
+
"sensor_noise": 0.0,
|
| 22 |
+
"episodes": 100,
|
| 23 |
+
"strict_completed": 93,
|
| 24 |
+
"completion_rate": 0.93,
|
| 25 |
+
"completion_wilson_95": [
|
| 26 |
+
0.8625048526092651,
|
| 27 |
+
0.9656807389327273
|
| 28 |
+
],
|
| 29 |
+
"acquisition_rate": 1.0,
|
| 30 |
+
"mean_tracking_rms_mm_acquired": 5.214003103954205,
|
| 31 |
+
"mean_tracking_rms_mm_completed": 5.098132646664121,
|
| 32 |
+
"original_flag_false_positives": 7,
|
| 33 |
+
"mean_progress_fraction": 1.0,
|
| 34 |
+
"median_episode_action_latency_ms": 0.277023,
|
| 35 |
+
"stops": {
|
| 36 |
+
"completed": 93,
|
| 37 |
+
"timeout": 0,
|
| 38 |
+
"stagnation": 0,
|
| 39 |
+
"off_path": 0,
|
| 40 |
+
"endpoint_tolerance_not_met": 7,
|
| 41 |
+
"other": 0
|
| 42 |
+
}
|
| 43 |
+
},
|
| 44 |
+
{
|
| 45 |
+
"controller": "dls",
|
| 46 |
+
"sensor_noise": 0.0,
|
| 47 |
+
"episodes": 100,
|
| 48 |
+
"strict_completed": 90,
|
| 49 |
+
"completion_rate": 0.9,
|
| 50 |
+
"completion_wilson_95": [
|
| 51 |
+
0.8256343384950865,
|
| 52 |
+
0.9447708629393249
|
| 53 |
+
],
|
| 54 |
+
"acquisition_rate": 1.0,
|
| 55 |
+
"mean_tracking_rms_mm_acquired": 2.375824664437354,
|
| 56 |
+
"mean_tracking_rms_mm_completed": 2.1659220330534588,
|
| 57 |
+
"original_flag_false_positives": 10,
|
| 58 |
+
"mean_progress_fraction": 1.0,
|
| 59 |
+
"median_episode_action_latency_ms": 0.6799580000000001,
|
| 60 |
+
"stops": {
|
| 61 |
+
"completed": 90,
|
| 62 |
+
"timeout": 0,
|
| 63 |
+
"stagnation": 0,
|
| 64 |
+
"off_path": 0,
|
| 65 |
+
"endpoint_tolerance_not_met": 10,
|
| 66 |
+
"other": 0
|
| 67 |
+
}
|
| 68 |
+
},
|
| 69 |
+
{
|
| 70 |
+
"controller": "sac",
|
| 71 |
+
"sensor_noise": 0.002,
|
| 72 |
+
"episodes": 100,
|
| 73 |
+
"strict_completed": 92,
|
| 74 |
+
"completion_rate": 0.92,
|
| 75 |
+
"completion_wilson_95": [
|
| 76 |
+
0.8500189229905127,
|
| 77 |
+
0.9589065385156194
|
| 78 |
+
],
|
| 79 |
+
"acquisition_rate": 1.0,
|
| 80 |
+
"mean_tracking_rms_mm_acquired": 5.7500390087797,
|
| 81 |
+
"mean_tracking_rms_mm_completed": 5.630543793203372,
|
| 82 |
+
"original_flag_false_positives": 8,
|
| 83 |
+
"mean_progress_fraction": 1.0,
|
| 84 |
+
"median_episode_action_latency_ms": 0.26932449999999997,
|
| 85 |
+
"stops": {
|
| 86 |
+
"completed": 92,
|
| 87 |
+
"timeout": 0,
|
| 88 |
+
"stagnation": 0,
|
| 89 |
+
"off_path": 0,
|
| 90 |
+
"endpoint_tolerance_not_met": 8,
|
| 91 |
+
"other": 0
|
| 92 |
+
}
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"controller": "dls",
|
| 96 |
+
"sensor_noise": 0.002,
|
| 97 |
+
"episodes": 100,
|
| 98 |
+
"strict_completed": 89,
|
| 99 |
+
"completion_rate": 0.89,
|
| 100 |
+
"completion_wilson_95": [
|
| 101 |
+
0.8136870349691969,
|
| 102 |
+
0.9374580364293543
|
| 103 |
+
],
|
| 104 |
+
"acquisition_rate": 1.0,
|
| 105 |
+
"mean_tracking_rms_mm_acquired": 3.5540318419198718,
|
| 106 |
+
"mean_tracking_rms_mm_completed": 3.3792324427531657,
|
| 107 |
+
"original_flag_false_positives": 11,
|
| 108 |
+
"mean_progress_fraction": 1.0,
|
| 109 |
+
"median_episode_action_latency_ms": 0.68389525,
|
| 110 |
+
"stops": {
|
| 111 |
+
"completed": 89,
|
| 112 |
+
"timeout": 0,
|
| 113 |
+
"stagnation": 0,
|
| 114 |
+
"off_path": 0,
|
| 115 |
+
"endpoint_tolerance_not_met": 11,
|
| 116 |
+
"other": 0
|
| 117 |
+
}
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"controller": "sac",
|
| 121 |
+
"sensor_noise": 0.005,
|
| 122 |
+
"episodes": 100,
|
| 123 |
+
"strict_completed": 89,
|
| 124 |
+
"completion_rate": 0.89,
|
| 125 |
+
"completion_wilson_95": [
|
| 126 |
+
0.8136870349691969,
|
| 127 |
+
0.9374580364293543
|
| 128 |
+
],
|
| 129 |
+
"acquisition_rate": 1.0,
|
| 130 |
+
"mean_tracking_rms_mm_acquired": 7.556499192378689,
|
| 131 |
+
"mean_tracking_rms_mm_completed": 7.448523131877891,
|
| 132 |
+
"original_flag_false_positives": 11,
|
| 133 |
+
"mean_progress_fraction": 1.0,
|
| 134 |
+
"median_episode_action_latency_ms": 0.2723985,
|
| 135 |
+
"stops": {
|
| 136 |
+
"completed": 89,
|
| 137 |
+
"timeout": 0,
|
| 138 |
+
"stagnation": 0,
|
| 139 |
+
"off_path": 0,
|
| 140 |
+
"endpoint_tolerance_not_met": 11,
|
| 141 |
+
"other": 0
|
| 142 |
+
}
|
| 143 |
+
},
|
| 144 |
+
{
|
| 145 |
+
"controller": "dls",
|
| 146 |
+
"sensor_noise": 0.005,
|
| 147 |
+
"episodes": 100,
|
| 148 |
+
"strict_completed": 87,
|
| 149 |
+
"completion_rate": 0.87,
|
| 150 |
+
"completion_wilson_95": [
|
| 151 |
+
0.7901964855992357,
|
| 152 |
+
0.9224283257275948
|
| 153 |
+
],
|
| 154 |
+
"acquisition_rate": 1.0,
|
| 155 |
+
"mean_tracking_rms_mm_acquired": 6.498195514280465,
|
| 156 |
+
"mean_tracking_rms_mm_completed": 6.39031534001167,
|
| 157 |
+
"original_flag_false_positives": 13,
|
| 158 |
+
"mean_progress_fraction": 1.0,
|
| 159 |
+
"median_episode_action_latency_ms": 0.68932275,
|
| 160 |
+
"stops": {
|
| 161 |
+
"completed": 87,
|
| 162 |
+
"timeout": 0,
|
| 163 |
+
"stagnation": 0,
|
| 164 |
+
"off_path": 0,
|
| 165 |
+
"endpoint_tolerance_not_met": 13,
|
| 166 |
+
"other": 0
|
| 167 |
+
}
|
| 168 |
+
}
|
| 169 |
+
]
|
| 170 |
+
}
|
test.mjs
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import fs from 'node:fs';import assert from 'node:assert/strict';import {Actor,fk,Environment,dls} from './core.js';
|
| 2 |
+
const bytes=fs.readFileSync(new URL('./actor.bin',import.meta.url));const actor=new Actor(bytes.buffer.slice(bytes.byteOffset,bytes.byteOffset+bytes.byteLength));const config=JSON.parse(fs.readFileSync(new URL('./kinematics.json',import.meta.url)));const fixtures=JSON.parse(fs.readFileSync(new URL('./runtime-fixtures.json',import.meta.url)));let maxAction=0,maxFK=0;
|
| 3 |
+
for(const f of fixtures){const action=actor.predict(f.observation);maxAction=Math.max(maxAction,...Array.from(action,(v,i)=>Math.abs(v-f.action[i])));const p=fk(config,f.angles);maxFK=Math.max(maxFK,...p.map((v,i)=>Math.abs(v-f.position[i])));}assert(maxAction<1e-4);assert(maxFK<2e-7);const cases=JSON.parse(fs.readFileSync(new URL('./cases.json',import.meta.url)));let results=[];for(const controller of ['sac','dls']){const env=new Environment(config,cases[0].target);while(!env.done){const o=env.observation();env.step(controller==='sac'?actor.predict(o):dls(config,o));}assert(env.steps<=800);assert(Number.isFinite(env.rms));results.push({controller,steps:env.steps,success:env.success,rms:env.rms});}const report={fixture_count:fixtures.length,max_absolute_action_difference:maxAction,max_fk_difference_m:maxFK,live_runs:results};fs.writeFileSync(new URL('./runtime-validation.json',import.meta.url),JSON.stringify(report,null,2)+'\n');console.log(JSON.stringify(report));
|