A complete MJCF lifecycle and trial orchestration suite for MuJoCo, powered by Pydantic v2.
Project description
A complete MJCF lifecycle and trial orchestration suite for MuJoCo, powered by Pydantic v2.
MuJoCo Mojo bridges the gap between static XML modeling and large-scale simulation research. It provides a strongly-typed bridge for building models and a robust execution engine for running them at scale.
- Model: Build MJCFs via validated Python objects allowing for programatic generation.
- Scale: Execute multi-threaded Monte Carlo trials with built-in resume logic.
- Monitor: Track progress via a zero-dependency web dashboard and persistent logs.
- Assess: Quickly view interactive results of a trial in context of others.
- Reproduce: Automatic environment snapshotting (
requirements.txt) for every job.
Installation
Install using uv (recommended):
uv add mujoco-mojo
or with pip:
pip install mujoco-mojo
[!WARNING] At the time of writing, MuJoCo supports up to Python 3.13
Features
MJCF Tools
- Strongly-typed MJCF elements backed by Pydantic v2
- Early validation of MJCF structure and attribute semantics
- Pythonic composition of assets, bodies, sensors, and plugins
- Designed to mirror MuJoCo’s XML schema closely (no magic abstractions)
- Suitable for code generation, tooling, and large model pipelines
- Embedded MuJoCo object enumerations to make getting
mjOBJIDs simple - Specialized handling of dependency by remapping assets to become shared allows for space efficient execution of complex models
Job Utilities
- Single or multi-threaded trial execution
- Random draw tools for Monte Carlo or rerun with global variable override
- Detailed status files for insight on trial progress
- Resume a previously started job without rerunning previous cases
- Automatically record installed Python packages to
requirements.txtfor job recreation (works withuvorpip) - End of run summary with metric to help perform a state of health check
- Flexible command line utilities to run jobs
[!TIP]
mujoco-mojo run monte-carlo \ --generator monte_carlo_test.Experiment.generate \ --runtime monte_carlo_test.runtime \ --n-trial 10 \ --n-proc 4
- Support for running jobs with SLURM for distributed compute
- Built in Rich logging for terminal and a rotating file handler for persistent logs
Dojo Dashboard
A zero-dependency, offline-first web suite for monitoring and analyzing your simulation jobs in real-time.
Monitor: Real-Time Oversight
- Live Progress Tracking: Dynamic progress bars and color-coded status cards provide a high-level view of your Monte Carlo runs.
- Success/Failure Analytics: Automatic categorization of trials with built-in data integrity checks to identify "empty" vs. "failed" runs.
- Sensory Feedback: Optional audio cues and visual celebrations let you know exactly when a multi-hour job hits 100%.
- Deep-Linked Navigation: Jump straight from the monitor to any individual trial in the viewer with one click.
Mosaic: Advanced Telemetry Analysis
- High-Fidelity Plotting: Hardware-accelerated visualization using Plotly.js for seamless zooming and panning through millions of data points.
- Dynamic Versus Mode: Overlay current telemetry against previous trials using an intuitive range-selection slider for instant regression testing.
- Regex-Powered Filtering: Navigate high-dimensional datasets using a "folder-style" signal selector with suffix and regex support.
- State Persistence & Sharing: Every view is captured in a shareable, compressed URL by pasting a link to share your exact configuration.
- Pro-Grade Tooling: Built-in JSON configuration editor, drag-and-drop config restoration, and multi-format exports (SVG, PNG, CSV).
- Keyboard-First Design: Full hotkey support for warping between trials and managing views without leaving the home row.
Reloaded
A rapid prototyping loop that allows you to modify physics logic and model architecture on the fly without ever closing the visualizer.
- Module Hot-Reloading: Recursively reloads local Python modules and MJCF logic, allowing code changes to propagate instantly to the active simulation.
- Unified Visualizer Bridge: Synchronized visualization of custom force and torque vectors across native OpenGL, Viser web interfaces, and video recordings.
- Interactive Prototyping: A developer-centric command loop to toggle playback speeds, repeat last commands, or trigger "generation-only" mode for rapid MJCF debugging.
- Asset Persistence: Automatically dumps current MJCF snapshots and model configurations to a workspace directory for post-hoc analysis or version tracking.
[!TIP]
mujoco-mojo reloaded \ --generator monte_carlo_test.Experiment.generate \ --runtime monte_carlo_test.runtime \
[!NOTE] MuJoCo Mojo is an independently developed open-source toolbox. It is not affiliated with, sponsored by, or endorsed by Google DeepMind or the official MuJoCo development team. MuJoCo® is a registered trademark of Google LLC. All MJCF schemas and MuJoCo-related terminology used within this project are for compatibility and documentation purposes only.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mujoco_mojo-1.7.4.tar.gz.
File metadata
- Download URL: mujoco_mojo-1.7.4.tar.gz
- Upload date:
- Size: 1.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd8cd7fffc7f66272ad29b21be338be0faaae6f1f9e006e056b1550263875bb9
|
|
| MD5 |
63fae926b3b2be2d2fd08e49852964be
|
|
| BLAKE2b-256 |
147fac1ff8914793e5c4c56b89c86a77d56729d15e90436ec8b9800587801d03
|
File details
Details for the file mujoco_mojo-1.7.4-py3-none-any.whl.
File metadata
- Download URL: mujoco_mojo-1.7.4-py3-none-any.whl
- Upload date:
- Size: 2.0 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5762c266bf474f7ec75a23a4214173f1a4846caa6b70fff92f6e336eede0207b
|
|
| MD5 |
3cbd986f9c84ce41523a23f41fa10007
|
|
| BLAKE2b-256 |
974fe6838b4acd39bbc3c54273a4f7c04565d99e68a5b3f20ccbb1083a78542b
|