How hybridrobotics/berkeley-humanoid-lite works
Purpose and workspace shape
Berkeley Humanoid Lite is a robotics workspace for learning locomotion policies, validating them in simulation, and operating a physical low-cost humanoid. It follows Isaac Lab’s extension layout: environment/task code is present here, while robot assets and real-robot low-level software are Git submodules at source/berkeley_humanoid_lite_assets and source/berkeley_humanoid_lite_lowlevel.
Primary entry points
Operational flows are script-driven from the repository root:
• PPO training and policy rollout: scripts/rsl_rl/train.py, scripts/rsl_rl/play.py
• MuJoCo sim-to-sim policy execution: scripts/sim2sim/play_mujoco.py
• Sim-to-real visualization/deployment-oriented tooling: scripts/sim2real/visualize.py
• Hardware connectivity, idle, teleoperation, gripper, and solver operations: scripts/teleop/run_teleop.py, scripts/teleop/run_idle.py, scripts/teleop/check_connection.py
Isaac Lab environment and task layer
The installable Python extension under source/berkeley_humanoid_lite/berkeley_humanoid_lite defines the simulator integration and task registration. environments/mujoco.py provides a MuJoCo environment boundary alongside Isaac Lab-oriented tasks. Task discovery begins in tasks/__init__.py and locomotion specialization is rooted at tasks/locomotion/velocity/__init__.py.
Velocity-locomotion MDP
The core learned behavior is commanded-velocity locomotion. Shared environment composition resides in tasks/locomotion/velocity/velocity_env_cfg.py; MDP terms separate reward shaping, episode termination, disturbances/events, and curricula:
• tasks/locomotion/velocity/mdp/rewards.py
• tasks/locomotion/velocity/mdp/terminations.py
• tasks/locomotion/velocity/mdp/events.py
• tasks/locomotion/velocity/mdp/curriculums.py
This is the central boundary between robot/simulator state and the RL agent’s observations, actions, rewards, and resets.
Robot-specific variants and learning configuration
Biped and humanoid variants supply task-level environment parameters and RSL-RL PPO configuration independently:
• tasks/locomotion/velocity/config/biped/env_cfg.py
• tasks/locomotion/velocity/config/biped/agents/rsl_rl_ppo_cfg.py
• tasks/locomotion/velocity/config/humanoid/env_cfg.py
• tasks/locomotion/velocity/config/humanoid/agents/rsl_rl_ppo_cfg.py
Training consumes these task/agent configurations; rollout produces policies for simulation or hardware-facing flows.
Policy artifact and transfer boundary
Pretrained policies are committed as ONNX artifacts in checkpoints/, with deployment metadata/configuration in matching YAML files under configs/, e.g. checkpoints/policy_biped_50hz.onnx and configs/policy_biped_50hz.yaml. This establishes a portable inference boundary: training uses Isaac Lab/RSL-RL, while MuJoCo and downstream real-robot code consume exported policy artifacts plus robot-specific configuration. motor_configuration.json is a root-level motor mapping/configuration artifact relevant to hardware control.
Runtimes and infrastructure
The project targets Python 3.11 and packages the workspace through pyproject.toml plus the extension manifest source/berkeley_humanoid_lite/pyproject.toml. Material runtimes are Isaac Lab for training/task simulation, RSL-RL for PPO, MuJoCo for sim-to-sim execution, ONNX for policy inference, and the physical robot’s low-level submodule. Containerized setup is provided by docker/Dockerfile and docker/docker-compose.yaml.
Main entry points: velocity_env_cfg.py Velocity environment · berkeley_humanoid_lite Isaac Lab extension · train.py PPO training · policy_biped_50hz.onnx Exported ONNX policy
Components 22
Learning & Simulation
- PPO training
scripts/rsl_rl/train.py - Policy rollout
scripts/rsl_rl/play.py - Isaac Lab extension · Simulator integration and task package.
source/berkeley_humanoid_lite/berkeley_humanoid_lite - Task discovery
source/berkeley_humanoid_lite/berkeley_humanoid_lite/tasks/__init__.py - Velocity locomotion
source/berkeley_humanoid_lite/berkeley_humanoid_lite/tasks/locomotion/velocity/__init__.py - Velocity environment · Central observation, action, reward, and reset boundary.
source/berkeley_humanoid_lite/berkeley_humanoid_lite/tasks/locomotion/velocity/velocity_env_cfg.py - Reward terms
source/berkeley_humanoid_lite/berkeley_humanoid_lite/tasks/locomotion/velocity/mdp/rewards.py - Termination terms
source/berkeley_humanoid_lite/berkeley_humanoid_lite/tasks/locomotion/velocity/mdp/terminations.py - Events & disturbances
source/berkeley_humanoid_lite/berkeley_humanoid_lite/tasks/locomotion/velocity/mdp/events.py - Curricula
source/berkeley_humanoid_lite/berkeley_humanoid_lite/tasks/locomotion/velocity/mdp/curriculums.py - Biped & humanoid configs · Independent environment and PPO settings select each robot variant.
source/berkeley_humanoid_lite/berkeley_humanoid_lite/tasks/locomotion/velocity/config/biped/env_cfg.py - Biped PPO config
source/berkeley_humanoid_lite/berkeley_humanoid_lite/tasks/locomotion/velocity/config/biped/agents/rsl_rl_ppo_cfg.py
Policy Transfer & Operation
- MuJoCo environment
source/berkeley_humanoid_lite/berkeley_humanoid_lite/environments/mujoco.py - Exported ONNX policy · Portable trained inference model.
checkpoints/policy_biped_50hz.onnx - Deployment policy config
configs/policy_biped_50hz.yaml - MuJoCo sim-to-sim
scripts/sim2sim/play_mujoco.py - Sim-to-real visualization
scripts/sim2real/visualize.py - Robot teleoperation · Connectivity, idle, teleoperation, gripper, and solver workflows.
scripts/teleop/run_teleop.py
Workspace Platform
- Robot low-level stack · Physical robot control software.
source/berkeley_humanoid_lite_lowlevel - Robot assets
source/berkeley_humanoid_lite_assets - Motor mapping
motor_configuration.json - Container setup
docker/docker-compose.yaml
Connections 22
- Isaac Lab extension → Task discovery: discovers
- Task discovery → Velocity locomotion: registers
- Velocity locomotion → Velocity environment: composes
- Velocity environment → Reward terms: uses
- Velocity environment → Termination terms: uses
- Velocity environment → Events & disturbances: uses
- Velocity environment → Curricula: uses
- Biped & humanoid configs → Velocity environment: parameterizes
- Biped PPO config → PPO training: configures
- PPO training → Isaac Lab extension: trains in
- PPO training → Exported ONNX policy: exports
- Policy rollout → Isaac Lab extension: runs policy in
- Exported ONNX policy → MuJoCo sim-to-sim: inference input
- Deployment policy config → MuJoCo sim-to-sim: configures
- MuJoCo sim-to-sim → MuJoCo environment: executes in
- Exported ONNX policy → Sim-to-real visualization: inference input
- Deployment policy config → Sim-to-real visualization: configures
- Sim-to-real visualization → Robot low-level stack: targets
- Robot teleoperation → Robot low-level stack: operates
- Motor mapping → Robot low-level stack: maps motors for
- Robot assets → Isaac Lab extension: provides robot assets
- Container setup → Isaac Lab extension: provides runtime for