Measure the simulation-to-hardware gap

Turn transfer assumptions into experiments on sensing, timing, dynamics, and control interfaces.

Exercise brief·Advanced·3 min read

Opening the Python editor…

Requirements and learning goals

Before you start

  • A tested simulated controller
  • Robot interface documentation

You will be able to

  • Identify transfer assumptions
  • Design bounded commissioning steps
  • Separate randomization from validation

The browser exercise above works without extra setup. The project brief below assumes the listed prerequisites and gives you a task and checks to perform. Need a guided first project?

The is the difference between how your simulator and physical robot behave. Sensor noise, delay, friction, and different control interfaces can break a that worked in simulation. This lesson turns those differences into measurements, so you can decide what must change before attempting a physical demonstration.

Deploy the sensor reader to a managed simulator first, then use the same deployment workflow on hardware. Compare interfaces and measurement errors before enabling actions.

Turn assumptions into measurements

List differences in sensing, timing, dynamics, and control interfaces. For each, record the simulated value, physical measurement, and supported range. Unknown values remain unknown.

A delay already moves a robot before braking begins. This illustrative budget combines travel during delay, measured braking distance, and position uncertainty:

speed = 0.4
observation_age = 0.15
command_delay = 0.05
braking_distance = 0.12
position_uncertainty = 0.08
margin = speed * (observation_age + command_delay)
margin += braking_distance + position_uncertainty
print(round(margin, 3))  # 0.28 meters

This is an exercise, not a stopping guarantee. Measure braking with the intended surface, payload, and command mode.

Checkpoint 1 of 2

A slower camera pipeline raises observation_age from 0.15 to 0.40 seconds. The other values stay the same. What is the new margin?

Commit to an answer. Every choice explains itself.

Transfer in stages

First inspect physical sensors with actuation disabled. Check units, frames, timestamps, joint ordering, and command modes. Next compare predicted actions without sending them. Only then use the robot's prescribed supervised commissioning procedure for bounded motion and stop tests.

Wendy's sim-to-real guide preserves a deployment workflow while requiring physical interface checks. Reusing code does not remove those checks.

Perfect simulated readings hide random noise, fixed bias, drift, , dropouts, and delayed delivery. Cameras also change with lighting, blur, and exposure. A filter may reduce noise while adding lag; it cannot repair wrong calibration.

Use the imperfect-sensor exercise, then choose noise and timing ranges from hardware recordings. Randomize plausible friction and lighting too. Randomization does not validate transfer or fix a reversed axis.

Checkpoint 2 of 2

A policy trained with randomized friction and lighting succeeds in every simulated trial. On the robot, one joint's positive direction is opposite to the simulator's. Which step finds this before the robot moves?

Commit to an answer. Every choice explains itself.

Common snag: mistaking a successful simulation for hardware evidence. The warehouse demo explicitly remains simulated.

Finish with what transferred, what needed an adapter, and what remains untested. Optional extension: target the largest measured mismatch with one controlled experiment.

Can you do each of these?

  • Identify transfer assumptions
  • Design bounded commissioning steps
  • Separate randomization from validation

0 of 2 checkpoints solved. Try checkpoint 1

Previous: Evaluate and replay a policy as a complete system
All lessons in this topic
  1. 1. Define observations, actions, and rewards
  2. 2. Test a policy with imperfect sensors
  3. 3. Train a small policy and keep the experiment reproducible
  4. 4. Learn from demonstrations without copying hidden state
  5. 5. Evaluate and replay a policy as a complete system
  6. 6. Measure the simulation-to-hardware gap

Ask Wendy

Answers about Wendy and WendyOS

What would you like to know?

Ask about devices, development, and deployment.

Check linked docs for technical details.