Skip to content

Commit a44d00d

Browse files
btabacopybara-github
authored andcommitted
Update README.
PiperOrigin-RevId: 715972864 Change-Id: I26e246e65523946ce0bcca4c3c31c6dfc955e25a
1 parent a3737a7 commit a44d00d

File tree

1 file changed

+38
-47
lines changed

1 file changed

+38
-47
lines changed

README.md

Lines changed: 38 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,22 @@
44
<a href="#"><img alt="MuJoCo Playground" src="assets/banner.png" width="100%"></a>
55
</h1>
66

7-
A comprehensive suite of environments for robot learning research, accelerated by [MuJoCo MJX](https://github.com/google-deepmind/mujoco/tree/main/mjx).
7+
A comprehensive suite of GPU-acclerated environments for robot learning research and sim-to-real, accelerated by [MuJoCo MJX](https://github.com/google-deepmind/mujoco/tree/main/mjx).
88

99
Features include:
1010

11-
- Classic control environments from `dm_control` reimplemented in MJX
12-
- Quadruped and bipedal locomotion environments
13-
- Non-prehensile and dexterous manipulation environments
14-
- Vision-based support via Madrona
11+
- Classic control environments from `dm_control` reimplemented in MJX.
12+
- Quadruped and bipedal locomotion environments.
13+
- Non-prehensile and dexterous manipulation environments.
14+
- Vision-based support via [Madrona-MJX](https://github.com/shacklettbp/madrona_mjx).
1515

1616
## Installation
1717

1818
### From PyPI
1919

20-
```bash
20+
Install from PyPI is as easy as:
21+
22+
```sh
2123
pip install playground
2224
```
2325

@@ -27,67 +29,56 @@ pip install playground
2729
> Requires Python 3.9 or later.
2830
2931
1. `pip install -U "jax[cuda12]"`
30-
* Verify GPU backend: `python -c "import jax; print(jax.default_backend())"` should print `gpu`
31-
2. `git clone [email protected]:kevinzakka/mujoco_playground.git`
32-
3. `git clone [email protected]:google-deepmind/mujoco_menagerie.git`
33-
4. `mv mujoco_menagerie mujoco_playground/mujoco_menagerie`
34-
5. `pip install -e ".[all]"`
35-
36-
## Common Gotchas
32+
* Verify GPU backend: python -c "import jax; print(jax.default_backend())" should print gpu
33+
2. `git clone [email protected]:google-deepmind/mujoco_playground.git`
34+
3. `cd mujoco_playground`
35+
4. `uv pip install -e ".[all]"`
3736

38-
- Version mismatch between mjx and mujoco can cause issues. If encountered:
39-
```bash
40-
pip uninstall mujoco mujoco-mjx
41-
pip install --upgrade mujoco mujoco-mjx
42-
```
37+
#### Madrona-MJX (optional)
4338

44-
## Playground environments
39+
For vision-based environments, follow the installation instructions on the [Madrona-MJX](https://github.com/shacklettbp/madrona_mjx?tab=readme-ov-file#installation) repository.
4540

46-
### Locomotion Suite
41+
## Getting started
4742

48-
| Environment | Visualization
49-
|------------|---------------|
50-
| `Env1` | [hopper.gif] |
51-
| `Env2` | [walker.gif] |
52-
| `Env3` | [humanoid.gif]|
43+
To try out MuJoCo Playground locally on a simple locomotion environment, run the following:
5344

54-
### Manipulation Suite
45+
```py
46+
import jax
47+
import jax.numpy as jp
48+
from mujoco_playground import registry
5549

56-
| Environment | Description | Simulation | Real Robot |
57-
|------------|-------------|------------|------------|
58-
| `ReachEnv` | Reaching task with robot arm | [reach.gif] | [real_reach.gif] |
59-
| `PushEnv` | Object pushing with robot arm | [push.gif] | [real_push.gif] |
60-
| `PickPlaceEnv` | Pick and place objects | [pick.gif] | N/A |
50+
env = registry.load('Go1JoystickFlatTerrain')
51+
state = jax.jit(env.reset)(jax.random.PRNGKey(0))
52+
print(state.obs)
53+
state = jax.jit(env.step)(state, jp.zeros(env.action_size))
54+
print(state.obs)
55+
```
6156

62-
### DM Control Suite
57+
For detailed tutorials on using MuJoCo Playground, see:
6358

64-
| Environment | Description | Simulation |
65-
|------------|-------------|------------|
66-
| `Cartpole` | Classic cartpole balancing | [cartpole.gif] |
67-
| `Pendulum` | Inverted pendulum control | [pendulum.gif] |
68-
| `Cheetah` | 2D cheetah running | [cheetah.gif] |
69-
| `Finger` | Finger spinning task | [finger.gif] |
59+
1. Intro. to the Playground with DM Control Suite [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/google-deepmind/mujoco_playground/blob/main/learning/notebooks/dm_control_suite.ipynb)
60+
2. Locomotion Environments [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/google-deepmind/mujoco_playground/blob/main/learning/notebooks/locomotion.ipynb)
61+
3. Manipulation Environments [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/google-deepmind/mujoco_playground/blob/main/learning/notebooks/manipulation.ipynb)
7062

71-
## Frequently Asked Questions
63+
For tutorials on using MuJoCo Playground with Madrona-MJX, see:
7264

73-
* Q1
74-
* Q2
75-
* Q3
65+
1. Training CartPole from Vision [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/google-deepmind/mujoco_playground/blob/main/learning/training_vision_1.ipynb)
66+
2. Robotic Manipulation from Vision [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/google-deepmind/mujoco_playground/blob/main/learning/training_vision_2.ipynb)
7667

7768
## How can I contribute?
7869

79-
Install the library and use it! Report bugs in the issue tracker. If you are a developer with some robotics experience looking to hack on open source, check out the [contribution guidelines](CONTRIBUTING).
70+
Get started by installing the library and exploring its features! Found a bug? Report it in the issue tracker. Interested in contributing? If you’re a developer with robotics experience, we’d love your help—check out the [contribution guidelines](CONTRIBUTING) for more details.
8071

8172
## Citation
8273

8374
If you use Playground in your scientific works, please cite it as follows:
8475

8576
```bibtex
86-
@misc{mujoco_playground2025,
87-
author = {[Your Name]},
88-
title = {MuJoCo Playground},
77+
@misc{mujoco_playground_2025,
78+
title = {MuJoCo Playground: An open-source framework for GPU-accelerated robot learning and sim-to-real transfer.},
79+
author = {Zakka, Kevin and Tabanpour, Baruch and Liao, Qiayuan and Haiderbhai, Mustafa and Holt, Samuel and Luo, Jing Yuan and Allshire, Arthur and Frey, Erik and Sreenath, Koushil and Kahrs, Lueder A. and Sferrazza, Carlo and Tassa, Yuval and Abbeel, Pieter},
8980
year = {2025},
9081
publisher = {GitHub},
91-
url = {https://github.com/google-deepmind/mujoco-playground}
82+
url = {https://github.com/google-deepmind/mujoco_playground}
9283
}
9384
```

0 commit comments

Comments
 (0)