Log inStart free
LESSON 21.07 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW

Sim-to-real transfer

Watch a controller tuned in a simulator meet the real arm.


Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 3 controls and 3 checks, in this lesson and every other.

Go Pro · $8.25/mo
EXPLAINER · 21.07 · SIM TO REALBASIC SIM · GAIN 320 · 0.8 CM
01
Stage 1 of 6 · Train in sim
The basic simulator scores 6 gains on both reaches. Gain 320 has the lowest tracking error, 0.8 cm.
Explain it simply

A gain is how hard the motor pushes back toward the planned path. The search tries 6 gains in the basic simulator, on both targets. Each bar on the right shows how far the hand strays from the planned path. Gain 320 has the shortest bar, so the search picks it.

Bars of tracking error for 6 gains in the basic simulator. Gain 320 is lowest at 0.8 cm.

simulator, arm posereal armgains, fitserrors, hits
tablereachlowcm01020304014.2109.5205.8403.2801.71600.8320sim picksimgain k, N·m per radtracking error per gain, cmbasic simulator, gain 320k* = 320 · J_sim = 0.8 cmtablereachlowcm01020304014.2109.5205.8403.2801.71600.8320sim picksimgain k, N·m per radtracking error per gain, cmbasic simulator, gain 320k* = 320 · J_sim = 0.8 cm
Toy: the 21.C1 arm; the real arm is simulated too, heavier and with a motor delay
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
k∗=arg⁡min⁡kJsim(k)\sy{k}{param}{k^*} = \arg\min_k \sy{j}{out}{J_{\text{sim}}(k)}
Jsim(320)=0.8 cmJ_{\text{sim}}(320) = 0.8\ \text{cm}

The search keeps the gain with the lowest simulated tracking error.

Common mix-ups

MYTHThe gain that scores best in sim is best on the arm.

The fix, and 1 more mix-up with the diagram to show them, come with Pro.

Predict, then reveal
3 CHECKS · PRO
Q01With the digital twin, does the search still pick gain 320?

Make your guess, then test it in the diagram. All 3 checks come with Pro.

PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
  • 5 more stages and 3 live controls
  • 2 mix-up cards and 3 predict-then-reveal checks
  • Watch it as a narrated video, in three voices
  • Every Pro lesson and capstone · 656 in total

$99 a year, or $15 a month. Cancel any time.