Skip to content

Commit

Permalink
add human to render mode for docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jjshoots committed Jul 20, 2023
1 parent 5365f85 commit d017ee4
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The goal of this environment is to fly a fixedwing aircraft towards a set of way
import gymnasium
import PyFlyt.gym_envs

env = gymnasium.make("PyFlyt/Fixedwing-Waypoints-v0")
env = gymnasium.make("PyFlyt/Fixedwing-Waypoints-v0", render_mode="human")

term, trunc = False, False
obs, _ = env.reset()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The goal of this environment is to fly a quadrotor aircraft towards a set of way
import gymnasium
import PyFlyt.gym_envs

env = gymnasium.make("PyFlyt/QuadX-Waypoints-v0")
env = gymnasium.make("PyFlyt/QuadX-Waypoints-v0", render_mode="human")

term, trunc = False, False
obs, _ = env.reset()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The goal of this environment is to land a rocket falling at terminal velocity on
import gymnasium
import PyFlyt.gym_envs

env = gymnasium.make("PyFlyt/Rocket-Landing-v0")
env = gymnasium.make("PyFlyt/Rocket-Landing-v0", render_mode="human")

term, trunc = False, False
obs, _ = env.reset()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ <h2>Usage<a class="headerlink" href="#usage" title="Permalink to this heading">#
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="kn">import</span> <span class="nn">gymnasium</span>
<span class="kn">import</span> <span class="nn">PyFlyt.gym_envs</span>

<span class="n">env</span> <span class="o">=</span> <span class="n">gymnasium</span><span class="o">.</span><span class="n">make</span><span class="p">(</span><span class="s2">&quot;PyFlyt/Fixedwing-Waypoints-v0&quot;</span><span class="p">)</span>
<span class="n">env</span> <span class="o">=</span> <span class="n">gymnasium</span><span class="o">.</span><span class="n">make</span><span class="p">(</span><span class="s2">&quot;PyFlyt/Fixedwing-Waypoints-v0&quot;</span><span class="p">,</span> <span class="n">render_mode</span><span class="o">=</span><span class="s2">&quot;human&quot;</span><span class="p">)</span>

<span class="n">term</span><span class="p">,</span> <span class="n">trunc</span> <span class="o">=</span> <span class="kc">False</span><span class="p">,</span> <span class="kc">False</span>
<span class="n">obs</span><span class="p">,</span> <span class="n">_</span> <span class="o">=</span> <span class="n">env</span><span class="o">.</span><span class="n">reset</span><span class="p">()</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ <h2>Usage<a class="headerlink" href="#usage" title="Permalink to this heading">#
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="kn">import</span> <span class="nn">gymnasium</span>
<span class="kn">import</span> <span class="nn">PyFlyt.gym_envs</span>

<span class="n">env</span> <span class="o">=</span> <span class="n">gymnasium</span><span class="o">.</span><span class="n">make</span><span class="p">(</span><span class="s2">&quot;PyFlyt/QuadX-Waypoints-v0&quot;</span><span class="p">)</span>
<span class="n">env</span> <span class="o">=</span> <span class="n">gymnasium</span><span class="o">.</span><span class="n">make</span><span class="p">(</span><span class="s2">&quot;PyFlyt/QuadX-Waypoints-v0&quot;</span><span class="p">,</span> <span class="n">render_mode</span><span class="o">=</span><span class="s2">&quot;human&quot;</span><span class="p">)</span>

<span class="n">term</span><span class="p">,</span> <span class="n">trunc</span> <span class="o">=</span> <span class="kc">False</span><span class="p">,</span> <span class="kc">False</span>
<span class="n">obs</span><span class="p">,</span> <span class="n">_</span> <span class="o">=</span> <span class="n">env</span><span class="o">.</span><span class="n">reset</span><span class="p">()</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ <h2>Usage<a class="headerlink" href="#usage" title="Permalink to this heading">#
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="kn">import</span> <span class="nn">gymnasium</span>
<span class="kn">import</span> <span class="nn">PyFlyt.gym_envs</span>

<span class="n">env</span> <span class="o">=</span> <span class="n">gymnasium</span><span class="o">.</span><span class="n">make</span><span class="p">(</span><span class="s2">&quot;PyFlyt/Rocket-Landing-v0&quot;</span><span class="p">)</span>
<span class="n">env</span> <span class="o">=</span> <span class="n">gymnasium</span><span class="o">.</span><span class="n">make</span><span class="p">(</span><span class="s2">&quot;PyFlyt/Rocket-Landing-v0&quot;</span><span class="p">,</span> <span class="n">render_mode</span><span class="o">=</span><span class="s2">&quot;human&quot;</span><span class="p">)</span>

<span class="n">term</span><span class="p">,</span> <span class="n">trunc</span> <span class="o">=</span> <span class="kc">False</span><span class="p">,</span> <span class="kc">False</span>
<span class="n">obs</span><span class="p">,</span> <span class="n">_</span> <span class="o">=</span> <span class="n">env</span><span class="o">.</span><span class="n">reset</span><span class="p">()</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The goal of this environment is to fly a fixedwing aircraft towards a set of way
import gymnasium
import PyFlyt.gym_envs

env = gymnasium.make("PyFlyt/Fixedwing-Waypoints-v0")
env = gymnasium.make("PyFlyt/Fixedwing-Waypoints-v0", render_mode="human")

term, trunc = False, False
obs, _ = env.reset()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The goal of this environment is to fly a quadrotor aircraft towards a set of way
import gymnasium
import PyFlyt.gym_envs

env = gymnasium.make("PyFlyt/QuadX-Waypoints-v0")
env = gymnasium.make("PyFlyt/QuadX-Waypoints-v0", render_mode="human")

term, trunc = False, False
obs, _ = env.reset()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The goal of this environment is to land a rocket falling at terminal velocity on
import gymnasium
import PyFlyt.gym_envs

env = gymnasium.make("PyFlyt/Rocket-Landing-v0")
env = gymnasium.make("PyFlyt/Rocket-Landing-v0", render_mode="human")

term, trunc = False, False
obs, _ = env.reset()
Expand Down

0 comments on commit d017ee4

Please sign in to comment.