mirror of
https://github.com/Farama-Foundation/Gymnasium.git
synced 2025-08-30 09:55:39 +00:00
535 lines
30 KiB
HTML
535 lines
30 KiB
HTML
![]() |
<!doctype html>
|
|||
|
<html class="no-js" lang="en">
|
|||
|
<head><meta charset="utf-8"/>
|
|||
|
<meta name="viewport" content="width=device-width,initial-scale=1"/>
|
|||
|
<meta name="color-scheme" content="light dark"><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" />
|
|||
|
<link rel="index" title="Index" href="../../genindex/" /><link rel="search" title="Search" href="../../search/" /><link rel="next" title="Ant" href="ant/" /><link rel="prev" title="Zaxxon" href="../atari/zaxxon/" />
|
|||
|
<link rel="canonical" href="https://gymnasium.farama.org/environments/mujoco/index.html" />
|
|||
|
|
|||
|
<link rel="shortcut icon" href="../../_static/favicon.png"/><meta name="generator" content="sphinx-5.1.1, furo 2022.06.21"/>
|
|||
|
<title>MuJoCo - Gymnasium Documentation</title>
|
|||
|
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css" />
|
|||
|
<link rel="stylesheet" type="text/css" href="../../_static/styles/furo.css?digest=40978830699223671f4072448e654b5958f38b89" />
|
|||
|
<link rel="stylesheet" type="text/css" href="../../_static/styles/furo-extensions.css?digest=30d1aed668e5c3a91c3e3bf6a60b675221979f0e" />
|
|||
|
<link rel="stylesheet" type="text/css" href="../../_static/css/custom.css" />
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<style>
|
|||
|
body {
|
|||
|
--color-code-background: #f8f8f8;
|
|||
|
--color-code-foreground: black;
|
|||
|
|
|||
|
}
|
|||
|
@media not print {
|
|||
|
body[data-theme="dark"] {
|
|||
|
--color-code-background: #202020;
|
|||
|
--color-code-foreground: #d0d0d0;
|
|||
|
|
|||
|
}
|
|||
|
@media (prefers-color-scheme: dark) {
|
|||
|
body:not([data-theme="light"]) {
|
|||
|
--color-code-background: #202020;
|
|||
|
--color-code-foreground: #d0d0d0;
|
|||
|
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
</style></head>
|
|||
|
<body>
|
|||
|
|
|||
|
<script>
|
|||
|
document.body.dataset.theme = localStorage.getItem("theme") || "auto";
|
|||
|
</script>
|
|||
|
|
|||
|
|
|||
|
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
|
|||
|
<symbol id="svg-toc" viewBox="0 0 24 24">
|
|||
|
<title>Contents</title>
|
|||
|
<svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 1024 1024">
|
|||
|
<path d="M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM115.4 518.9L271.7 642c5.8 4.6 14.4.5 14.4-6.9V388.9c0-7.4-8.5-11.5-14.4-6.9L115.4 505.1a8.74 8.74 0 0 0 0 13.8z"/>
|
|||
|
</svg>
|
|||
|
</symbol>
|
|||
|
<symbol id="svg-menu" viewBox="0 0 24 24">
|
|||
|
<title>Menu</title>
|
|||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor"
|
|||
|
stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather-menu">
|
|||
|
<line x1="3" y1="12" x2="21" y2="12"></line>
|
|||
|
<line x1="3" y1="6" x2="21" y2="6"></line>
|
|||
|
<line x1="3" y1="18" x2="21" y2="18"></line>
|
|||
|
</svg>
|
|||
|
</symbol>
|
|||
|
<symbol id="svg-arrow-right" viewBox="0 0 24 24">
|
|||
|
<title>Expand</title>
|
|||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor"
|
|||
|
stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather-chevron-right">
|
|||
|
<polyline points="9 18 15 12 9 6"></polyline>
|
|||
|
</svg>
|
|||
|
</symbol>
|
|||
|
<symbol id="svg-sun" viewBox="0 0 24 24">
|
|||
|
<title>Light mode</title>
|
|||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor"
|
|||
|
stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="feather-sun">
|
|||
|
<circle cx="12" cy="12" r="5"></circle>
|
|||
|
<line x1="12" y1="1" x2="12" y2="3"></line>
|
|||
|
<line x1="12" y1="21" x2="12" y2="23"></line>
|
|||
|
<line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line>
|
|||
|
<line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line>
|
|||
|
<line x1="1" y1="12" x2="3" y2="12"></line>
|
|||
|
<line x1="21" y1="12" x2="23" y2="12"></line>
|
|||
|
<line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line>
|
|||
|
<line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>
|
|||
|
</svg>
|
|||
|
</symbol>
|
|||
|
<symbol id="svg-moon" viewBox="0 0 24 24">
|
|||
|
<title>Dark mode</title>
|
|||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor"
|
|||
|
stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="icon-tabler-moon">
|
|||
|
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
|
|||
|
<path d="M12 3c.132 0 .263 0 .393 0a7.5 7.5 0 0 0 7.92 12.446a9 9 0 1 1 -8.313 -12.454z" />
|
|||
|
</svg>
|
|||
|
</symbol>
|
|||
|
<symbol id="svg-sun-half" viewBox="0 0 24 24">
|
|||
|
<title>Auto light/dark mode</title>
|
|||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor"
|
|||
|
stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="icon-tabler-shadow">
|
|||
|
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
|
|||
|
<circle cx="12" cy="12" r="9" />
|
|||
|
<path d="M13 12h5" />
|
|||
|
<path d="M13 15h4" />
|
|||
|
<path d="M13 18h1" />
|
|||
|
<path d="M13 9h4" />
|
|||
|
<path d="M13 6h1" />
|
|||
|
</svg>
|
|||
|
</symbol>
|
|||
|
</svg>
|
|||
|
|
|||
|
<input type="checkbox" class="sidebar-toggle" name="__navigation" id="__navigation">
|
|||
|
<input type="checkbox" class="sidebar-toggle" name="__toc" id="__toc">
|
|||
|
<label class="overlay sidebar-overlay" for="__navigation">
|
|||
|
<div class="visually-hidden">Hide navigation sidebar</div>
|
|||
|
</label>
|
|||
|
<label class="overlay toc-overlay" for="__toc">
|
|||
|
<div class="visually-hidden">Hide table of contents sidebar</div>
|
|||
|
</label>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<div class="page">
|
|||
|
<header class="mobile-header">
|
|||
|
<div class="header-left">
|
|||
|
<label class="nav-overlay-icon" for="__navigation">
|
|||
|
<div class="visually-hidden">Toggle site navigation sidebar</div>
|
|||
|
<i class="icon"><svg><use href="#svg-menu"></use></svg></i>
|
|||
|
</label>
|
|||
|
</div>
|
|||
|
<div class="header-center">
|
|||
|
<a href="../../"><div class="brand">Gymnasium Documentation</div></a>
|
|||
|
</div>
|
|||
|
<div class="header-right">
|
|||
|
<div class="theme-toggle-container theme-toggle-header">
|
|||
|
<button class="theme-toggle">
|
|||
|
<div class="visually-hidden">Toggle Light / Dark / Auto color theme</div>
|
|||
|
<svg class="theme-icon-when-auto"><use href="#svg-sun-half"></use></svg>
|
|||
|
<svg class="theme-icon-when-dark"><use href="#svg-moon"></use></svg>
|
|||
|
<svg class="theme-icon-when-light"><use href="#svg-sun"></use></svg>
|
|||
|
</button>
|
|||
|
</div>
|
|||
|
<label class="toc-overlay-icon toc-header-icon no-toc" for="__toc">
|
|||
|
<div class="visually-hidden">Toggle table of contents sidebar</div>
|
|||
|
<i class="icon"><svg><use href="#svg-toc"></use></svg></i>
|
|||
|
</label>
|
|||
|
</div>
|
|||
|
</header>
|
|||
|
<aside class="sidebar-drawer">
|
|||
|
<div class="sidebar-container">
|
|||
|
|
|||
|
<div class="sidebar-sticky"><a class="sidebar-brand" href="../../">
|
|||
|
|
|||
|
<div class="sidebar-logo-container">
|
|||
|
<img class="sidebar-logo only-light" src="../../_static/img/gymnasium_black.svg" alt="Light Logo"/>
|
|||
|
<img class="sidebar-logo only-dark" src="../../_static/img/gymnasium_white.svg" alt="Dark Logo"/>
|
|||
|
</div>
|
|||
|
|
|||
|
<span class="sidebar-brand-text">Gymnasium Documentation</span>
|
|||
|
|
|||
|
</a><form class="sidebar-search-container" method="get" action="../../search/" role="search">
|
|||
|
<input class="sidebar-search" placeholder=Search name="q" aria-label="Search">
|
|||
|
<input type="hidden" name="check_keywords" value="yes">
|
|||
|
<input type="hidden" name="area" value="default">
|
|||
|
</form>
|
|||
|
<div id="searchbox"></div><div class="sidebar-scroll"><div class="sidebar-tree">
|
|||
|
<p class="caption" role="heading"><span class="caption-text">Introduction</span></p>
|
|||
|
<ul>
|
|||
|
<li class="toctree-l1"><a class="reference internal" href="../../content/basic_usage/">Basic Usage</a></li>
|
|||
|
</ul>
|
|||
|
<p class="caption" role="heading"><span class="caption-text">API</span></p>
|
|||
|
<ul>
|
|||
|
<li class="toctree-l1"><a class="reference internal" href="../../api/core/">Core</a></li>
|
|||
|
<li class="toctree-l1"><a class="reference internal" href="../../api/spaces/">Spaces</a></li>
|
|||
|
<li class="toctree-l1"><a class="reference internal" href="../../api/spaces_utils/">Spaces Utils</a></li>
|
|||
|
<li class="toctree-l1"><a class="reference internal" href="../../api/wrappers/">Wrappers</a></li>
|
|||
|
<li class="toctree-l1"><a class="reference internal" href="../../api/vector/">Vector</a></li>
|
|||
|
<li class="toctree-l1"><a class="reference internal" href="../../api/utils/">Utils</a></li>
|
|||
|
</ul>
|
|||
|
<p class="caption" role="heading"><span class="caption-text">Environments</span></p>
|
|||
|
<ul class="current">
|
|||
|
<li class="toctree-l1 has-children"><a class="reference internal" href="../atari/">Atari</a><input class="toctree-checkbox" id="toctree-checkbox-1" name="toctree-checkbox-1" role="switch" type="checkbox"/><label for="toctree-checkbox-1"><div class="visually-hidden">Toggle child pages in navigation</div><i class="icon"><svg><use href="#svg-arrow-right"></use></svg></i></label><ul>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../atari/adventure/">Adventure</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../atari/air_raid/">Air Raid</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../atari/alien/">Alien</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../atari/amidar/">Amidar</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../atari/assault/">Assault</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../atari/asterix/">Asterix</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../atari/asteroids/">Asteroids</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../atari/atlantis/">Atlantis</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../atari/bank_heist/">Bank Heist</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../atari/battle_zone/">Battle Zone</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../atari/beam_rider/">Beam Rider</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../atari/berzerk/">Berzerk</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../atari/bowling/">Bowling</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../atari/boxing/">Boxing</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../atari/breakout/">Breakout</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../atari/carnival/">Carnival</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../atari/centipede/">Centipede</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../atari/chopper_command/">Chopper Command</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../atari/crazy_climber/">Crazy Climber</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../atari/defender/">Defender</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../atari/demon_attack/">Demon Attack</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../atari/double_dunk/">Double Dunk</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../atari/elevator_action/">Elevator Action</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../atari/enduro/">Enduro</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../atari/fishing_derby/">FishingDerby</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../atari/freeway/">Freeway</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../atari/frostbite/">Frostbite</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../atari/gopher/">Gopher</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../atari/gravitar/">Gravitar</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../atari/hero/">Hero</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../atari/ice_hockey/">IceHockey</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../atari/jamesbond/">Jamesbond</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../atari/journey_escape/">JourneyEscape</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../atari/kangaroo/">Kangaroo</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../atari/krull/">Krull</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../atari/kung_fu_master/">Kung Fu Master</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../atari/montezuma_revenge/">Montezuma Revenge</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../atari/ms_pacman/">Ms Pacman</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../atari/name_this_game/">Name This Game</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../atari/phoenix/">Phoenix</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../atari/pitfall/">Pitfall</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../atari/pong/">Pong</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../atari/pooyan/">Pooyan</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../atari/private_eye/">PrivateEye</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../atari/qbert/">Qbert</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../atari/riverraid/">Riverraid</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../atari/road_runner/">Road Runner</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../atari/robotank/">Robot Tank</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../atari/seaquest/">Seaquest</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../atari/skiing/">Skiings</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../atari/solaris/">Solaris</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../atari/space_invaders/">SpaceInvaders</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../atari/star_gunner/">StarGunner</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../atari/tennis/">Tennis</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../atari/time_pilot/">TimePilot</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../atari/tutankham/">Tutankham</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../atari/up_n_down/">Up n’ Down</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../atari/venture/">Venture</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../atari/video_pinball/">Video Pinball</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../atari/wizard_of_wor/">Wizard of Wor</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../atari/zaxxon/">Zaxxon</a></li>
|
|||
|
</ul>
|
|||
|
</li>
|
|||
|
<li class="toctree-l1 current has-children current-page"><a class="current reference internal" href="#">MuJoCo</a><input checked="" class="toctree-checkbox" id="toctree-checkbox-2" name="toctree-checkbox-2" role="switch" type="checkbox"/><label for="toctree-checkbox-2"><div class="visually-hidden">Toggle child pages in navigation</div><i class="icon"><svg><use href="#svg-arrow-right"></use></svg></i></label><ul>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="ant/">Ant</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="half_cheetah/">Half Cheetah</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="hopper/">Hopper</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="humanoid_standup/">Humanoid Standup</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="humanoid/">Humanoid</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="inverted_double_pendulum/">Inverted Double Pendulum</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="inverted_pendulum/">Inverted Pendulum</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="reacher/">Reacher</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="swimmer/">Swimmer</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="walker2d/">Walker2D</a></li>
|
|||
|
</ul>
|
|||
|
</li>
|
|||
|
<li class="toctree-l1 has-children"><a class="reference internal" href="../toy_text/">Toy Text</a><input class="toctree-checkbox" id="toctree-checkbox-3" name="toctree-checkbox-3" role="switch" type="checkbox"/><label for="toctree-checkbox-3"><div class="visually-hidden">Toggle child pages in navigation</div><i class="icon"><svg><use href="#svg-arrow-right"></use></svg></i></label><ul>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../toy_text/blackjack/">Blackjack</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../toy_text/taxi/">Taxi</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../toy_text/cliff_walking/">Cliff Walking</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../toy_text/frozen_lake/">Frozen Lake</a></li>
|
|||
|
</ul>
|
|||
|
</li>
|
|||
|
<li class="toctree-l1 has-children"><a class="reference internal" href="../classic_control/">Classic Control</a><input class="toctree-checkbox" id="toctree-checkbox-4" name="toctree-checkbox-4" role="switch" type="checkbox"/><label for="toctree-checkbox-4"><div class="visually-hidden">Toggle child pages in navigation</div><i class="icon"><svg><use href="#svg-arrow-right"></use></svg></i></label><ul>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../classic_control/acrobot/">Acrobot</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../classic_control/cart_pole/">Cart Pole</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../classic_control/mountain_car_continuous/">Mountain Car Continuous</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../classic_control/mountain_car/">Mountain Car</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../classic_control/pendulum/">Pendulum</a></li>
|
|||
|
</ul>
|
|||
|
</li>
|
|||
|
<li class="toctree-l1 has-children"><a class="reference internal" href="../box2d/">Box2D</a><input class="toctree-checkbox" id="toctree-checkbox-5" name="toctree-checkbox-5" role="switch" type="checkbox"/><label for="toctree-checkbox-5"><div class="visually-hidden">Toggle child pages in navigation</div><i class="icon"><svg><use href="#svg-arrow-right"></use></svg></i></label><ul>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../box2d/bipedal_walker/">Bipedal Walker</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../box2d/car_racing/">Car Racing</a></li>
|
|||
|
<li class="toctree-l2"><a class="reference internal" href="../box2d/lunar_lander/">Lunar Lander</a></li>
|
|||
|
</ul>
|
|||
|
</li>
|
|||
|
<li class="toctree-l1"><a class="reference internal" href="../third_party_environments/">Third Party Environments</a></li>
|
|||
|
</ul>
|
|||
|
<p class="caption" role="heading"><span class="caption-text">Tutorials</span></p>
|
|||
|
<ul>
|
|||
|
<li class="toctree-l1"><a class="reference internal" href="../../content/environment_creation/">Make your own custom environment</a></li>
|
|||
|
<li class="toctree-l1"><a class="reference internal" href="../../content/vectorising/">Vectorising your environments</a></li>
|
|||
|
</ul>
|
|||
|
<p class="caption" role="heading"><span class="caption-text">Development</span></p>
|
|||
|
<ul>
|
|||
|
<li class="toctree-l1"><a class="reference external" href="https://github.com/Farama-Foundation/gymnasium">Github</a></li>
|
|||
|
<li class="toctree-l1"><a class="reference external" href="https://farama.org/donations">Donate</a></li>
|
|||
|
</ul>
|
|||
|
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
</div>
|
|||
|
|
|||
|
</div>
|
|||
|
</aside>
|
|||
|
<div class="main">
|
|||
|
<div class="content">
|
|||
|
<div class="article-container">
|
|||
|
<a href="#" class="back-to-top muted-link">
|
|||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|||
|
<path d="M13 20h-2V8l-5.5 5.5-1.42-1.42L12 4.16l7.92 7.92-1.42 1.42L13 8v12z"></path>
|
|||
|
</svg>
|
|||
|
<span>Back to top</span>
|
|||
|
</a>
|
|||
|
<div class="content-icon-container">
|
|||
|
<div class="theme-toggle-container theme-toggle-content">
|
|||
|
<button class="theme-toggle">
|
|||
|
<div class="visually-hidden">Toggle Light / Dark / Auto color theme</div>
|
|||
|
<svg class="theme-icon-when-auto"><use href="#svg-sun-half"></use></svg>
|
|||
|
<svg class="theme-icon-when-dark"><use href="#svg-moon"></use></svg>
|
|||
|
<svg class="theme-icon-when-light"><use href="#svg-sun"></use></svg>
|
|||
|
</button>
|
|||
|
</div>
|
|||
|
<label class="toc-overlay-icon toc-content-icon no-toc" for="__toc">
|
|||
|
<div class="visually-hidden">Toggle table of contents sidebar</div>
|
|||
|
<i class="icon"><svg><use href="#svg-toc"></use></svg></i>
|
|||
|
</label>
|
|||
|
</div>
|
|||
|
<article role="main">
|
|||
|
<section id="mujoco">
|
|||
|
<h1>MuJoCo<a class="headerlink" href="#mujoco" title="Permalink to this heading">#</a></h1>
|
|||
|
<div class="toctree-wrapper compound">
|
|||
|
</div>
|
|||
|
|
|||
|
<div class="env-grid">
|
|||
|
|
|||
|
<a href="ant">
|
|||
|
<div class="env-grid__cell">
|
|||
|
<div class="cell__image-container">
|
|||
|
<img src="/_static/videos/mujoco/ant.gif">
|
|||
|
</div>
|
|||
|
<div class="cell__title">
|
|||
|
<span>Ant</span>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
<a href="half_cheetah">
|
|||
|
<div class="env-grid__cell">
|
|||
|
<div class="cell__image-container">
|
|||
|
<img src="/_static/videos/mujoco/half_cheetah.gif">
|
|||
|
</div>
|
|||
|
<div class="cell__title">
|
|||
|
<span>Half Cheetah</span>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
<a href="hopper">
|
|||
|
<div class="env-grid__cell">
|
|||
|
<div class="cell__image-container">
|
|||
|
<img src="/_static/videos/mujoco/hopper.gif">
|
|||
|
</div>
|
|||
|
<div class="cell__title">
|
|||
|
<span>Hopper</span>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
<a href="humanoid_standup">
|
|||
|
<div class="env-grid__cell">
|
|||
|
<div class="cell__image-container">
|
|||
|
<img src="/_static/videos/mujoco/humanoid_standup.gif">
|
|||
|
</div>
|
|||
|
<div class="cell__title">
|
|||
|
<span>Humanoid Standup</span>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
<a href="humanoid">
|
|||
|
<div class="env-grid__cell">
|
|||
|
<div class="cell__image-container">
|
|||
|
<img src="/_static/videos/mujoco/humanoid.gif">
|
|||
|
</div>
|
|||
|
<div class="cell__title">
|
|||
|
<span>Humanoid</span>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
<a href="inverted_double_pendulum">
|
|||
|
<div class="env-grid__cell">
|
|||
|
<div class="cell__image-container">
|
|||
|
<img src="/_static/videos/mujoco/inverted_double_pendulum.gif">
|
|||
|
</div>
|
|||
|
<div class="cell__title">
|
|||
|
<span>Inverted Double Pendulum</span>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
<a href="inverted_pendulum">
|
|||
|
<div class="env-grid__cell">
|
|||
|
<div class="cell__image-container">
|
|||
|
<img src="/_static/videos/mujoco/inverted_pendulum.gif">
|
|||
|
</div>
|
|||
|
<div class="cell__title">
|
|||
|
<span>Inverted Pendulum</span>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
<a href="reacher">
|
|||
|
<div class="env-grid__cell">
|
|||
|
<div class="cell__image-container">
|
|||
|
<img src="/_static/videos/mujoco/reacher.gif">
|
|||
|
</div>
|
|||
|
<div class="cell__title">
|
|||
|
<span>Reacher</span>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
<a href="swimmer">
|
|||
|
<div class="env-grid__cell">
|
|||
|
<div class="cell__image-container">
|
|||
|
<img src="/_static/videos/mujoco/swimmer.gif">
|
|||
|
</div>
|
|||
|
<div class="cell__title">
|
|||
|
<span>Swimmer</span>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
<a href="walker2d">
|
|||
|
<div class="env-grid__cell">
|
|||
|
<div class="cell__image-container">
|
|||
|
<img src="/_static/videos/mujoco/walker2d.gif">
|
|||
|
</div>
|
|||
|
<div class="cell__title">
|
|||
|
<span>Walker2D</span>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</a>
|
|||
|
|
|||
|
</div>
|
|||
|
|
|||
|
<p>MuJoCo stands for Multi-Joint dynamics with Contact. It is a physics engine for faciliatating research and development in robotics, biomechanics, graphics and animation, and other areas where fast and accurate simulation is needed.</p>
|
|||
|
<p>The unique dependencies for this set of environments can be installed via:</p>
|
|||
|
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>pip install gymnasium<span class="o">[</span>mujoco<span class="o">]</span>
|
|||
|
</pre></div>
|
|||
|
</div>
|
|||
|
<p>These environments also require that the MuJoCo engine be installed. As of October 2021 DeepMind has acquired MuJoCo and is open sourcing it in 2022, making it free for everyone. Instructions on installing the MuJoCo engine can be found at their <a class="reference external" href="https://mujoco.org">website</a> and <a class="reference external" href="https://github.com/deepmind/mujoco">GitHub repository</a>. Using MuJoCo with Gymnasium also requires that the framework <code class="docutils literal notranslate"><span class="pre">mujoco-py</span></code> be installed, which can be found at the <a class="reference external" href="https://github.com/openai/mujoco-py/tree/master/mujoco_py">GitHub repository</a> (this dependency in installed with the above command).</p>
|
|||
|
<p>There are ten Mujoco environments: Ant, HalfCheetah, Hopper, Humanoid, HumanoidStandup, IvertedDoublePendulum, InvertedPendulum, Reacher, Swimmer, and Walker. All of these environments are stochastic in terms of their initial state, with a Gaussian noise added to a fixed initial state in order to add stochasticity. The state spaces for MuJoCo environments in Gymnasium consist of two parts that are flattened and concatenated together: a position of a body part (’<em>mujoco-py.mjsim.qpos</em>’) or joint and its corresponding velocity (’<em>mujoco-py.mjsim.qvel</em>’). Often, some of the first positional elements are omitted from the state space since the reward is calculated based on their values, leaviing it up to the algorithm to infer those hidden values indirectly.</p>
|
|||
|
<p>Among Gymnasium environments, this set of environments can be considered as more difficult ones to solve by a policy.</p>
|
|||
|
<p>Environments can be configured by changing the XML files or by tweaking the parameters of their classes.</p>
|
|||
|
</section>
|
|||
|
|
|||
|
</article>
|
|||
|
</div>
|
|||
|
<footer>
|
|||
|
|
|||
|
<div class="related-pages">
|
|||
|
|
|||
|
|
|||
|
</div>
|
|||
|
<div class="bottom-of-page">
|
|||
|
<div class="left-details">
|
|||
|
<div class="copyright">
|
|||
|
Copyright © 2022, Farama Foundation
|
|||
|
</div>
|
|||
|
Made with <a href="https://www.sphinx-doc.org/">Sphinx</a> and <a class="muted-link" href="https://pradyunsg.me">@pradyunsg</a>'s
|
|||
|
|
|||
|
<a href="https://github.com/pradyunsg/furo">Furo</a>
|
|||
|
|
|||
|
</div>
|
|||
|
<div class="right-details">
|
|||
|
<div class="icons">
|
|||
|
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
</footer>
|
|||
|
</div>
|
|||
|
<aside class="toc-drawer no-toc">
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</aside>
|
|||
|
</div>
|
|||
|
</div><script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script>
|
|||
|
<script src="../../_static/jquery.js"></script>
|
|||
|
<script src="../../_static/underscore.js"></script>
|
|||
|
<script src="../../_static/_sphinx_javascript_frameworks_compat.js"></script>
|
|||
|
<script src="../../_static/doctools.js"></script>
|
|||
|
<script src="../../_static/scripts/furo.js"></script>
|
|||
|
|
|||
|
|
|||
|
<script>
|
|||
|
(() => {
|
|||
|
if (!localStorage.getItem("shownCookieAlert")) {
|
|||
|
const boxElem = document.createElement("div");
|
|||
|
boxElem.classList.add("cookie_alert");
|
|||
|
const containerElem = document.createElement("div");
|
|||
|
containerElem.classList.add("cookie_container");
|
|||
|
const textElem = document.createElement("p");
|
|||
|
textElem.innerHTML = `This page uses <a href="https://analytics.google.com/">
|
|||
|
Google Analytics</a> to collect statistics. You can disable it by blocking
|
|||
|
the JavaScript coming from www.google-analytics.com.`;
|
|||
|
containerElem.appendChild(textElem);
|
|||
|
const closeBtn = document.createElement("button");
|
|||
|
closeBtn.innerHTML = `<?xml version="1.0" ?><svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><defs><style>.cls-1{fill:none;stroke:#000;stroke-linecap:round;stroke-linejoin:round;stroke-width:2px;}</style></defs><title/><g id="cross"><line class="cls-1" x1="7" x2="25" y1="7" y2="25"/><line class="cls-1" x1="7" x2="25" y1="25" y2="7"/></g></svg>`
|
|||
|
closeBtn.onclick = () => {
|
|||
|
localStorage.setItem("shownCookieAlert", "true");
|
|||
|
boxElem.style.display = "none";
|
|||
|
}
|
|||
|
containerElem.appendChild(closeBtn);
|
|||
|
boxElem.appendChild(containerElem);
|
|||
|
document.body.appendChild(boxElem);
|
|||
|
}
|
|||
|
})()
|
|||
|
|
|||
|
</script>
|
|||
|
|
|||
|
<!-- Google tag (gtag.js) -->
|
|||
|
<script async src="https://www.googletagmanager.com/gtag/js?id=G-JGXSLW7N06"></script>
|
|||
|
<script>
|
|||
|
window.dataLayer = window.dataLayer || [];
|
|||
|
function gtag(){dataLayer.push(arguments);}
|
|||
|
gtag('js', new Date());
|
|||
|
|
|||
|
gtag('config', 'G-JGXSLW7N06');
|
|||
|
</script></body>
|
|||
|
</html>
|