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.4.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.4-py3-none-any.whl (15.3 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wbc_mjlab-0.0.4.tar.gz
  • Upload date:
  • Size: 15.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","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.4.tar.gz
Algorithm Hash digest
SHA256 9e8cbd70a2fdcc534873a33610f87789261e498874fa527536d8d41be697fabc
MD5 df503a5eee19ccb62ce39d96e5c92960
BLAKE2b-256 4e3c273891b208def6704211292790b406467def598af9ae5eac8b6f23091251

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wbc_mjlab-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 15.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 302616d5bf17bbd6971ba3b29952480efe57b9226de199792a0a9c037c5f1f0a
MD5 b696923ec82954268e43560e7a0276bf
BLAKE2b-256 5927319098c8acae2bb67e433d4c8fcd55be6e59f88d61f241830c32514315ce

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