Menagerie is a collection of high-quality models for the MuJoCo physics engine, curated by DeepMind.
A physics simulator is only as good as the model it is simulating, and in a powerful simulator like MuJoCo with many modeling options, it is easy to create "bad" models which do not behave as expected. The goal of this collection is to provide the community with a curated library of well-designed models that work well right out of the gate.
- Getting Started
- Model Quality and Contributing
- Menagerie Models
- Citing Menagerie
- Acknowledgments
- License and Disclaimer
Menagerie's only requirement is MuJoCo version 2.2.2 or higher. You can download prebuilt binaries from the GitHub releases page, or if you are working with Python, you can install the native bindings from PyPI via pip install mujoco>=2.2.2
. For alternative installation instructions, see here.
The structure of Menagerie is illustrated below. For brevity, we have only included one model directory since all others follow the exact same pattern.
├── agility_cassie
│ ├── assets
│ │ ├── achilles-rod.obj
│ │ ├── ...
│ ├── cassie.png
│ ├── cassie.xml
│ ├── LICENSE
│ ├── README.md
│ └── scene.xml
assets
: stores the 3D meshes (.stl or .obj) of the model used for visual and collision purposesLICENSE
: describes the copyright and licensing terms of the modelREADME.md
: contains detailed steps describing how the model's MJCF XML file was generated<model>.xml
: contains the MJCF definition of the modelscene.xml
: includes<model>.xml
with a plane, a light source and potentially other objects<model>.png
: a PNG image ofscene.xml
Note that <model>.xml
solely describes the model, i.e., no other entity is defined in the kinematic tree. We leave additional body definitions for the scene.xml
file, as can be seen in the Shadow Hand scene.xml
.
To install Menagerie, simply clone the repository in the directory of your choice:
git clone https://github.com/deepmind/mujoco_menagerie.git
The easiest way to interactively explore a model is to load it in the simulate binary which ships with every MuJoCo distribution. This amounts to simply dragging then dropping the scene.xml
file into the simulate window. If you prefer, you can also use the command line to launch simulate
and directly pass in the path to the XML.
Outside of interactive simulation, you can load a model exactly as you would with any other XML file in MuJoCo, either via the C/C++ API:
#include <mujoco.h>
mjModel* model = mj_loadXML("unitree_a1/a1.xml", nullptr, nullptr, 0);
mjData* data = mj_makeData(model);
mj_step(model, data);
or via Python:
import mujoco
model = mujoco.MjModel.from_xml_path("unitree_a1/a1.xml")
data = mujoco.MjData(model)
mujoco.mj_step(model, data)
If you have further questions, please check out our FAQ.
Our goal is to eventually make all Menagerie models as faithful as possible to the real system they are being modeled after. Improving model quality is an ongoing effort, and the current state of many models is not necessarily as good as it could be.
However, by releasing Menagerie in its current state, we hope to consolidate and increase visibility for community contributions. To help Menagerie users set proper expectations around the quality of each model, we introduce the following grading system:
Grade | Description |
---|---|
A+ | Values are the product of proper system identification |
A | Values are realistic, but have not been properly identified |
B | Stable, but some values are unrealistic |
C | Conditionally stable, can be significantly improved |
For more information regarding contributions, for example to add a new model to Menagerie, see CONTRIBUTING.
Robot | Preview | Grade |
---|---|---|
Shadow E3M5 | A | |
Robotiq 2F-85 | B | |
Cassie | C | |
ANYmal B | A | |
ANYmal C | B | |
Unitree A1 | B | |
Panda | B | |
UR5e | B |
For corresponding embedded videos, see the MuJoCo documentation.
If you use Menagerie in your work, please use the following citation:
@software{menagerie2022github,
author = {MuJoCo Menagerie Contributors},
title = {{MuJoCo Menagerie: A collection of high-quality simulation models for MuJoCo}},
url = {http://github.com/deepmind/mujoco_menagerie},
year = {2022},
}
The models in this repository are based on third-party models designed by many talented people, and would not have been possible without their generous open-source contributions. We would like to acknowledge all the designers and engineers who made MuJoCo Menagerie possible.
We'd like to thank Pedro Vergani for his help with visuals and design.
The main effort required to make this repository publicly available was undertaken by Kevin Zakka, with help from the DeepMind Robotics Simulation team.
XML and asset files in each individual model directory of this repository are
subject to different license terms. Please consult the LICENSE
files under
each specific model subdirectory for the relevant license and copyright
information.
All other content is Copyright 2022 DeepMind Technologies Limited and licensed under the Apache License, Version 2.0. A copy of this license is provided in the top-level LICENSE file in this repository. You can also obtain it from https://www.apache.org/licenses/LICENSE-2.0.
This is not an officially supported Google product.