PixelGrasp

Move the cube. The robot picks it up.

The arm isn't told where the cube is. It sees one 96×96 camera frame at a time and decides how to move, using a policy I trained from scripted demonstrations. Physics and the network both run here in your browser.

robot's camera, 96×96

Loading…

Drag the dark cube anywhere. Click the table to move the red target. Drag empty space to orbit.

How it works

  1. Watch an expert

    A scripted controller that can read the true cube position solves the task. The policy trains on 2,000 of its runs: 100,000 camera frames, each paired with the expert's action.

  2. Learn from pixels

    A ResNet-18 learns to copy the expert from the image alone, plus the gripper's own position and the target. It predicts 8 moves at once and re-plans every 4.

  3. Test on scenes it never saw

    Every number below comes from 300 held-out scenes. Each failure gets a label: missed the grasp, dropped it, wrong place, or timed out.

The demo sends the arm back to its start pose before each new job, because training always started there. If you move the cube while the arm is mid-reach, it fails more often (about 1 in 3 works in my tests). That's a known limit, not a bug in the page. The blue drop area reaches 17 cm from the start point, a bit past the ±15 cm the policy trained on. On 60 random spots in that extra strip, the browser version picked the cube up 60 times. At 20 cm some target spots start failing, and at 25 cm it fails every time, so the area stops at 17.

Results

ControllerSolved
Scripted expert (reads the true state)300 / 300
PixelGrasp, camera only, action chunk k=8299 / 300
Same policy in this browser page (ONNX + MuJoCo WASM)50 / 50
Doing nothing / random actions11 / 300

The browser row uses the first 50 of the same frozen scenes. The page's renderer matches MuJoCo's to within 0.8/255 per pixel on average, so the network sees what it was trained on.