Sim2Real Visual Locomotion Policy on Spot

Overview

Training a policy for Boston Dynamics' Spot in simulation and getting it to work on the real robot, including climbing over stairs and blocks using depth-camera input.

Main challenges

  • Infrastructure setup
    • Modifying rsl_rl
    • Writing the deployment code for the real robot
  • Training recipe
    • Model architecture
    • Observation alignment between sim and real
    • Modeling the right dynamics and delays
0:00 / 0:00
Teacher policy in the simulated training environment.

Observation alignment

The depth images the policy sees in simulation have to look like the ones it gets on the real robot. Both are processed the same way, so the raw differences between sim and real mostly wash out.

Raw, realRaw, simRealSim
Raw
Processed, realProcessed, simRealSim
Processed

Modeling observation delay

  • The models do well under high camera delay.
    • Camera delay was modeled as 1.7 s.
    • There was no noticeable drop at 1 s or 2 s; performance got worse at 10 s.
  • The model puts heavy weight on proprioception.
    • Running the model at 1 Hz breaks it.
    • Adding 0.1 s of observation delay to proprioception also breaks it.
0:00 / 0:00

0.1 s of delay on proprioception breaks the policy.

Model architectures

Four policy architectures on the real robot: the teacher, a CNN, an LSTM and a ViT-style attention model.

0:00 / 0:00

Teacher policy on the real robot.