dm_control is DeepMind's Python stack for physics-based simulation and reinforcement-learning environments built on MuJoCo.
Overview
dm_control is Google's DeepMind infrastructure for physics-based simulation and reinforcement-learning environments. It builds on the MuJoCo physics engine and is distributed as a Python package installable from PyPI.
Core pieces include Python bindings to MuJoCo, a standard suite of RL environments, and an interactive environment viewer. Additional modules help compose MJCF models, define richer environments from reusable components, and build custom locomotion tasks including multi-agent soccer scenarios.
Rendering can use EGL for headless GPU rendering, GLFW for windowed hardware rendering, or OSMesa for software rendering; at least one backend must be available. Environment variables select the backend and GPU device when using EGL. On macOS, Homebrew Python and updating DYLD_LIBRARY_PATH for GLFW are documented.
The package is tied to published MuJoCo bindings and does not support editable pip installs because of legacy generated components. Semantic versioning applies from the 1.0.0 release onward.
Key features
- MuJoCo Python bindings
- Standard RL environment suite
- Interactive physics viewer
- MJCF composition library
- Composer for rich environments
- Locomotion and soccer tasks
- Multiple OpenGL render backends
Use cases
- Training RL agents in MuJoCo worlds
- Prototyping custom physics control tasks
- Visualizing simulated environments
- Research on continuous control benchmarks