|
@@ -1,557 +0,0 @@
|
|
|
-<!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.19: https://docutils.sourceforge.io/" />
|
|
|
-<link rel="index" title="Index" href="../../genindex/" /><link rel="search" title="Search" href="../../search/" />
|
|
|
- <link rel="canonical" href="https://minigrid.farama.org/environments/simple_crossing_s9_n3.html" />
|
|
|
-
|
|
|
- <link rel="shortcut icon" href="../../_static/minigrid-white.png"/><meta name="generator" content="sphinx-5.2.3, furo 2022.09.15.dev1"/>
|
|
|
- <title>Simple Crossing S9 N3 - MiniGrid Documentation</title>
|
|
|
- <link rel="stylesheet" type="text/css" href="../../_static/pygments.css" />
|
|
|
- <link rel="stylesheet" type="text/css" href="../../_static/styles/furo.css?digest=9ec31e2665bf879c1d47d93a8ec4893870ee1e45" />
|
|
|
- <link rel="stylesheet" type="text/css" href="../../_static/styles/furo-extensions.css?digest=5791a8d218e5c4d0608b4fadc34fbc8cea77e3da" />
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-<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>
|
|
|
-
|
|
|
- <header class="farama-header">
|
|
|
- <div class="farama-header__container">
|
|
|
- <div class="farama-header__left">
|
|
|
- <a href="https://farama.org/">
|
|
|
- <img class="farama-header__logo only-light" src="../../_static/img/minigrid.png" alt="Light Logo"/>
|
|
|
- <img class="farama-header__logo only-dark" src="../../_static/img/minigrid-white.png" alt="Dark Logo"/>
|
|
|
- <h1 class="farama-header__title">MiniGrid Documentation</h1>
|
|
|
- </a>
|
|
|
- </div>
|
|
|
- <div class="farama-header__right">
|
|
|
- <div class="farama-header-menu">
|
|
|
- <div class="farama-header-menu__btn">
|
|
|
- <span class="farama-header-menu__btn-name">
|
|
|
- The Farama Foundation
|
|
|
- </span>
|
|
|
- <svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" xmlns:bx="https://boxy-svg.com">
|
|
|
- <defs></defs>
|
|
|
- <path d="M 3 4.677 C 3 3.751 3.659 3 4.474 3 L 27.526 3 C 28.341 3 29 3.751 29 4.677 C 29 5.603 28.341 6.354 27.526 6.354 L 4.474 6.354 C 3.659 6.354 3 5.603 3 4.677 Z" bx:origin="0.622825 3.875593"></path>
|
|
|
- <path d="M 3 16 C 3 15.074 3.659 14.323 4.474 14.323 L 27.526 14.323 C 28.341 14.323 29 15.074 29 16 C 29 16.926 28.341 17.677 27.526 17.677 L 4.474 17.677 C 3.659 17.677 3 16.926 3 16 Z" bx:origin="0.622825 0.5"></path>
|
|
|
- <path d="M 3 27.323 C 3 26.397 3.659 25.646 4.474 25.646 L 27.526 25.646 C 28.341 25.646 29 26.397 29 27.323 C 29 28.249 28.341 29 27.526 29 L 4.474 29 C 3.659 29 3 28.249 3 27.323 Z" bx:origin="0.622825 -2.875591"></path>
|
|
|
- </svg>
|
|
|
- </div>
|
|
|
- <div class="farama-header-menu__list">
|
|
|
- <div class="farama-header-menu-list__header">
|
|
|
- <a href="https://farama.org">
|
|
|
- <img class="farama-header-menu__logo" src="../../_static/img/farama_solid_white.svg">
|
|
|
- <span>The Farama Foundation</span>
|
|
|
- </a>
|
|
|
- <button id="farama-close-menu">
|
|
|
- <svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="none" stroke="currentColor"
|
|
|
- stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon-close">
|
|
|
- <line x1="3" y1="21" x2="21" y2="3"></line>
|
|
|
- <line x1="3" y1="3" x2="21" y2="21"></line>
|
|
|
- </svg>
|
|
|
- </button>
|
|
|
- </div>
|
|
|
- <div class="farama-header-menu-list__body">
|
|
|
- <span class="farama-header-menu__section-title">Projects</span>
|
|
|
- <ul>
|
|
|
- <li>
|
|
|
- <a href="https://gymnasium.farama.org">Gymnasium</a>
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- <a href="https://pettingzoo.farama.org">PettingZoo</a>
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- <a href="https://github.com/Farama-Foundation/SuperSuit">SuperSuit</a>
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- <a href="https://github.com/Farama-Foundation/MiniGrid">MiniGrid</a>
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- <a href="https://github.com/Farama-Foundation/gym-robotics">Gymnasium-Robotics
|
|
|
- </a>
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- <a href="https://github.com/Farama-Foundation/tinyscaler">Tinyscaler</a>
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- <a href="https://github.com/Farama-Foundation/AutoROM">AutoROM</a>
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- <a href="https://github.com/Farama-Foundation/Jumpy">JumPy</a>
|
|
|
- </li>
|
|
|
- </ul>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </header>
|
|
|
-
|
|
|
- <div class="farama-header-menu__overlay"></div>
|
|
|
-
|
|
|
-
|
|
|
- <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">MiniGrid 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" 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"><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/installation/">Installation</a></li>
|
|
|
-<li class="toctree-l1"><a class="reference internal" href="../../content/basic_usage/">Basic Usage</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="../../content/pubs/">List of publications</a></li>
|
|
|
-</ul>
|
|
|
-<p class="caption" role="heading"><span class="caption-text">Environments</span></p>
|
|
|
-<ul>
|
|
|
-<li class="toctree-l1"><a class="reference internal" href="../design/">General Structure</a></li>
|
|
|
-<li class="toctree-l1 has-children"><a class="reference internal" href="../">Included environments</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="../empty/">Empty</a></li>
|
|
|
-<li class="toctree-l2"><a class="reference internal" href="../four_rooms/">Four Rooms</a></li>
|
|
|
-<li class="toctree-l2"><a class="reference internal" href="../door_key/">Door Key</a></li>
|
|
|
-<li class="toctree-l2"><a class="reference internal" href="../multi_room/">Multi Room</a></li>
|
|
|
-<li class="toctree-l2"><a class="reference internal" href="../fetch/">Fetch</a></li>
|
|
|
-<li class="toctree-l2"><a class="reference internal" href="../go_to_door/">Go To Door</a></li>
|
|
|
-<li class="toctree-l2"><a class="reference internal" href="../put_near/">Put Near</a></li>
|
|
|
-<li class="toctree-l2"><a class="reference internal" href="../red_blue_doors/">Red Blue Doors</a></li>
|
|
|
-<li class="toctree-l2"><a class="reference internal" href="../memory_s7/">Memory S7</a></li>
|
|
|
-<li class="toctree-l2"><a class="reference internal" href="../locked_room/">Locked Room</a></li>
|
|
|
-<li class="toctree-l2"><a class="reference internal" href="../key_corridor_s6_r3/">Key Corridor S6 R3</a></li>
|
|
|
-<li class="toctree-l2"><a class="reference internal" href="../unlock/">Unlock</a></li>
|
|
|
-<li class="toctree-l2"><a class="reference internal" href="../unlock_pickup/">Unlock Pickup</a></li>
|
|
|
-<li class="toctree-l2"><a class="reference internal" href="../blocked_unlock_pickup/">Blocked Unlock Pickup</a></li>
|
|
|
-<li class="toctree-l2"><a class="reference internal" href="../obstructed_maze/">Obstructed Maze</a></li>
|
|
|
-<li class="toctree-l2"><a class="reference internal" href="../dist_shift2/">Dist Shift2</a></li>
|
|
|
-<li class="toctree-l2"><a class="reference internal" href="../lava_gap_s7/">Lava Gap S7</a></li>
|
|
|
-<li class="toctree-l2"><a class="reference internal" href="../simple_crossing_s11_n5/">Simple Crossing S11 N5</a></li>
|
|
|
-<li class="toctree-l2"><a class="reference internal" href="../dynamic/">Dynamic</a></li>
|
|
|
-<li class="toctree-l2"><a class="reference internal" href="../go_to_object/">Go To Object</a></li>
|
|
|
-<li class="toctree-l2"><a class="reference internal" href="../playground/">Playground</a></li>
|
|
|
-</ul>
|
|
|
-</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/MiniGrid">Github</a></li>
|
|
|
-<li class="toctree-l1"><a class="reference external" href="https://farama.org/donations">Donate</a></li>
|
|
|
-<li class="toctree-l1"><a class="reference external" href="https://github.com/Farama-Foundation/MiniGrid/blob/master/.github/PULL_REQUEST_TEMPLATE.md">Contribute to the Docs</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="edit-this-page">
|
|
|
- <a class="muted-link" href="https://github.com/Farama-Foundation/Gymnasium/edit/master/docs/environments/simple_crossing_s9_n3.md" title="Edit this page">
|
|
|
- <svg aria-hidden="true" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
|
|
|
- <path stroke="none" d="M0 0h24v24H0z" fill="none"/>
|
|
|
- <path d="M4 20h4l10.5 -10.5a1.5 1.5 0 0 0 -4 -4l-10.5 10.5v4" />
|
|
|
- <line x1="13.5" y1="6.5" x2="17.5" y2="10.5" />
|
|
|
- </svg>
|
|
|
- <span class="visually-hidden">Edit this page</span>
|
|
|
- </a>
|
|
|
-</div><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" 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="simple-crossing-s9-n3">
|
|
|
-<h1>Simple Crossing S9 N3<a class="headerlink" href="#simple-crossing-s9-n3" title="Permalink to this heading">#</a></h1>
|
|
|
-<section id="description">
|
|
|
-<h2>Description<a class="headerlink" href="#description" title="Permalink to this heading">#</a></h2>
|
|
|
-<p>Depending on the <code class="docutils literal notranslate"><span class="pre">obstacle_type</span></code> parameter:</p>
|
|
|
-<ul class="simple">
|
|
|
-<li><p><code class="docutils literal notranslate"><span class="pre">Lava</span></code> - The agent has to reach the green goal square on the other corner
|
|
|
-of the room while avoiding rivers of deadly lava which terminate the
|
|
|
-episode in failure. Each lava stream runs across the room either
|
|
|
-horizontally or vertically, and has a single crossing point which can be
|
|
|
-safely used; Luckily, a path to the goal is guaranteed to exist. This
|
|
|
-environment is useful for studying safety and safe exploration.</p></li>
|
|
|
-<li><p>otherwise - Similar to the <code class="docutils literal notranslate"><span class="pre">LavaCrossing</span></code> environment, the agent has to
|
|
|
-reach the green goal square on the other corner of the room, however
|
|
|
-lava is replaced by walls. This MDP is therefore much easier and maybe
|
|
|
-useful for quickly testing your algorithms.</p></li>
|
|
|
-</ul>
|
|
|
-</section>
|
|
|
-<section id="mission-space">
|
|
|
-<h2>Mission Space<a class="headerlink" href="#mission-space" title="Permalink to this heading">#</a></h2>
|
|
|
-<p>Depending on the <code class="docutils literal notranslate"><span class="pre">obstacle_type</span></code> parameter:</p>
|
|
|
-<ul class="simple">
|
|
|
-<li><p><code class="docutils literal notranslate"><span class="pre">Lava</span></code> - “avoid the lava and get to the green goal square”</p></li>
|
|
|
-<li><p>otherwise - “find the opening and get to the green goal square”</p></li>
|
|
|
-</ul>
|
|
|
-</section>
|
|
|
-<section id="action-space">
|
|
|
-<h2>Action Space<a class="headerlink" href="#action-space" title="Permalink to this heading">#</a></h2>
|
|
|
-<div class="table-wrapper colwidths-auto docutils container">
|
|
|
-<table class="docutils align-default">
|
|
|
-<thead>
|
|
|
-<tr class="row-odd"><th class="head"><p>Num</p></th>
|
|
|
-<th class="head"><p>Name</p></th>
|
|
|
-<th class="head"><p>Action</p></th>
|
|
|
-</tr>
|
|
|
-</thead>
|
|
|
-<tbody>
|
|
|
-<tr class="row-even"><td><p>0</p></td>
|
|
|
-<td><p>left</p></td>
|
|
|
-<td><p>Turn left</p></td>
|
|
|
-</tr>
|
|
|
-<tr class="row-odd"><td><p>1</p></td>
|
|
|
-<td><p>right</p></td>
|
|
|
-<td><p>Turn right</p></td>
|
|
|
-</tr>
|
|
|
-<tr class="row-even"><td><p>2</p></td>
|
|
|
-<td><p>forward</p></td>
|
|
|
-<td><p>Move forward</p></td>
|
|
|
-</tr>
|
|
|
-<tr class="row-odd"><td><p>3</p></td>
|
|
|
-<td><p>pickup</p></td>
|
|
|
-<td><p>Unused</p></td>
|
|
|
-</tr>
|
|
|
-<tr class="row-even"><td><p>4</p></td>
|
|
|
-<td><p>drop</p></td>
|
|
|
-<td><p>Unused</p></td>
|
|
|
-</tr>
|
|
|
-<tr class="row-odd"><td><p>5</p></td>
|
|
|
-<td><p>toggle</p></td>
|
|
|
-<td><p>Unused</p></td>
|
|
|
-</tr>
|
|
|
-<tr class="row-even"><td><p>6</p></td>
|
|
|
-<td><p>done</p></td>
|
|
|
-<td><p>Unused</p></td>
|
|
|
-</tr>
|
|
|
-</tbody>
|
|
|
-</table>
|
|
|
-</div>
|
|
|
-</section>
|
|
|
-<section id="observation-encoding">
|
|
|
-<h2>Observation Encoding<a class="headerlink" href="#observation-encoding" title="Permalink to this heading">#</a></h2>
|
|
|
-<ul class="simple">
|
|
|
-<li><p>Each tile is encoded as a 3 dimensional tuple:
|
|
|
-<code class="docutils literal notranslate"><span class="pre">(OBJECT_IDX,</span> <span class="pre">COLOR_IDX,</span> <span class="pre">STATE)</span></code></p></li>
|
|
|
-<li><p><code class="docutils literal notranslate"><span class="pre">OBJECT_TO_IDX</span></code> and <code class="docutils literal notranslate"><span class="pre">COLOR_TO_IDX</span></code> mapping can be found in
|
|
|
-<span class="xref myst">minigrid/minigrid.py</span></p></li>
|
|
|
-<li><p><code class="docutils literal notranslate"><span class="pre">STATE</span></code> refers to the door state with 0=open, 1=closed and 2=locked</p></li>
|
|
|
-</ul>
|
|
|
-</section>
|
|
|
-<section id="rewards">
|
|
|
-<h2>Rewards<a class="headerlink" href="#rewards" title="Permalink to this heading">#</a></h2>
|
|
|
-<p>A reward of ‘1’ is given for success, and ‘0’ for failure.</p>
|
|
|
-</section>
|
|
|
-<section id="termination">
|
|
|
-<h2>Termination<a class="headerlink" href="#termination" title="Permalink to this heading">#</a></h2>
|
|
|
-<p>The episode ends if any one of the following conditions is met:</p>
|
|
|
-<ol class="arabic simple">
|
|
|
-<li><p>The agent reaches the goal.</p></li>
|
|
|
-<li><p>The agent falls into lava.</p></li>
|
|
|
-<li><p>Timeout (see <code class="docutils literal notranslate"><span class="pre">max_steps</span></code>).</p></li>
|
|
|
-</ol>
|
|
|
-</section>
|
|
|
-<section id="registered-configurations">
|
|
|
-<h2>Registered Configurations<a class="headerlink" href="#registered-configurations" title="Permalink to this heading">#</a></h2>
|
|
|
-<p>S: size of the map SxS.
|
|
|
-N: number of valid crossings across lava or walls from the starting position
|
|
|
-to the goal</p>
|
|
|
-<ul class="simple">
|
|
|
-<li><p><code class="docutils literal notranslate"><span class="pre">Lava</span></code> :</p>
|
|
|
-<ul>
|
|
|
-<li><p><code class="docutils literal notranslate"><span class="pre">MiniGrid-LavaCrossingS9N1-v0</span></code></p></li>
|
|
|
-<li><p><code class="docutils literal notranslate"><span class="pre">MiniGrid-LavaCrossingS9N2-v0</span></code></p></li>
|
|
|
-<li><p><code class="docutils literal notranslate"><span class="pre">MiniGrid-LavaCrossingS9N3-v0</span></code></p></li>
|
|
|
-<li><p><code class="docutils literal notranslate"><span class="pre">MiniGrid-LavaCrossingS11N5-v0</span></code></p></li>
|
|
|
-</ul>
|
|
|
-</li>
|
|
|
-<li><p>otherwise :</p>
|
|
|
-<ul>
|
|
|
-<li><p><code class="docutils literal notranslate"><span class="pre">MiniGrid-SimpleCrossingS9N1-v0</span></code></p></li>
|
|
|
-<li><p><code class="docutils literal notranslate"><span class="pre">MiniGrid-SimpleCrossingS9N2-v0</span></code></p></li>
|
|
|
-<li><p><code class="docutils literal notranslate"><span class="pre">MiniGrid-SimpleCrossingS9N3-v0</span></code></p></li>
|
|
|
-<li><p><code class="docutils literal notranslate"><span class="pre">MiniGrid-SimpleCrossingS11N5-v0</span></code></p></li>
|
|
|
-</ul>
|
|
|
-</li>
|
|
|
-</ul>
|
|
|
-</section>
|
|
|
-</section>
|
|
|
-
|
|
|
- </article>
|
|
|
- </div>
|
|
|
- <footer>
|
|
|
-
|
|
|
- <div class="related-pages">
|
|
|
-
|
|
|
-
|
|
|
- </div>
|
|
|
- <div class="bottom-of-page">
|
|
|
- <div class="left-details">
|
|
|
- <div class="copyright">
|
|
|
- Copyright © 2022
|
|
|
- </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">
|
|
|
-
|
|
|
-
|
|
|
- <div class="toc-sticky toc-scroll">
|
|
|
- <div class="toc-title-container">
|
|
|
- <span class="toc-title">
|
|
|
- On this page
|
|
|
- </span>
|
|
|
- </div>
|
|
|
- <div class="toc-tree-container">
|
|
|
- <div class="toc-tree">
|
|
|
- <ul>
|
|
|
-<li><a class="reference internal" href="#">Simple Crossing S9 N3</a><ul>
|
|
|
-<li><a class="reference internal" href="#description">Description</a></li>
|
|
|
-<li><a class="reference internal" href="#mission-space">Mission Space</a></li>
|
|
|
-<li><a class="reference internal" href="#action-space">Action Space</a></li>
|
|
|
-<li><a class="reference internal" href="#observation-encoding">Observation Encoding</a></li>
|
|
|
-<li><a class="reference internal" href="#rewards">Rewards</a></li>
|
|
|
-<li><a class="reference internal" href="#termination">Termination</a></li>
|
|
|
-<li><a class="reference internal" href="#registered-configurations">Registered Configurations</a></li>
|
|
|
-</ul>
|
|
|
-</li>
|
|
|
-</ul>
|
|
|
-
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
-
|
|
|
- </aside>
|
|
|
- </div>
|
|
|
-</div>
|
|
|
- <script>
|
|
|
- let toggleMenu = () => {
|
|
|
- document.querySelector(".farama-header-menu").classList.toggle("active");
|
|
|
- document.querySelector(".farama-header-menu__overlay").classList.toggle("active");
|
|
|
- }
|
|
|
-
|
|
|
- document.querySelector(".farama-header-menu__btn").addEventListener("click", toggleMenu);
|
|
|
- document.getElementById("farama-close-menu").addEventListener("click", toggleMenu);
|
|
|
- document.querySelector(".farama-header-menu__overlay").addEventListener("click", toggleMenu);
|
|
|
-
|
|
|
- window.onclick = function(event) {
|
|
|
- if (!event.target.matches('.farama-header-menu__btn')) {
|
|
|
- const dropdown = document.querySelector(".farama-header-menu__list");
|
|
|
- if (dropdown.classList.contains('active')) {
|
|
|
- dropdown.classList.remove('active');
|
|
|
- document.querySelector(".farama-header-menu__overlay").classList.remove("active");
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- </script>
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- <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/sphinx_highlight.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>
|