OneGrasp: teach a robot with a webcam

Inspiration

What if a robot could learn a task just by watching a person do it?

That's skill transfer: the robot learns from how we actually do the task. Today it's slow and expensive. Someone steers the robot move by move with a controller, or wears motion-capture gloves. Only big labs can do it.

And data for robots are limited. One of the best robot models learned from about 10,000 hours of robot data. A large language model learned from more text than a person could read in a thousand lifetimes. That's why LLMs are so good today. For robots to get that good, they need far more data, and it has to be cheap and easy to collect.

So we built OneGrasp. One normal camera, no special equipments or sensors. It watches a person do a task once and turns that into robot training data, at scale.

What it does

OneGrasp turns one human demonstration on a webcam into a batch of verified robot training data in about two minutes.

  1. See. Pick up a can and place it on a target in front of the camera. OneGrasp rebuilds your hand in 3D every frame and detects the moment you grab and let go. Double-click the object and it's segmented and fitted in 3D. ArUco markers on the table give real-world coordinates.
  2. Transfer. A simulated Franka Panda in MuJoCo repeats your motion in sync with you: same grab, same tilt when you pour, same placement. We record what the hand does, not its joints, so the recording can be mapped to other robot arms.
  3. Scale. One demo becomes twelve. Building on NVIDIA's MimicGen, OneGrasp creates new scenes (can moved up to 10 cm, half of them lying on its side, a random robot start pose) and adapts the robot's motion to each one.
  4. Verify and store. Every scene runs in full physics. Failures are thrown out. Successes are saved in robomimic format, the standard for robot learning, and streamed live into Tiger Data.

No sensor or any special equipments. One camera, one demo, a batch of verified robot data.

How we built it

  • Hand tracking: MediaPipe finds the hand. Our own model (GraspNet: RepViT + MobileNetV3 + a causal GRU) predicts the 3D hand and grab / release at 30 fps on a laptop. We trained it on DexYCB plus our own labelled recordings.
  • 3D from one camera: we combine the 3D hand fit with MediaPipe's depth and angles, so a turned hand mid-pour doesn't make the robot jump.
  • Object: SAM 2.1 segments the double-clicked object, and we fit a cylinder to it in table coordinates.
  • Calibration: ArUco markers give the camera's position and focal length, so the MuJoCo table matches the real one.
  • Retargeting: the hand's position and rotation become Panda joint angles through inverse kinematics with collision avoidance, played back one robot step per camera frame.
  • Grip refinement: a centimetre off means a missed grasp. So the robot practises in physics, and a small cross-entropy search (12 parallel workers) keeps the grip that actually lifts the can.
  • Scaling: a MimicGen-style generator transforms the robot's motion into each new scene and stands lying cans up first.
  • Tiger Data: robot demos are time series, so we stored them as time series:
    • Hypertables for every robot step (demo_steps) and every hand frame (hand_frames).
    • Columnstore compression per demo (segmented by demo, ordered by step).
    • A continuous aggregate (demo_steps_1s) for per-second stats.
    • Relational tables (sessions, demos, demo_scenes) joined to the time series with plain SQL.
    • A live dashboard judges can open on their phone.
    • A replay script that pulls any demo from Tiger and re-runs it in MuJoCo.
  • Stack: Python, PyTorch, MediaPipe, SAM 2.1, OpenCV, MuJoCo, robomimic HDF5, Tiger Data (Postgres + TimescaleDB).

Challenges we ran into

  • One camera, no depth. A hand turning mid-pour looked like a hand flying up, and the robot leapt. Combining the 3D fit with MediaPipe's depth and angles fixed it.
  • Hands aren't robots. Copying joint angles failed, so we copy the hand's pose and solve IK. A parallel gripper looks the same turned 180°, so we pick one orientation for the whole path or the arm jitters.
  • Noisy tracking means missed grasps. We let the robot practise in physics instead of trusting raw tracking.
  • Valid variations. Generating scenes is easy; making them physically achievable isn't. Every one is simulated before it's saved.
  • Real time. The hand model, 3D mesh and dashboard all had to keep up at 30 fps on a laptop.

Accomplishments that we're proud of

  • One webcam demo becomes 12 physics-checked robot demos in about two minutes. On our test takes, 9 to 12 of the 12 scenes succeed.
  • It works end to end, live: camera → 3D hand → robot copy → scaling → verification → Tiger Data.
  • 400+ verified demos stored so far in a standard format anyone can train on.

What we learned

  • Robotics is limited less by algorithms than by data, and the cheapest data source is people doing tasks normally.
  • Record what the hand does, not its joints: that's what makes one demo reusable across robots.
  • Robot data is time-series data. Treating it that way from day one made storing, replaying and querying it easy.

What's next for OneGrasp

  • Train policies on OneGrasp datasets and test them on real robot arms.
  • More tasks, more objects, two-handed demos.
  • From 12 scenes per demo to thousands.
  • An open, growing Tiger Data dataset anyone can contribute demos to.
  • The same tracking in labs: which tool a scientist picks up, and in what order.

Built With

  • computer-vision
  • mujuco
  • python
  • tigerdata
Share this project:

Updates

Submission history