MuJoCo Warp (MJWarp) is a differentiable simulation framework built on MuJoCo and Google's Warp library for GPU-accelerated physics. It enables gradient-based optimization, reinforcement learning, and trajectory optimization with full differentiability. Current version 3.9.0.1, requires Python >=3.10. Active development.
pip install mujoco-warpNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initialize a Simulator from an MJCF string, step through physics, and print joint positions.
Upgrade code: use `from mujoco_warp import Simulator`, and access state via `sim.data.qpos`, `sim.data.qvel`.
Replace `mjcf.load(xml_string)` with `Simulator.from_xml(xml_string)`.
Warm up by calling `sim.step()` once before timing critical loops.
For batched sim, import `from mujoco_warp.batch import SimulatorBatch` and pass `num_envs`.