sim2real

August 5, 2026 ยท View on GitHub

A lightweight and modular sim2sim and sim2real deployment stack.

Chinese version: README_zh.md

Full documentation: https://egalahad.github.io/sim2real/

If you're looking for the HDMI deployment stack, go to hdmi tag.

Runtime Artifacts

Large runtime artifacts are not stored in git. Download the shared sim2real artifacts folder and place checkpoints/ and third_party/ at the repo root.

See Download Artifacts for the expected directory layout and onboard dependency notes.

Quick Start

uv sync --extra inference-cpu

For G1 onboard installation or repair, invoke the repository Codex skill $configure-g1-sim2real from .agents/skills/configure-g1-sim2real.

Run offline motion tracking (sim2sim):

uv run sim2real/sim_env/base_sim.py --robot g1
uv run sim2real/rl_policy/tracking.py --robot g1 \
  --policy_config checkpoints/mimic-lite/32x8192-huge/policy.yaml \
  --motion_path hf://elijahgalahad/any4hdmi-g1-lafan/motions/walk1_subject1.npz

After both processes are up, press ] in the policy terminal to start. Open the mjviser URL printed by base_sim.py, then use the Elastic Band controls in the viewer UI to disable or tune the virtual gantry.

Migrating to sim2real

This repo includes a Codex skill for adapting policies trained in external codebases into sim2real:

.agents/skills/adapt-policy-to-sim2real

Converted checkpoints are distributed through the shared sim2real artifacts folder.

Currently supported adapted / distributed checkpoint families:

Policy familyConfig path(s)Notes
Mimic-Litecheckpoints/mimic-liteNative mimic-lite tracking checkpoints.
BFM-Zerocheckpoints/bfm-zero/exp_lafan40-100style_update_z10/policy.yamlLatent-conditioned motion tracker.
ScaleBFMcheckpoints/scalebfmScaleBFM Humanoid Transformer M and XL ONNX exports from WeishuaiZeng/ScaleBFM.
SONIC releasecheckpoints/sonic/releaseRelease G1 and SMPL encoder variants.
SONIC low-latencycheckpoints/sonic/low_latencyLow-latency G1 and SMPL variants.
HoloMotion v1.4.0checkpoints/holomotion/v1_4_0/policy.yamlUses the official unmodified ONNX from HorizonRobotics/HoloMotion_models; place it at checkpoints/holomotion/v1_4_0/policy.onnx.
TeleopITcheckpoints/teleopit/policy.yamlTeleopIT policy wrapper.
Humanoid-GPTcheckpoints/humanoid-gpt/policy.yamlHumanoid-GPT policy wrapper.
HEFTcheckpoints/heftPMG and compliance variants.
TWIST2checkpoints/twist2/policy.yamlTWIST2 policy wrapper.

Unified cross-codebase tracking evaluation

The comparison uses fresh runs for all 13 policy variants on LAFAN-40, PHUMA-30, and a direction-clean Root-90 set whose clips move 1.5--3.0 m without changing their labelled forward, backward, or sideward direction.

For a fair comparison, we report the motion-lookahead latency required by each policy, defined by its furthest required future-reference frame. All values use the shared 50 Hz reference-motion contract.

PolicyMimicLiteBFM-ZeroScaleBFMSONIC releaseSONIC low-latencyHoloMotionTeleopITHumanoid-GPTHEFTTWIST2
Motion-lookahead latency0.08 s0.12 s0.10 s0.90 s0.18 s0.20 s0.00 s0.02 s0.12 s0.00 s

Real-robot Environments

Robot SDKs are kept out of the generic root environment. G1 inline deployment uses uv sync --extra inference-cpu --extra robot-g1. See Robot I/O Modes for setup and deployment commands.

Next Steps

Citation

If you find sim2real useful in your research, please cite:

@misc{sim2real2026,
  author       = {{RoboParty Lab Team}},
  title        = {sim2real: A Lightweight and Modular Sim2sim and Sim2real Deployment Stack},
  year         = {2026},
  howpublished = {\url{https://github.com/EGalahad/sim2real}},
  note         = {Documentation: \url{https://egalahad.github.io/sim2real/}}
}