Skip to content

Commit

Permalink
fix(website): fix dangling links
Browse files Browse the repository at this point in the history
  • Loading branch information
DanySK committed Jan 24, 2022
1 parent 93e7ad6 commit 866371d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 50 deletions.
2 changes: 1 addition & 1 deletion src/main/hugo/content/explanation/pathfinding/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ summary = "Strategies to navigate the environment."
+++

This section explains the pathfinding strategies and algorithms of Alchemist.
Instructions on how to exercise them are available [here](/howtos/simulation/pathfinding).
Instructions on how to exercise them are available [here](/howtos/simulation/environment/pathfinding).

## Navigation graphs

Expand Down
49 changes: 0 additions & 49 deletions src/main/hugo/content/howtos/simulation/environment/maps/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,52 +44,3 @@ We prepared [a dedicated page](../../deploy/gps) on the argument
{{% notice tip "Navigate nodes in map environment" %}}
We prepared [a dedicated page](../../program/move-on-maps/) on the argument
{{% /notice %}}



## Navigation

---

![indoor simulation](indoor_simulation.png)

Indoor environments
(bidimensional spaces with obstacles)
can be generated from images by leveraging
{{% api package="model.implementations.environments" class="ImageEnvironment" %}},
which loads the map as raster image from file,
interpreting the black pixels as obstacles
(wall-like areas not accessible to nodes).
Color of pixels that represents obstacles can be set to
every color with a constructor's parameter, black is default.

By default, each pixel is considered as a 1x1 block.
As a consequence, a 1200x600 image with a vertical line of black pixels at coordinate 500 will be interpreted as a single
obstacle of size 1x600 starting at coordinate (500, 0).
It is possible to scale up or down the size of the environment by acting on the zoom parameter of
{{% api package="model.implementations.environments" class="ImageEnvironment" %}},
as well as changing the initial coordinates.

## Examples

{{% projectimage "alchemist-cognitive-agents/src/test/resources/images/multiple-exits.png" %}}
{{< code path="alchemist-cognitive-agents/src/test/resources/multiple-exits.yml" >}}

---

{{% projectimage "alchemist-cognitive-agents/src/test/resources/images/obstacles.png" %}}
{{< code path="alchemist-cognitive-agents/src/test/resources/obstacle-avoidance.yml" >}}

---

{{% projectimage "src/test/resources/planimetry.png" %}}
{{< code path="src/test/resources/website-snippets/steering-actions.yml" >}}

---

{{% projectimage "src/test/resources/chiaravalle.png" %}}

* Direct reference to the image
{{< code path="src/test/resources/website-snippets/walk-church.yml" >}}
* Search for the image in the file system via Kotlin
{{< code path="src/test/resources/website-snippets/variables-export.yml" >}}

0 comments on commit 866371d

Please sign in to comment.