Vi3W
Skip to content

Guides

The sim-to-real gap: why a robot that aced simulation failed on day one

The sim-to-real gap explained through a robotics story: visual and physics gaps, domain randomization, asset realism and how to measure what matters.

3 min read

A robotics lab bench with a robot and testing equipment
Photo: public domain / CC0, via Openverse. Illustrative story.

Quick answer

What is the sim-to-real gap?

It is the drop in performance when a model or controller trained in simulation is used in the real world. Simulators differ from reality in visuals (lighting, textures, sensor noise) and physics (friction, contact, delays). Teams narrow the gap with more realistic or more varied simulation, real-world fine-tuning and testing only on real data.

Illustrative story. Pennant Robotics is a fictional company and this is a made-up scenario, written to show a realistic workflow. The people, numbers and outcomes in it are invented for illustration and are not a Vi3W customer's results. The tools, steps and Vi3W features are real.

Day one

Pennant Robotics is a fictional startup whose mobile robot moves trays around hospital storerooms. In simulation it achieved near-perfect grasps across thousands of runs. On the first real day it missed a third of its picks, knocked over a box of gloves and stopped dead in front of a shiny steel trolley.

The engineers called it "the gap". Everyone in robotics does.

Two kinds of gap

The visual gap. Simulated images are cleaner than real ones. Real cameras add noise, blur and auto-exposure surprises; real objects are scuffed, labelled and reflective. Pennant's simulator had clean, matte, catalogue-perfect boxes. The real storeroom had shrink-wrap and steel.

Lab equipment for robotics testing
Photo: public domain / CC0, via Openverse.

The physics gap. Simulated friction, contact and timing are approximations. Real boxes are lighter or heavier than their models, real cardboard deforms, and real motors respond with delays.

How Pennant narrowed it

The team fixed the visual side first, because it was the cheapest:

  1. Model the real objects. Instead of generic boxes, they photographed the actual stock (glove boxes, saline bags, gauze packs) and turned each into a textured model with Vi3W's image to 3D.
  2. Add the nasty materials. Shrink-wrapped and metallic variants were made with New paint job, retexturing the same shapes by text.
  3. Randomise everything else. Lighting, camera noise and clutter were varied per frame. This is domain randomization.
  4. Keep physics proxies simple. Clean shape produced lighter meshes, and simple colliders kept contact stable.

On the physics side, they measured real masses and friction for the top 20 items and randomised the rest within plausible ranges.

Measuring the gap honestly

The rule that changed everything: no success rate counted unless it came from the real storeroom. The team kept a fixed real-world test set of 200 picks and ran it after every change. Simulation numbers were used only to decide what to try next.

What changed

In this illustrative story, the real success rate climbed steadily over a few weeks of this loop. The steel trolley stopped being scary once shiny metal appeared in training. The team's takeaway was that the gap is not one problem. It is a list of specific mismatches, and each one can be found and fixed.

Lessons you can steal

  • Write down every real failure and ask what the simulator didn't show.
  • Use your real objects, not stand-ins. Photos of your actual stock are the fastest route.
  • Vary what you can't model exactly.
  • Report only real-world numbers to anyone outside the team.

For more depth, see synthetic data for object detection and custom assets in Isaac Sim.

Make your simulator look like your floor

Photograph five real objects and bring them in. Open Vi3W.

Frequently asked questions

what is sim to real gap

The drop in performance when a model or robot controller trained in simulation is used in the real world, caused by differences in visuals, sensors and physics. Teams narrow it with better or more varied simulation and real-world fine-tuning.

Last reviewed