Skip to content

Commit

Permalink
Fix numbering of tutorial tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
orzechow committed Nov 26, 2024
1 parent f5d7159 commit d09deff
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 18 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ It's based on this demo and guides you through all important concepts:
0. [Introduction – start here!](./docs/Tutorial.md)
1. [Implement your first behavior component](./docs/tasks/1_implement_behavior_component.md)
2. [Extend the arbitration graph with that behavior](./docs/tasks/2_extend_arbitration_graph.md)
3. [Learn about nested arbitration graphs](./docs/tasks/4_nested_arbitrators.md)
4. [Arbitrate based on predicted utility](./docs/tasks/5_cost_arbitration.md)
5. [Verify commands and add a fallback strategy](./docs/tasks/6_verification.md)
3. [Learn about nested arbitration graphs](./docs/tasks/3_nested_arbitrators.md)
4. [Arbitrate based on predicted utility](./docs/tasks/4_cost_arbitration.md)
5. [Verify commands and add a fallback strategy](./docs/tasks/5_verification.md)


## Installation
Expand Down
10 changes: 5 additions & 5 deletions docs/Tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ You guessed it, it contains the environment model for the arbitration graph.
In it, we store things like current positions of Pac-Man and the ghosts, the maze, several utility functions
and other things required by the behavior components.

The `cost_estimator.hpp` file will be relevant for a later task when we cover [cost arbitrators](./tasks/5_cost_arbitration.md).
The `cost_estimator.hpp` file will be relevant for a later task when we cover [cost arbitrators](./tasks/4_cost_arbitration.md).

Similarly, the `verifier.hpp` file will be used to add a verification layer to the arbitration graph [near the end](./tasks/6_verification.md) of the tutorial.
Similarly, the `verifier.hpp` file will be used to add a verification layer to the arbitration graph [near the end](./tasks/5_verification.md) of the tutorial.

Finally, in `pacman_agent.hpp`, the behavior components are assembled into an arbitration graph.
It's also where you'll spend most of your time during this tutorial.
Expand All @@ -131,6 +131,6 @@ With the basics out of the way, let's work through the tasks.

1. [Implement your first behavior component](./tasks/1_implement_behavior_component.md)
2. [Extend the arbitration graph with that behavior](./tasks/2_extend_arbitration_graph.md)
3. [Learn about nested arbitration graphs](./tasks/4_nested_arbitrators.md)
4. [Arbitrate based on predicted utility](./tasks/5_cost_arbitration.md)
5. [Verify commands and add a fallback strategy](./tasks/6_verification.md)
3. [Learn about nested arbitration graphs](./tasks/3_nested_arbitrators.md)
4. [Arbitrate based on predicted utility](./tasks/4_cost_arbitration.md)
5. [Verify commands and add a fallback strategy](./tasks/5_verification.md)
2 changes: 1 addition & 1 deletion docs/tasks/2_extend_arbitration_graph.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,4 @@ explicit PacmanAgent(const entt::Game& game)
|
[Tutorial Home](../Tutorial.md)
|
[Next task →](4_nested_arbitrators.md)
[Next task →](3_nested_arbitrators.md)
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: "Arbitration Graphs Tutorial"
menu_title: "Nesting"
---

# Task 4: Nested arbitration graphs
# Task 3: Nested arbitration graphs

Integrate a long-term behavior and add another layer to the arbitration graph.

Expand All @@ -18,7 +18,7 @@ The `ChangeDotCluster` behavior will move Pac-man to an area in the maze where t
For now, we'll just decide between the two dot eating strategies using chance.
We can achieve that by adding them to a random arbitrator which is then added as an option to the root arbitrator.

There are more sophisticated ways to decide between behavior components, we'll cover those in the [next task](5_cost_arbitration.md).
There are more sophisticated ways to decide between behavior components, we'll cover those in the [next task](4_cost_arbitration.md).

## Goal

Expand Down Expand Up @@ -94,4 +94,4 @@ explicit PacmanAgent(const entt::Game& game)
|
[Tutorial Home](../Tutorial.md)
|
[Next task →](5_cost_arbitration.md)
[Next task →](4_cost_arbitration.md)
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ title: "Arbitration Graphs Tutorial"
menu_title: "Cost Arbitrator"
---

# Task 5: Arbitrate based on predicted utility
# Task 4: Arbitrate based on predicted utility

Learn how the cost arbitrator can help you to arbitrate between behaviors based on their expected cost/utility.

## Context

The `EatDot` arbitrator we added in the [previous task](4_nested_arbitrators.md) decides between the two dot eating strategies randomly.
The `EatDot` arbitrator we added in the [previous task](3_nested_arbitrators.md) decides between the two dot eating strategies randomly.
That's obviously not the greatest idea.
There must be a better way.

Expand Down Expand Up @@ -140,8 +140,8 @@ explicit PacmanAgent(const entt::Game& game)


---
[← Previous task](4_nested_arbitrators.md)
[← Previous task](3_nested_arbitrators.md)
|
[Tutorial Home](../Tutorial.md)
|
[Next task →](6_verification.md)
[Next task →](5_verification.md)
4 changes: 2 additions & 2 deletions docs/tasks/6_verification.md → docs/tasks/5_verification.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: "Arbitration Graphs Tutorial"
menu_title: "Verification and Fallbacks"
---

# Task 6: Better safe than sorry
# Task 5: Better safe than sorry

Execute only safe commands and add a fallback strategy.

Expand Down Expand Up @@ -141,6 +141,6 @@ Make sure to also pass the verifier to the arbitrator constructors:
---
[← Previous task](5_cost_arbitration.md)
[← Previous task](4_cost_arbitration.md)
|
[Tutorial Home](../Tutorial.md)

0 comments on commit d09deff

Please sign in to comment.