How lecar-lab/falcon works
FALCON trains and evaluates force-adaptive humanoid locomotion and loco-manipulation policies, then supports simulation and robot deployment. The training path connects task environments to physics simulation and PPO; deployment paths run exported policies with simulated or robot state and action interfaces. The README documents Isaac Gym training and Unitree/Booster sim-to-real support. Some backend and deployment wiring is unsampled, so uncertain links are omitted or marked dashed.
Main entry points: base_task.py Base task · ppo.py PPO · base_policy.py Runtime policy · train_agent.py Training entry
Components 33
Training workflow
- Training entry
humanoidverse/train_agent.py - Evaluation entry
humanoidverse/eval_agent.py - PPO
humanoidverse/agents/ppo/ppo.py - Decoupled PPO
humanoidverse/agents/decouple/ppo_decoupled_wbc_ma.py - Policy networks
humanoidverse/agents/modules/ppo_modules.py - Rollout storage
humanoidverse/agents/modules/data_utils.py
Robot environments
- Base task
humanoidverse/envs/base_task/base_task.py - Legged robot task
humanoidverse/envs/legged_base_task/legged_robot_base_ma.py - Locomotion task
humanoidverse/envs/locomotion/locomotion_ma.py - Stand task
humanoidverse/envs/decoupled_locomotion/decoupled_locomotion_stand_ma.py - Force-adaptive task
humanoidverse/envs/decoupled_locomotion/decoupled_locomotion_stand_height_waist_wbc_ma.py - Force variation
humanoidverse/envs/decoupled_locomotion/decoupled_locomotion_stand_height_waist_wbc_ma_diff_force.py
Physics simulation
- Simulator interface
humanoidverse/simulator/base_simulator/base_simulator.py - Isaac Gym backend
humanoidverse/simulator/isaacgym/isaacgym.py - Isaac Sim backend
humanoidverse/simulator/isaacsim/isaacsim.py - Genesis backend
humanoidverse/simulator/genesis/genesis.py - Terrain utilities
humanoidverse/envs/env_utils/terrain.py
Policy deployment
- Runtime policy
sim2real/rl_policy/base_policy.py - Locomotion policy
sim2real/rl_policy/dec_loco/dec_loco.py - Loco-manip policy
sim2real/rl_policy/loco_manip/loco_manip.py - Deployment simulator
sim2real/sim_env/base_sim.py - Loco-manip simulator
sim2real/sim_env/loco_manip.py - Robot interfaces
sim2real/utils/robot.py - SDK bridges
sim2real/utils/sdk2py_bridge/base/basic_sdk2py_bridge.py - Command senders
sim2real/utils/comm/command_sender - State processors
sim2real/utils/comm/state_processor - Arm inverse kinematics
sim2real/utils/arm_ik/robot_arm_ik.py
Shared runtime
- Motion library
humanoidverse/utils/motion_lib - Training metrics
humanoidverse/utils/average_meters.py - Tensor utilities
humanoidverse/utils/torch_utils.py - Rotation utilities
isaac_utils/isaac_utils/rotations.py - Deployment math
sim2real/utils/math.py
Other components
- Researcher
Connections 37
- Researcher → Training entry: starts training
README.md - Researcher → Evaluation entry: evaluates checkpoint
README.md - Training entry → Base task: instantiates task
humanoidverse/train_agent.py - Training entry → PPO: instantiates algorithm
humanoidverse/train_agent.py - Training entry → Isaac Gym backend: selects backend
README.md - Evaluation entry → Base task: instantiates task
humanoidverse/eval_agent.py - Evaluation entry → PPO: loads algorithm
humanoidverse/eval_agent.py - PPO → Base task: collects experience
humanoidverse/agents/ppo/ppo.py - PPO → Policy networks: builds policies
humanoidverse/agents/ppo/ppo.py - PPO → Rollout storage: stores samples
humanoidverse/agents/ppo/ppo.py - Decoupled PPO → Policy networks: builds agents
humanoidverse/agents/decouple/ppo_decoupled_wbc_ma.py - Decoupled PPO → Rollout storage: stores samples
humanoidverse/agents/decouple/ppo_decoupled_wbc_ma.py - Decoupled PPO → Base task: trains against
humanoidverse/agents/decouple/ppo_decoupled_wbc_ma.py - Base task → Simulator interface: creates environments
humanoidverse/envs/base_task/base_task.py - Legged robot task → Base task: extends task
humanoidverse/envs/legged_base_task/legged_robot_base_ma.py - Locomotion task → Legged robot task: extends task
humanoidverse/envs/locomotion/locomotion_ma.py - Force-adaptive task → Stand task: extends task
humanoidverse/envs/decoupled_locomotion/decoupled_locomotion_stand_height_waist_wbc_ma.py - Force variation → Force-adaptive task: extends task
humanoidverse/envs/decoupled_locomotion/decoupled_locomotion_stand_height_waist_wbc_ma_diff_force.py - Isaac Gym backend → Simulator interface: implements backend
humanoidverse/simulator/isaacgym/isaacgym.py - Isaac Gym backend → Terrain utilities: uses terrain
humanoidverse/simulator/isaacgym/isaacgym.py - Simulator interface → Isaac Sim backend: backend option
- Simulator interface → Genesis backend: backend option
- Runtime policy → Robot interfaces: reads robot setup
sim2real/rl_policy/base_policy.py - Locomotion policy → Runtime policy: extends runtime
sim2real/rl_policy/dec_loco/dec_loco.py - Loco-manip policy → Locomotion policy: extends policy
sim2real/rl_policy/loco_manip/loco_manip.py - Loco-manip policy → Arm inverse kinematics: uses arm IK
sim2real/rl_policy/loco_manip/loco_manip.py - Deployment simulator → Robot interfaces: uses robot config
sim2real/sim_env/base_sim.py - Deployment simulator → SDK bridges: uses SDK bridge
sim2real/sim_env/base_sim.py - Loco-manip simulator → Deployment simulator: extends simulator
sim2real/sim_env/loco_manip.py - Runtime policy → Command senders: sends commands
- Runtime policy → State processors: reads robot state
- SDK bridges → Command senders: bridges commands
- SDK bridges → State processors: bridges state
- PPO → Training metrics: tracks metrics
humanoidverse/agents/ppo/ppo.py - Base task → Tensor utilities: uses tensor helpers
humanoidverse/envs/base_task/base_task.py - Legged robot task → Rotation utilities: uses rotations
humanoidverse/envs/legged_base_task/legged_robot_base_ma.py - Runtime policy → Deployment math: uses math helpers
sim2real/rl_policy/base_policy.py