OpenAI open-sources mujoco-py, a high-performance Python library for robotic simulation using the MuJoCo engine, featuring ~40x speedup with headless GPU rendering and VR interaction support.
We’re open-sourcing a high-performance Python library for robotic simulation using the MuJoCo engine, developed over our past year of robotics research.
# Faster physics in Python
Source: [https://openai.com/index/faster-physics-in-python/](https://openai.com/index/faster-physics-in-python/)
OpenAIWe’re open\-sourcing a high\-performance Python library for robotic simulation using the MuJoCo engine, developed over our past year of robotics research\.

We use the[domain randomization\(opens in a new window\)](https://arxiv.org/abs/1703.06907)technique across many projects at OpenAI\. The latest version of mujoco\-py supports headless GPU rendering; this yields a speedup of ~40x compared to CPU\-based rendering, letting us generate hundreds of frames per second of synthetic image data\. In the above \(slowed down\) animation we use this to vary the textures of one of our robots, which helps it identify its body when we transfer it from the simulator to reality\. Check out[examples/disco\_fetch\.py\(opens in a new window\)](https://github.com/openai/mujoco-py/blob/master/examples/disco_fetch.py)for an example of randomized texture generation\.
The API exposed by mujoco\-py is sufficient to enable Virtual Reality interaction without any extra C\+\+ code\. We ported MuJoCo’s[C\+\+ VR example\(opens in a new window\)](https://www.mujoco.org/book/programming.html#saVive)to Python using mujoco\-py\. If you have an HTC Vive VR setup, you can give try it using[this example\(opens in a new window\)](https://github.com/openai/mujoco-py/blob/master/examples/mjvive.py)\(this support is considered experimental, but we’ve been using it internally for a while\)\.
The simplest way to get started with mujoco\-py is with the[MjSim class\(opens in a new window\)](https://github.com/openai/mujoco-py/blob/master/mujoco_py/mjsim.pyx)\. It is a wrapper around the simulation model and data, and lets you to easily step the simulation and render images from camera sensors\. Here’s a simple example:
This paper presents MuJoCo-Drones-Gym, a GPU-accelerated multi-drone simulator built on MuJoCo that supports flexible physics models, action interfaces, and observation spaces for reinforcement learning and control research.
Modular announces the Mojo 1.0 Beta, a high-performance programming language that combines Python's ease of use with the speed of compiled languages for AI and systems programming.
Wuji MJLab is an open-source MuJoCo environment for dexterous hand manipulation, featuring a cube reorientation task, sim2real pipeline, and deployment on the Wuji Hand. It is based on mjlab and includes pretrained PPO policies.