Robot Simulation & Sim2Real

A policy learns to dock a cart in a simulator with a floor of friction 1.0. On a real floor it docks only between 0.86 and 1.20. Train it on many floors and it docks from 0.46 up, but slower. Let it feel the floor and it docks everywhere.

Pick a policy and drag the real friction. Watch where the cart stops. Then we build, piece by piece, why we simulate, what the simulator gets wrong, and the four tools that carry a policy across the gap.

You need what a policy is (Lecture 1) and a little Python. No control theory. We build the rest from zero.

Lecture 21 of 25 in Introduction to Robot Learning, CMU 16-831 (Spring 2024), taught by Guanya Shi. Slides on the course lectures page. Every idea is re-taught here in our own words and devices. Previous: Lecture 20, Exploration.

Dock the cart on a real floor

1.00

Illustrative toy, replayed at half speed. The cart arrives at 3 m/s and must stop in the 15 cm dock before the wall. Braking decelerates at friction × 9.81 m/s². "Many floors" trained on frictions 0.5 to 1.5. "Feels the floor" taps the brake for 0.12 s and reads the friction from how fast it slows. The strip below the track shows every friction at once.

Chapter 0

Perfect in Sim, Broken in Reality

Add the small differences of a real robot one at a time, and watch a tuned policy stop working

You train a policy for a week. In simulation it never fails. You load the same weights onto the real robot, and it fails in seconds. Nothing in the network changed. The world around it did.

The reality gap is the difference between the simulated world a policy trained in and the real world it runs in. Sim2real is the work of making a policy trained in simulation work on hardware.

Add the real world, one difference at a time

A controller tuned in the simulator drives a cart to the yellow line. Pink is the simulator. Teal is the real cart. Switch on the differences a real robot has.

Illustrative toy. The controller pushes at 100 per metre of error and brakes at 12 per m/s of speed, tuned on a 1 kg cart. Sticky friction is a 3 N force that resists motion.

The late motor does the most harm: alone it takes the overshoot from 8 cm to 27 cm. All four together give 30 cm and leave the cart 1.1 cm off the line. A real robot has all of them at once.

The hero shows the same failure in one number. The cart's policy learned where to start braking on a floor of friction 1.0. How far does a cart slide once it brakes? Call its speed v, the floor's friction μ, and gravity g.

Say it aloud

d equals v squared, divided by two times mu times g.

d
d the stopping distance: how far the cart slides after the brakes go on, in metres.
v2
v squared the speed when braking starts, times itself. Here v is 3 m/s.
μ
mu the friction of the floor, from about 0.2 (wet tile) to 1.5 (grippy rubber). No unit.
g
g gravity, 9.81 m/s². Friction times g is how fast the cart slows.
In plain words

Square the speed v. Divide by two, by the friction mu and by g. The result d is the slide. Halve mu and the slide doubles.

With numbers

With the toy's numbers: v = 3 m/s and μ = 1.0 give d = 9 / (2 × 1.0 × 9.81) = 0.459 m. On a real floor of μ = 0.6, d = 9 / 11.77 = 0.765 m. The cart slides 31 cm past its aim, through the 7.5 cm of margin, into the wall.

The failure, as symptom, measurement and fix

The symptom is a policy that scores well in simulation and fails on hardware. To measure it, run the same policy in both and log the gap on one number, such as overshoot or final error. The fixes are the rest of this lesson.

The road

  1. Why simulate: the data problem, and what a simulator gives for free.
  2. Two kinds of mismatch: wrong numbers, and missing physics.
  3. Domain randomization: train on many worlds (the hero's "Many floors").
  4. How wide to randomize: the price of a range that is too wide.
  5. System identification: fit the simulator to real data.
  6. The privileged teacher: learn to feel the world (the hero's "Feels the floor").
  7. Learn above the gap: higher-level policies and real-world fine-tuning.
  8. Swift: the tools together on a racing drone.
  9. The field guide: terms, numbers, checklist, code and credit.
A policy is perfect in simulation and collapses on the real robot with identical weights. What is the best description?

Chapter 1

Why Simulate at All?

Price the data a policy needs in robot days, then in simulator seconds

If simulation creates the reality gap, why not train on the real robot? Because reinforcement learning needs a lot of experience. A walking policy can need ten million steps.

How long does that take? Call the number of steps N, the steps per second of one robot f, and the number of robots that run at once R.

Say it aloud

T equals N divided by f times R.

T
T the wall-clock time to collect the data, in seconds.
N
N the number of environment steps the policy needs.
f
f the steps per second of one robot or one simulated copy. 50 Hz is typical for control.
R
R the number of robots or simulated copies that run at the same time.
In plain words

Multiply the rate f by the number of copies R to get steps per second. Divide the steps you need, N, by that. The result is T.

With numbers

With made-up numbers: N = 10,000,000, f = 50, R = 1 gives T = 200,000 s, about 2.3 days of nonstop running. With R = 4,096 simulated copies at the same f, T = 49 s.

Price the data

Set how many steps the policy needs and how many simulated copies run at once. Both bars use 50 steps per second for each copy.

10,000,000
4,096

The equation only. Real simulators often step faster than real time, which makes the gap larger still.

Time is one of four gifts. The lecture lists them.

Simulated data isWhat it buys
Cheap, fast, scalableThousands of copies on one GPU. The lecture cites a quadrotor policy trained in 18 seconds on a laptop.
SafeRL explores with random actions. In simulation a crash costs nothing.
LabelledThe simulator knows the true state: friction under each foot, the wind, a payload's mass.
No wear and tearEvery episode starts with a new robot.

The third gift, free labels, matters most later. A simulator is an oracle: it can tell the policy facts no real sensor can measure. Chapter 6 builds on it.

The failure, as symptom, measurement and fix

The symptom is a project stuck on data: a policy that needs months of robot time. To measure it, price the run with the equation above. The fix is to train in simulation and pay for the reality gap instead.

Which gift of simulated data lets a policy learn from quantities no real sensor can measure, such as the friction under each foot?

Chapter 2

Two Kinds of Mismatch

Turn the simulator's knobs to match real data, and find the gap that no knob can close

A simulator is the world's rule for the next state, written as code. The lecture writes it with one extra input. Call the state at step t st and the action at. The environment parameters e are the numbers that describe this world, such as mass, friction and motor strength.

Say it aloud

s-t-plus-one equals f of s-t, a-t and e.

st+1
s-t-plus-one the next state: here the cart's speed one step later.
f
f the dynamics: the equations of the simulator. Here: speed changes by (push − damping × speed) / mass × Δt.
st
s-t the state now: the cart's speed, in m/s.
at
a-t the action: the push, in newtons.
e
e the environment parameters: here the mass in kg and the damping in N per m/s.
In plain words

Give f the state s-t, the action a-t and the world's numbers e. It returns the next state s-t-plus-one. A wrong e gives a wrong prediction even if f is right.

With numbers

With made-up numbers: speed s-t = 0.5 m/s, push a-t = 2 N, e = (mass 1.0 kg, damping 0.5), Δt = 0.05 s. Next speed = 0.5 + (2 − 0.25) / 1.0 × 0.05 = 0.588 m/s. If the real mass is 1.3 kg, the real speed is 0.567 m/s.

The gap between f-with-our-e and the real world splits two ways, and each wants a different fix.

MismatchWhat is wrongExampleA knob can fix it?
ParametricThe equations f are right. The numbers e are wrong.Mass 2.0 kg in the CAD file, 2.3 kg with cables and batteryYes: fit e, or randomize it
Non-parametricf is missing an effect.Turbulent air around a drone, tyre slip, gear backlashNo: the term is not in f

Fit the simulator to the real cart

Blue dots are the logged speeds of a real cart under a push of 0.5 N and of 2 N. Pink is the simulator. Turn its two knobs, or press Auto-fit. Then switch the real cart.

1.00 kg
0.50

Illustrative toy. The "missing effect" cart has a drag that grows with speed squared (1.5 N per (m/s)²). The simulator has no such term. Auto-fit searches both knobs.

With the wrong number, the best fit is exact: mass 1.30, error 0. With the missing effect, the best fit still misses by about 0.10 m/s. The linear drag cannot bend into the square-law curve for both pushes at once.

The failure, as symptom, measurement and fix

The symptom is a simulator whose error stays above a floor at every setting. To measure it, fit its parameters to logged real data and look at the error left. A floor above the sensor noise means a missing effect: randomize around it, learn a residual, or add the physics.

A drone simulator models thrust as a constant times rotor speed squared and ignores the turbulence the drone stirs up in fast turns. What kind of gap is this?

Chapter 3

Domain Randomization: Reality Is One More Sim

Roll a new world every episode, and score two policies across all of them

Do not tune one simulator to match reality. Change the simulator every episode. Each episode gets a new mass, a new friction, a new motor delay, new textures and new light. One policy must succeed in all of them. This is domain randomization.

The hypothesis. Tobin and colleagues (2017): "With enough variability in the simulator, the real world may appear to the model as just another variation." After 10,000 random worlds, reality is world 10,001.

Their first test was vision. They trained an object detector only on simulated images with odd random textures, light and camera angles. On real photos it located objects to within 1.5 cm. Today people randomize the dynamics, the sensors, the actuators and the visuals.

What does the policy optimise now? Call the environment parameters e, the chance of drawing them p(e), and the score of policy π in world e J(π, e).

Say it aloud

pi-star equals the argmax over pi of the expected value, over e drawn from p of e, of J of pi and e.

π*
pi-star the policy we train: one network for every world.
argmaxπ
the argmax over pi the policy that makes what follows largest.
Ee∼p(e)
the expected value over e drawn from p of e the average over many random worlds. p(e) is the randomization range, here friction from 0.5 to 1.5.
J(π, e)
J of pi and e the score of policy pi in world e. Here 1 if the cart docks, 0 if it does not.
In plain words

Draw a world e from p(e). Run the policy pi and score it with J. Average over many worlds. Train pi to make that average as large as it can.

With numbers

With the hero's cart and three equally likely worlds, friction 0.6, 1.0 and 1.4. "One floor" scores J = 0, 1, 0: average 0.33. "Many floors" scores 1, 1, 1: average 1.0. It wins on the objective the real world grades.

Roll worlds, then deploy

Each press draws 20 floors from the pink training range and runs both policies on each. Then deploy both to the real floor, which neither saw.

Illustrative toy: the hero's cart. Worlds are uniform on friction 0.5 to 1.5. The real floor has friction 0.72.

Why does it work? The lecture calls domain randomization an approximation of robust control: one controller that works for a whole set of systems. Robust control proves a worst-case bound. Randomization trains on the set and lets the policy find behaviour that survives all of it.

The code lab trains two policies, one on a single gain and one on a range, and scores them on held-out "real" gains.

The failure, as symptom, measurement and fix

The symptom is a policy that transfers well to some real conditions and fails on others. To measure it, test on held-out worlds and report the worst case, not the average. The fix is to randomize the parameters that differ in the failing cases.

The slogan of domain randomization is "the real world is just sim number 10,001". What does it mean?

Chapter 4

How Wide to Randomize

Widen the training range, and watch the policy first reach reality, then slow down

Randomization has a price, and it hides in the width of the range. It fails two ways.

  1. Too narrow. The real value lies outside the range. The policy never trained near reality, so it fails as in Chapter 0.
  2. Too wide. One policy must work from a feather to a boulder. The right action in one world is wrong in another. It settles for a blunt compromise, or it never trains.

The cart shows the blunt compromise in physics. Trained on frictions from μlo up, the safe policy brakes as if the floor were μlo. On a grippier real floor it stops short and must creep the rest. How far short? Call the speed v, gravity g, the lowest friction in the range μlo and the real friction μ.

Say it aloud

Delta equals v squared over two g, times one over mu-lo minus one over mu.

Δ
delta how far short of its aim the cart stops, in metres. It creeps this distance at 0.3 m/s.
v2 / 2g
v squared over two g the slide on a floor of friction 1. For v = 3 m/s it is 0.459 m.
1/μlo
one over mu-lo the slide factor the policy plans for: the slipperiest floor in its range.
1/μ
one over mu the slide factor of the real floor.
In plain words

The planned slide is v squared over two g, divided by mu-lo. The real slide uses mu instead. Delta is the difference. A wider range lowers mu-lo, so Delta grows and the creep takes longer.

With numbers

With the toy's numbers: v = 3 m/s, μlo = 0.5, real μ = 0.7. Δ = 0.459 × (2 − 1.43) = 0.26 m. At 0.3 m/s the creep adds 0.87 s. If μlo were above 0.7, Δ would turn negative: the cart slides into the wall.

Find the sweet spot

The policy trains on frictions from 1 − width to 1 + width. Drag the width. The curve counts docks per minute on the real floor; zero means it crashed.

0.50
0.70

Illustrative toy: the hero's cart. Each run adds 1 s to reset. In this toy a wide range only slows the policy; a real network can also fail to train.

The best width is the smallest range that still contains reality. Narrower crashes; wider creeps. The lab sweeps the same trade on a different toy.

The failure, as symptom, measurement and fix

The symptom is a policy that is safe but slow, or that does not converge in training. To measure it, sweep the width and plot real success against it. The fix is a range wide enough to contain reality and no wider; system identification (Chapter 5) tells you where reality is.

A team randomizes a quadruped's mass from 1 kg to 50 kg. It walks worse on the real 12 kg robot than with a narrower range. Why?

Chapter 5

System Identification: Make the Sim Match

Log the real robot, then solve backward for the number the simulator should use

Randomization makes the policy tolerate the gap. System identification shrinks the gap: it measures the real robot and sets the simulator's numbers to match.

  1. Log real runs. Send commands to the real robot. Record what it did.
  2. Fit the parameters. Find the mass, friction or motor gain that makes the simulator reproduce the logs.
  3. Train again in the tuned simulator. The parametric gap is now small.

Take the simplest case: one motor gain. You send command ui and log response yi, for runs i = 1 to n. The robot obeys y = g · u plus sensor noise, and you want the gain ĝ that makes the squared errors smallest.

Say it aloud

g-hat equals the sum over i of u-i times y-i, divided by the sum over i of u-i squared.

ĝ
g-hat the fitted gain the simulator will use.
Σi ui yi
the sum over i of u-i times y-i multiply each command by its logged response, then add them all.
Σi ui2
the sum over i of u-i squared square each command, then add them all.
In plain words

Multiply each command u-i by its response y-i and add. Divide by the sum of the squared commands. That ratio g-hat is the least-squares gain: no other number makes the total squared error smaller.

With numbers

With made-up logs: commands 0.5, 1.0, −0.8 and responses 0.70, 1.33, −1.10. The top is 0.35 + 1.33 + 0.88 = 2.56. The bottom is 0.25 + 1 + 0.64 = 1.89. g-hat = 2.56 / 1.89 = 1.35, against a simulator default of 1.0.

Where does it come from? The total squared error is the sum of (y-i − g · u-i) squared. It is a bowl in g. Set its slope to zero and solve for g: the ratio above.

Fit the gain to real logs

Blue dots are 40 logged real runs. The pink line is the simulator's prediction for the gain you set. Drag it, or press Fit. Raise the noise and fit again.

1.00
0.10

Illustrative toy. The real gain is 1.35, hidden from the fit. Commands are uniform from −1 to 1.

System ID has a hard limit: it fixes only wrong numbers. If the simulator has no aerodynamics term, no fit adds one (Chapter 2). So fit what you can model, and randomize around what you cannot. The lecture calls the pair robust adaptive control.

The failure, as symptom, measurement and fix

The symptom is a fitted simulator that still disagrees with the robot. To measure it, fit on some logs and test on others. If the error on held-out logs stays high, the model is missing an effect: add a residual model or randomize.

System identification fits the simulator's parameters to real data. What can it not do?

Chapter 6

The Privileged Teacher and Its Student

Let a teacher cheat with the simulator's truth, then train a student to guess that truth from its own history

A randomized policy ignores which world it is in. A better policy would work out the world and adjust. That is an approximation of adaptive control, and it stacks with randomization.

The trouble: to adapt to the friction or the wind, the policy must know it. The real robot has no friction sensor. The fix leans on Chapter 1's free labels and runs in three phases.

  1. Teacher, in simulation. Train a privileged teacher: a policy that reads the true parameters e from the simulator. RL is easy with perfect information.
  2. Student, in simulation. Train a student to copy the teacher using only what the real robot senses: its recent joint angles, IMU readings and actions. It must infer e from that history. This is imitation learning.
  3. Deploy the student. It reads its own history, estimates the world, and acts as the teacher would.

The student need not copy actions. In RMA, it copies the teacher's compressed code of the world. Call the teacher's code for world e z(e), the student's guess from history h ẑ(h), and the number of training samples N.

Say it aloud

L equals one over N times the sum over i of z-hat of h-i minus z of e-i, squared.

L
L the student's loss: how far its guesses are from the teacher's codes, on average.
1/N
one over N divide by the number of samples to get an average.
Σi
the sum over i add one term for each simulated moment i.
ẑ(hi)
z-hat of h-i the student's guess, computed from the sensor history h-i alone.
z(ei)
z of e-i the teacher's code, computed from the true parameters e-i that only the simulator knows.
In plain words

For each moment i, take the student's guess z-hat from history and the teacher's code z from the truth. Square the difference. Average over all N moments. Train the student to make L small.

With numbers

With made-up numbers: two moments. Teacher codes 0.8 and −0.3, student guesses 0.6 and −0.1. Each miss is 0.2, each square 0.04. L = (0.04 + 0.04) / 2 = 0.04.

Teacher, student, and a fixed policy

Warm is the hidden wind. The teacher reads it directly. The student averages a window of noisy blue measurements into the pink estimate. Set the window length.

1.20 s

Illustrative toy over 10 s. Each measurement of the wind from the robot's motion carries noise of 0.35 N. The error bar is the average miss of the wind estimate; a fixed policy assumes no wind.

A short window follows the noise. A long window lags behind every change. Near 0.3 s the student's error is about a quarter of the fixed policy's. Real students use a learned network over the history, but they face the same trade.

The pattern recurs across the field: Learning by Cheating for driving, RMA for legged robots, Agile But Safe for safe running, DATT for drones. Each distils privileged facts into something the robot can compute from its own senses.

The failure, as symptom, measurement and fix

The symptom is a student that matches the teacher in simulation and drifts on the robot. To measure it, log the student's estimate against any ground truth you can get, such as a known payload. The fix is to randomize the sensor noise and delay the student sees, so its history looks like the robot's.

Why train a privileged teacher and then a sensor-only student, instead of training the student with RL directly?

Chapter 7

Learn Above the Gap

Let the network choose commands, not forces, and let a classical controller absorb the mismatch

Simulators are least accurate at the lowest level: how a foot's contact force turns into motion in the next millisecond. So do not learn that level. Learn a higher-level policy that outputs abstract commands, such as a body velocity or a gait timing. A classical controller with good physics turns them into forces.

Forces or commands

Both policies learned to move a 1 kg robot 1 m in 2 s in simulation. Purple replays the forces. Teal sends a motion plan to a low-level feedback controller. Change the real mass.

1.30 kg

Illustrative toy. The force policy pushes 1 N for 1 s, then −1 N for 1 s. The low-level controller adds 8 per m/s of speed error and 3 per metre of position error.

Work the number for the force policy. On a 1.3 kg robot every acceleration shrinks by 1/1.3. The motion keeps its shape and scales, so it stops at 1/1.3 = 0.77 m: 23 cm short. The feedback controller sees the lag and pushes harder. It ends within 1 cm.

This is the design of CAJun, a quadruped that jumps again and again. A learned policy picks the body velocity, the gait timing and a swing-leg correction. A model predictive controller solves for the ground forces. The lecture reports that it needs little randomization and trains in about 20 minutes.

When the gap still bites: fine-tune on the real robot

No tool closes the gap alone. A common last step is real-world fine-tuning: start from the simulation policy and keep learning from a little real data. The risky early exploration already happened in simulation.

ToolWhat it does to the gap
Domain randomizationMakes the policy tolerate it
System identificationShrinks it
Learning to adaptSenses it and cancels it online
Higher-level policyKeeps the learned part away from it
Real-world fine-tuningRemoves what is left, with real data

The failure, as symptom, measurement and fix

The symptom is an end-to-end torque policy that is jerky or unstable on hardware. To measure it, compare commanded and achieved motion at the joints. The fix is to move the learned part up a level, behind a controller you trust.

CAJun learns velocity and gait commands and uses a model predictive controller for the forces. Why does this shrink the gap?

Chapter 8

Swift: A Drone That Beat the Champions

Race a drone through gates in air it never trained in, and add the tools one at a time

In 2023 a system called Swift beat human world champions at first-person drone racing (Kaufmann and colleagues, Nature). Its policy trained with RL in simulation. It won several races against each of three champions and set the fastest recorded race time.

Racing is a hard test of sim2real. At the limit of flight the air is turbulent and hard to model, a late reaction misses a gate, and the camera is noisy. Swift used the tools of this lesson.

  1. Train in simulation (Chapter 1). No one can explore at racing speed on real hardware.
  2. Fit the gap from real flights (Chapter 5). Swift logged real flights and fitted residual models: learned corrections for what the simulator got wrong in dynamics and perception. Then it trained further in the corrected simulator.
  3. Estimate online (Chapter 6). A camera and an inertial sensor estimate the drone's state in flight, so the policy acts on where it is now.

Race through air you never trained in

The teal drone chases the bright yellow gate. Warm arrows are air the simulator never had. Raise it, then switch on the two tools.

1.00

Illustrative toy, not Swift's controller. The air has a steady part, a side push and a lift loss at speed, that a residual model learns from logs. It also has a slow swirl that only an online estimate can follow. A gate missed for 2.4 s counts as a miss.

Try this order at full air. With no tools the drone clears about 4 gates in 24. The residual model alone clears about 14 in 24. The online estimate alone clears them all, at about 93 gates a minute. Both together reach about 127 a minute: the residual model removes the steady part at once, so the estimate only chases the swirl.

The failure, as symptom, measurement and fix

The symptom is a policy that flies well slowly and misses gates at speed. To measure it, log real flights and compare them with the simulator's prediction for the same commands. The fix is Swift's: fit the steady part of that difference, and estimate the rest online.

In the toy at full air, both tools together clear gates faster than the online estimate alone. Why?

Chapter 9

The Field Guide

Keep the terms, the numbers, a checklist and the core recipe in code

Every method here answers one question: how does a policy born in simulation survive the real world? They attack the gap from different sides, and they stack.

Terms and numbers

TermOne lineNumber to remember
Reality gapThe difference between the training simulator and the real world.Cart: docks only for friction 0.86 to 1.20
Stopping distanced = v² / (2μg).3 m/s: 0.459 m at μ 1.0, 0.765 m at 0.6
Data costT = N / (f · R).10M steps at 50 Hz: 2.3 days, or 49 s on 4,096 copies
Parametric mismatchRight equations, wrong numbers e.Fit error goes to 0
Non-parametric mismatchAn effect missing from f.Fit error floor 0.10 m/s
Domain randomizationMaximise the average score over random worlds.Average 0.33 vs 1.0 on three floors
Range widthΔ = (v² / 2g)(1/μlo − 1/μ).0.26 m short, 0.87 s of creep
System identificationĝ = Σ u y / Σ u².2.56 / 1.89 = 1.35
Privileged teacherThe student matches the teacher's code from history: L = average squared miss.L = 0.04
Higher-level policyLearn commands; a classical controller makes the forces.Force replay 23 cm short at 1.3 kg; feedback within 1 cm

Before you put a simulation policy on a robot

  1. List what differs between sim and real: dynamics, sensors, timing, visuals.
  2. Fit the numbers you can measure (system ID). Check the error on held-out logs.
  3. Randomize the rest, wide enough to contain the fitted value and no wider.
  4. If the best behaviour depends on a hidden parameter, train a privileged teacher and a student.
  5. Learn at the highest level a trusted controller allows.
  6. Test on the real robot on the worst case, then fine-tune with a little real data.

The core recipe in code

pythondef train_randomized(policy, sim, ranges, episodes):
    for ep in range(episodes):
        e = {k: rng.uniform(lo, hi) for k, (lo, hi) in ranges.items()}  # a new world each episode
        sim.set_params(e)                       # mass, friction, delay, noise ...
        traj = rollout(policy, sim)              # s_{t+1} = f(s_t, a_t, e)
        policy.update(traj)                     # RL step on the average over worlds

def fit_gain(u, y):                          # system identification, one parameter
    return (u @ y) / (u @ u)                 # least squares through the origin

Keep going on this site

The takeaway. Simulate for the data. Fit what you can measure, randomize what you cannot, let the robot feel the rest, and learn above the physics you trust.

This lesson follows Lecture 21, "Robot Simulation and Sim2Real", of CMU 16-831 Introduction to Robot Learning, Spring 2024, taught by Guanya Shi. The slides are on the lectures page.

Papers named here: Tobin et al., Domain Randomization for Transferring Deep Neural Networks from Simulation to the Real World (2017); Kumar et al., RMA: Rapid Motor Adaptation for Legged Robots (2021); Kaufmann et al., Champion-level drone racing using deep reinforcement learning (Nature, 2023). The cart, drone and other toys are our own.

Now press Present or Teach. From memory, explain why we simulate, the two mismatches, and the four tools. Then go back to the cart, set the friction to 0.4, and say why only one policy docks.

Introduction to Robot Learning · CMU 16-831 · Lecture 21: Robot Simulation & Sim2Real
Next: Safe RL · Back to Gleams