How leggedrobotics/pace-sim2real works
PACE is an Isaac Lab sim-to-real framework: collect excitation data, fit physical actuator/joint parameters with CMA-ES, then use the adapted models and task configurations for simulation and locomotion evaluation. The graph includes the documented data-to-fitting workflow and the sampled environment, actuator, optimizer, and RL play components. Training and plotting are documented by the tree/README but their internal relationships are not expanded beyond indexed references.
Main entry points: fit.py Parameter fitting · train.py RL training · play.py Policy evaluation · cma_es.py CMA-ES optimizer
Components 18
System identification
- Excitation collection
scripts/pace/data_collection.py - Excitation data
- Parameter fitting
scripts/pace/fit.py - CMA-ES optimizer
source/pace_sim2real/pace_sim2real/optim/cma_es.py - Fitted parameters
Simulation model
- PACE environment
source/pace_sim2real/pace_sim2real/tasks/manager_based/pace/pace_sim2real_env_cfg.py - ANYmal configuration
source/pace_sim2real/pace_sim2real/tasks/manager_based/pace/anymal_pace_env_cfg.py - MDP rewards
source/pace_sim2real/pace_sim2real/tasks/manager_based/pace/mdp/rewards.py - Actuator configuration
source/pace_sim2real/pace_sim2real/utils/pace_actuator_cfg.py - Delayed DC motor
source/pace_sim2real/pace_sim2real/utils/pace_actuator.py
Locomotion workflows
- RL training
scripts/rsl_rl/train.py - PPO agent config
source/pace_sim2real/pace_sim2real/tasks/manager_based/pace/agents/rsl_rl_ppo_cfg.py - RL CLI options
scripts/rsl_rl/cli_args.py - Policy evaluation
scripts/rsl_rl/play.py - Trajectory plotting
scripts/pace/plot_trajectory.py
Package support
- Project root lookup
source/pace_sim2real/pace_sim2real/utils/paths.py - Environment registration
source/pace_sim2real/pace_sim2real/tasks/__init__.py
Other components
- Engineer
Connections 18
- Engineer → Excitation collection: runs collection
README.md - Excitation collection → Excitation data: stores data
README.md - Engineer → Parameter fitting: runs fitting
README.md - Parameter fitting → Excitation data: loads data
scripts/pace/fit.py - Parameter fitting → CMA-ES optimizer: configures optimizer
scripts/pace/fit.py - CMA-ES optimizer → Fitted parameters: writes results
README.md - CMA-ES optimizer → PACE environment: updates simulation
source/pace_sim2real/pace_sim2real/optim/cma_es.py - ANYmal configuration → PACE environment: specializes task
source/pace_sim2real/pace_sim2real/tasks/manager_based/pace/anymal_pace_env_cfg.py - PACE environment → MDP rewards: configures reward
source/pace_sim2real/pace_sim2real/tasks/manager_based/pace/pace_sim2real_env_cfg.py - ANYmal configuration → Actuator configuration: configures actuator
source/pace_sim2real/pace_sim2real/tasks/manager_based/pace/anymal_pace_env_cfg.py - Actuator configuration → Delayed DC motor: selects implementation
source/pace_sim2real/pace_sim2real/utils/pace_actuator_cfg.py - RL training → RL CLI options: uses options
scripts/rsl_rl/train.py - RL training → Environment registration: imports tasks
scripts/rsl_rl/train.py - Policy evaluation → RL CLI options: uses options
scripts/rsl_rl/play.py - Policy evaluation → Environment registration: imports tasks
scripts/rsl_rl/play.py - RL training → PPO agent config: loads agent config
- Policy evaluation → Trajectory plotting
- Parameter fitting → Project root lookup