mujoco

(★ 14,625)

Multi-Joint dynamics with Contact. A general purpose physics simulator.

File Explorer

  • .gitignore
  • .pre-commit-config.yaml
  • .readthedocs.yml
  • banner.png
  • CMakeLists.txt
  • CONTRIBUTING.md
  • LICENSE
  • README.md
  • SECURITY.md
  • STYLEGUIDE.md
  • VERSIONING.md

# Installation Guide

cmake
Prerequisites
  • CMake 3.21+
  • C++ Compiler C++17 compatible
  • Python >= 3.10
  • OpenGL

Setup Steps

pip install mujoco

Install the MuJoCo package via pip in a Python environment.

cmake -B build -S .

Generate the build directory using CMake.

cmake --build build

Compile the source code to build MuJoCo.

Video Guides

MuJoCo Simulate Viewer

Key Commands

pip install mujoco

Install MuJoCo python bindings and runtime from PyPI.

cmake -B build -S .

Configure CMake and generate build files.

cmake --build build

Compile the project using the generated build files.

Building from source requires a C++17 compatible compiler and CMake.

# Use via CDN

jsDelivr

jsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.

Command Glossary

Commands referenced in this DOCs, explained below.

🔍

pip install

View Details ▼

Install Python packages.

pip install {{package1 package2 ...}}

Install one or more packages:

pip install {{package1 package2 ...}} {{[-U|--upgrade]}}

Upgrade all specified packages to the latest version, installing any that are not already present:

pip install {{package}}=={{version}}

Install a specific version of a package:

// repository documentation