Skip to content

Commit

Permalink
Deploying to gh-pages from @ 7415379 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
eleurent committed Apr 27, 2024
1 parent 00b8d2f commit 0f0285a
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 19 deletions.
Binary file modified main/_images/index_1_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified main/_images/index_2_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified main/_images/index_2_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified main/_images/index_2_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified main/_images/index_3_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified main/_images/quickstart_0_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified main/_images/quickstart_2_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion main/_modules/highway_env/envs/common/observation/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,9 @@ <h1>Source code for highway_env.envs.common.observation</h1><div class="highligh
<span class="n">pd</span><span class="o">.</span><span class="n">DataFrame</span><span class="o">.</span><span class="n">from_records</span><span class="p">([</span><span class="bp">self</span><span class="o">.</span><span class="n">observer_vehicle</span><span class="o">.</span><span class="n">to_dict</span><span class="p">()])[</span><span class="bp">self</span><span class="o">.</span><span class="n">features</span><span class="p">]</span>
<span class="p">)</span>
<span class="n">goal</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">ravel</span><span class="p">(</span>
<span class="n">pd</span><span class="o">.</span><span class="n">DataFrame</span><span class="o">.</span><span class="n">from_records</span><span class="p">([</span><span class="bp">self</span><span class="o">.</span><span class="n">env</span><span class="o">.</span><span class="n">goal</span><span class="o">.</span><span class="n">to_dict</span><span class="p">()])[</span><span class="bp">self</span><span class="o">.</span><span class="n">features</span><span class="p">]</span>
<span class="n">pd</span><span class="o">.</span><span class="n">DataFrame</span><span class="o">.</span><span class="n">from_records</span><span class="p">([</span><span class="bp">self</span><span class="o">.</span><span class="n">observer_vehicle</span><span class="o">.</span><span class="n">goal</span><span class="o">.</span><span class="n">to_dict</span><span class="p">()])[</span>
<span class="bp">self</span><span class="o">.</span><span class="n">features</span>
<span class="p">]</span>
<span class="p">)</span>
<span class="n">obs</span> <span class="o">=</span> <span class="n">OrderedDict</span><span class="p">(</span>
<span class="p">[</span>
Expand Down
15 changes: 8 additions & 7 deletions main/_modules/highway_env/envs/parking_env/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -490,13 +490,14 @@ <h1>Source code for highway_env.envs.parking_env</h1><div class="highlight"><pre
<span class="n">empty_spots</span><span class="o">.</span><span class="n">remove</span><span class="p">(</span><span class="n">vehicle</span><span class="o">.</span><span class="n">lane_index</span><span class="p">)</span>

<span class="c1"># Goal</span>
<span class="n">lane_index</span> <span class="o">=</span> <span class="n">empty_spots</span><span class="p">[</span><span class="bp">self</span><span class="o">.</span><span class="n">np_random</span><span class="o">.</span><span class="n">choice</span><span class="p">(</span><span class="n">np</span><span class="o">.</span><span class="n">arange</span><span class="p">(</span><span class="nb">len</span><span class="p">(</span><span class="n">empty_spots</span><span class="p">)))]</span>
<span class="n">lane</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">road</span><span class="o">.</span><span class="n">network</span><span class="o">.</span><span class="n">get_lane</span><span class="p">(</span><span class="n">lane_index</span><span class="p">)</span>
<span class="bp">self</span><span class="o">.</span><span class="n">goal</span> <span class="o">=</span> <span class="n">Landmark</span><span class="p">(</span>
<span class="bp">self</span><span class="o">.</span><span class="n">road</span><span class="p">,</span> <span class="n">lane</span><span class="o">.</span><span class="n">position</span><span class="p">(</span><span class="n">lane</span><span class="o">.</span><span class="n">length</span> <span class="o">/</span> <span class="mi">2</span><span class="p">,</span> <span class="mi">0</span><span class="p">),</span> <span class="n">heading</span><span class="o">=</span><span class="n">lane</span><span class="o">.</span><span class="n">heading</span>
<span class="p">)</span>
<span class="bp">self</span><span class="o">.</span><span class="n">road</span><span class="o">.</span><span class="n">objects</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">goal</span><span class="p">)</span>
<span class="n">empty_spots</span><span class="o">.</span><span class="n">remove</span><span class="p">(</span><span class="n">lane_index</span><span class="p">)</span>
<span class="k">for</span> <span class="n">vehicle</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">controlled_vehicles</span><span class="p">:</span>
<span class="n">lane_index</span> <span class="o">=</span> <span class="n">empty_spots</span><span class="p">[</span><span class="bp">self</span><span class="o">.</span><span class="n">np_random</span><span class="o">.</span><span class="n">choice</span><span class="p">(</span><span class="n">np</span><span class="o">.</span><span class="n">arange</span><span class="p">(</span><span class="nb">len</span><span class="p">(</span><span class="n">empty_spots</span><span class="p">)))]</span>
<span class="n">lane</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">road</span><span class="o">.</span><span class="n">network</span><span class="o">.</span><span class="n">get_lane</span><span class="p">(</span><span class="n">lane_index</span><span class="p">)</span>
<span class="n">vehicle</span><span class="o">.</span><span class="n">goal</span> <span class="o">=</span> <span class="n">Landmark</span><span class="p">(</span>
<span class="bp">self</span><span class="o">.</span><span class="n">road</span><span class="p">,</span> <span class="n">lane</span><span class="o">.</span><span class="n">position</span><span class="p">(</span><span class="n">lane</span><span class="o">.</span><span class="n">length</span> <span class="o">/</span> <span class="mi">2</span><span class="p">,</span> <span class="mi">0</span><span class="p">),</span> <span class="n">heading</span><span class="o">=</span><span class="n">lane</span><span class="o">.</span><span class="n">heading</span>
<span class="p">)</span>
<span class="bp">self</span><span class="o">.</span><span class="n">road</span><span class="o">.</span><span class="n">objects</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">vehicle</span><span class="o">.</span><span class="n">goal</span><span class="p">)</span>
<span class="n">empty_spots</span><span class="o">.</span><span class="n">remove</span><span class="p">(</span><span class="n">lane_index</span><span class="p">)</span>

<span class="c1"># Other vehicles</span>
<span class="k">for</span> <span class="n">i</span> <span class="ow">in</span> <span class="nb">range</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">config</span><span class="p">[</span><span class="s2">&quot;vehicles_count&quot;</span><span class="p">]):</span>
Expand Down
20 changes: 10 additions & 10 deletions main/observations/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -557,25 +557,25 @@ <h3>Example configuration<a class="headerlink" href="#example-configuration" tit
</div>
</div>
<div class="cell_output docutils container">
<div class="output stream highlight-none notranslate"><div class="highlight"><pre><span></span>[[ 1. 1. 0.04 1. 0. 1.
<div class="output stream highlight-none notranslate"><div class="highlight"><pre><span></span>[[ 1. 1. 0. 1. 0. 1.
0. ]
[ 1. 0.2099368 0.08 -0.15944125 0. 1.
[ 1. 0.21035536 0.04 -0.17523918 0. 1.
0. ]
[ 1. 0.40661374 0.04 -0.18380468 0. 1.
[ 1. 0.40402895 0.04 -0.13840951 0. 1.
0. ]
[ 1. 0.6273583 -0.04 -0.19349173 0. 1.
[ 1. 0.5986142 0. -0.13081288 0. 1.
0. ]
[ 1. 0.81610954 0.04 -0.17074487 0. 1.
[ 1. 0.82453406 0. -0.10438338 0. 1.
0. ]
[ 1. 1. -0.04 -0.05068094 0. 1.
[ 1. 1. 0.04 -0.1263917 0. 1.
0. ]
[ 1. 1. 0.08 -0.16731061 0. 1.
[ 1. 1. 0.08 -0.15258752 0. 1.
0. ]
[ 1. 1. 0.04 -0.08437388 0. 1.
[ 1. 1. 0.04 -0.13641344 0. 1.
0. ]
[ 1. 1. 0.04 -0.08211736 0. 1.
[ 1. 1. 0.04 -0.08932057 0. 1.
0. ]
[ 1. 1. 0.08 -0.06227124 0. 1.
[ 1. 1. 0. -0.15000531 0. 1.
0. ]
[ 0. 0. 0. 0. 0. 0.
0. ]
Expand Down
2 changes: 1 addition & 1 deletion main/searchindex.js

Large diffs are not rendered by default.

0 comments on commit 0f0285a

Please sign in to comment.