Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

Python wrapper for MuJoCo physics simulation.

Project description

This is a simple python wrapper around the MuJoCo physics simulation. I wrote it when I couldn’t fix the GLEW initialization error with mujoco-py. Please note: this library is a partial replacement (not a supplement) to mujoco-py. It is does not have all of the features of mujoco-py but it is much simpler and easier to understand. If there are additional capabilities you want added, please feel free to post an issue.

Installation

OS X

pip install mujoco

Linux

Building pypi wheels for linux packages that use C extensions (like this one) is very difficult (nay impossible?). Please install from source:

cd /path/to/cloned/directory
make
pip install -e .

Usage

Examples are located in the examples/ directory.

EGL

EGL is a graphics library for linux GPUs which speeds up offscreen rendering. First, you need to install libegl1-mesa and check that /usr/include/EGL/egl.h exists. Second, you must define the environment variable EGL=1. Otherwise, the code defaults to GLFW. Note that when using EGL, you cannot render to the screen (you can still render offscreen).

Design

One of the main design decisions behind this implementation was to use the exact same libraries that Emo’s original MuJoCo code uses in the provided Makefile. That way if my version doesn’t work, you can bet that Emo’s code doesn’t work either. I think the reason why mujoco-py stopped working is that it tried to get fancy with the libraries and dynamically switch between EGL- and GLFW-friendly graphics libraries.

Documentation

Sadly, I haven’t been able to load my docs to readthedocs.org yet, because of difficulties over importing the original MuJoCo headers on their servers (suggestions welcome). However, if you wish to build the docs yourself, the following commands should do it for you:

cd /path/to/cloned/directory
make
cd docs/
make html

Project details


Release history Release notifications

This version
History Node

2.0.2

History Node

2.0.1

History Node

1.0.11

History Node

1.0.10

History Node

1.0.9

History Node

1.0.8

History Node

1.0.7

History Node

1.0.6

History Node

1.0.5

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
mujoco-2.0.2-cp36-cp36m-macosx_10_12_x86_64.whl (98.3 kB) Copy SHA256 hash SHA256 Wheel cp36 Jan 27, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page