Skip to main content

Unified whole-body motion tracking on mjlab — one MDP, paper methods as tasks

Project description

WBC-Mjlab: Whole Body Control in MuJoCo Lab

Open In Colab Demo MJ-WASM Docs License PyPI PyPI downloads

One shared MDP for whole-body motion tracking on mjlab — train once on a motion library, deploy one policy for many skills.

WBC G1 sim collage

Recent works (ZEST, BeyondMimic, SONIC, OmniXtreme) is all WBC / large-scale tracking, with overlapping ideas (keybody rewards, adaptive sampling, multi-clip training) but different design choices — each still tends to ship as its own codebase. In wbc-mjlab, paper-specific knobs are --task switches on a shared stack:

  • Multi-motion by design — train on multi-clip datasets (LAFAN, SEED, custom NPZ libraries); one controller generalizes across the library. At runtime, provide reference - via playing clip, teleop, or higher level policy.
  • Shared MDP — rewards, terminations, motion command, RSI, and playback live in env/ once; robots and papers plug in via task configs.
  • Tasks, not forks — ZEST, BeyondMimic-style RSI, deploy obs, etc. are --task switches (Wbc-G1, Wbc-G1-Zest, Wbc-G1-BinaryFailure, …) with the same CLI and log layout for fair comparison.
  • Motion data pipeline — versioned libraries under data/, GMR PKL ingest, batch GPU CSV→NPZ, optional motion-bundle cache.
  • Building blocks — paper presets in presets/ and G1 task builders in robots/g1/tasks.py; add a paper setup or tune your own WBC without forking the core MDP.
  • Plug-in robots — external packages register via register_wbc_extension (same MDP, same CLIs); see wbc-mjlab-extension-h2 for a reference layout.
  • One policy, many skills — one policy for walk, jog, run, crawl, fight, get-up, lie-down, flips, and more.
  • Sim → real — train/play export policy.onnx + config.yaml aligned with the deploy runtime.

Details: Documentation · CONTRIBUTING.md

Quick start

Requires mjlab (≥ 1.5) and an NVIDIA GPU for training.

git clone https://github.com/wbc-mjlab/wbc-mjlab.git && cd wbc-mjlab
uv run wbc-mjlab-list-envs

uv run syncs from uv.lock on first use. For CUDA/CPU PyTorch and dev deps: make sync / make sync-cpu. See the installation guide.

Convert trajectory samples (13 source CSVs manifest & credits) to npz - calculating FK for body targets, velocities etc:

uv run wbc-mjlab-data-to-npz --robot g1 --dataset samples --batch-size 8

Demolive web demo (trained policy in the browser); local play with bundled checkpoint (convert samples first):

uv run wbc-mjlab-demo

Train on converted npz library (check mjlab train args for resuming, number of envs etc):

uv run wbc-mjlab-train --task Wbc-G1 --dataset samples

Evaluation of last exported log on library (check args for viewer, choosing chekpoint, motion etc):

uv run wbc-mjlab-play --task Wbc-G1 --dataset samples

Related repos

Repo Role
wbc-mjlab/wbc-mjlab Training library (this repo) — shared MDP, presets, extension API
wbc-mjlab/wbc-mjlab-extension-h2 Reference robot extension (Unitree H2) — plug-in WBC without forking core
wbc-mjlab/wbc-g1-deploy Optional G1 runtime (ONNX + motion clips)
mujocolab/mjlab Simulation and RL stack

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wbc_mjlab-0.0.5.tar.gz (15.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wbc_mjlab-0.0.5-py3-none-any.whl (15.3 MB view details)

Uploaded Python 3

File details

Details for the file wbc_mjlab-0.0.5.tar.gz.

File metadata

  • Download URL: wbc_mjlab-0.0.5.tar.gz
  • Upload date:
  • Size: 15.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.27 {"installer":{"name":"uv","version":"0.11.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for wbc_mjlab-0.0.5.tar.gz
Algorithm Hash digest
SHA256 a788755a9ba4024c91575be5754b002d2494f39928b5919eada0bc88cf852a2d
MD5 f610bcca4c558b3ee5cf5b76d4c75384
BLAKE2b-256 f100b5a22eb23143ba626620724e01811194b3778178a0a47d4c8da2ceee605e

See more details on using hashes here.

File details

Details for the file wbc_mjlab-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: wbc_mjlab-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 15.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.27 {"installer":{"name":"uv","version":"0.11.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for wbc_mjlab-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 63403c4b9f1a418eac8f12fa181d1183d2b9d5d8f74bc653bb9245ec8900e726
MD5 6e87cd08b0a329dd6c643c39899c86db
BLAKE2b-256 0ee603517028f0e3f6f40ca5e76e678e2a1f5f0f8bea2ee453215e429271cbb4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page