Skip to content
Snippets Groups Projects
Commit e9f4408a authored by u214892's avatar u214892
Browse files

#160 predictor documentation

parent 9b298461
No related branches found
No related tags found
No related merge requests found
...@@ -64,6 +64,10 @@ instance/ ...@@ -64,6 +64,10 @@ instance/
# Sphinx documentation # Sphinx documentation
docs/_build/ docs/_build/
docs/flatland*.rst
docs/modules.rst
docs/changelog.md
docs/flatland_2.0.md
# PyBuilder # PyBuilder
target/ target/
...@@ -112,4 +116,4 @@ ENV/ ...@@ -112,4 +116,4 @@ ENV/
images/test/ images/test/
test_save.dat test_save.dat
.visualizations .visualizations
\ No newline at end of file
...@@ -69,7 +69,7 @@ coverage: ## check code coverage quickly with the default Python ...@@ -69,7 +69,7 @@ coverage: ## check code coverage quickly with the default Python
docs: ## generate Sphinx HTML documentation, including API docs docs: ## generate Sphinx HTML documentation, including API docs
rm -f docs/flatland*.rst rm -f docs/flatland*.rst
rm -f docs/modules.rst rm -f docs/modules.rst
sphinx-apidoc --force -a -e -o docs/ flatland sphinx-apidoc --force -a -e -o docs/ flatland -H "Flatland Reference"
$(MAKE) -C docs clean $(MAKE) -C docs clean
cp *.md docs cp *.md docs
$(MAKE) -C docs html $(MAKE) -C docs html
......
Keeping track of major Flatland Changes Changelog
======================================= ==========
Changes since Flatland 0.3 Changes since Flatland 0.3
-------------------------- --------------------------
......
...@@ -41,7 +41,8 @@ Frequently Asked Questions (FAQs) ...@@ -41,7 +41,8 @@ Frequently Asked Questions (FAQs)
.. _importlib-resources: https://importlib-resources.readthedocs.io/en/latest/ .. _importlib-resources: https://importlib-resources.readthedocs.io/en/latest/
Renders the scene into a image (screenshot) Renders the scene into a image (screenshot)
.. code-block:: python .. code-block:: python
renderer.gl.save_image("filename.bmp") renderer.gl.save_image("filename.bmp")
...@@ -11,13 +11,14 @@ Welcome to flatland's documentation! ...@@ -11,13 +11,14 @@ Welcome to flatland's documentation!
gettingstarted gettingstarted
intro_observationbuilder intro_observationbuilder
specifications/specifications.md specifications/specifications.md
localevaluation
modules modules
FAQ FAQ
localevaluation
contributing contributing
authors
changelog.md changelog.md
flatland_2.0.md flatland_2.0.md
authors
......
===== =====
Getting Started with custom observations Getting Started with custom observations and custom predictors
===== =====
Overview Overview
......
flatland
========
.. toctree::
:maxdepth: 4
flatland
Flatland Environment Specifications Flatland Specs
========================== ==========================
In a humand-readable language: What are **Flatland** specs about?
---------------------------------
In a humand-readable language, they provide
* code base overview (hand-drawn concept) * code base overview (hand-drawn concept)
* key concepts (generators, envs) and how are they linked * key concepts (generators, envs) and how are they linked
* link relevant code base * link relevant code base
...@@ -312,5 +314,22 @@ In case of the root node, the values are [0, 0, 0, 0, distance from agent to tar ...@@ -312,5 +314,22 @@ In case of the root node, the values are [0, 0, 0, 0, distance from agent to tar
In case the target node is reached, the values are [0, 0, 0, 0, 0]. In case the target node is reached, the values are [0, 0, 0, 0, 0].
## Predictors
Predictors make predictions on future agents' moves based on the current state of the environment.
They are decoupled from observation builders in order to be encapsulate the functionality and to make it re-usable.
For instance, `TreeObsForRailEnv` optionally uses the predicted the predicted trajectories while exploring
the branches of an agent's future moves to detect future conflicts.
The general call structure is as follows:
```
RailEnv.step()
-> ObservationBuilder.get_many()
-> self.predictor.get()
self.get()
self.get()
...
```
## [Rendering](rendering) ## [Rendering](rendering)
## [Railway](railway) ## [Railway](railway)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment