Skip to content
Snippets Groups Projects
Commit 0200b1a5 authored by GATEAU Thibault's avatar GATEAU Thibault
Browse files

[TP02] consignes ok

parent 89925412
Branches
No related tags found
No related merge requests found
......@@ -19,11 +19,16 @@
(isCarryable soupLite)
(isCarryable soup)
(at a1 deliveryloc)
;(at a1 faraway)
(at soupLite deliveryloc)
;(at soupLite cookLoc)
(isReadyToServe soupLite)
(at onion0 chopLoc)
(at onion3 stock)
......
......@@ -17,14 +17,18 @@ Actions are already defined for the agent:
- move (from one location to another one)
- pickup (an ingredient)
- drop (an ingredient)
- pickup-stack (an ingredient from a stack of ingredients)
- drop-stack (an ingredient on a stack)
- chop (a specific ingredient: onions)
- cook (a sepcific recipie: onion soup)
- cook (a specific recipie: onion soup)
- serve (an ingredient that is ready to be served)
Additional actions are provided, mainly for debug purpose:
- get_position
- get_position (of an agent)
- checkLoc (of an ingredient)
- stop
- idle
- checkCarry (what ingredient my agent is carrying?)
Partially filled file is provided (file: cooking_domain.hddl).
......@@ -36,7 +40,7 @@ A world is already set (file: cooking_problem.hddl). Predicates are specifying o
Locations are connected between them to simplify agent movement in the world (e.g. the center of the map is connected to the cooking place: "connected centerloc cookLoc").
Eventually, some soup recipies are provided.
Eventually, some soup recipies are provided: a lite (with only 1 chopped onion), esay one, and a standard one (with 3 chopped onions).
## Set-up project environment
......@@ -56,6 +60,8 @@ HTN_PATH=$(pwd)
```
cd $HTN_PATH
module load julia/1.9.3
module load anaconda3/2024
source loadEnv.bash
cd TP02/
plan cooking_domain.hddl cooking_problem.hddl debug > plan.txt
......@@ -69,7 +75,7 @@ plan cooking_domain.hddl cooking_problem.hddl debug > plan.txt
cd OvercookedVisu
make
cd ..
./OvercookedVisu/overcooked plan.txt
./OvercookedVisu/overcooked ../plan.txt
```
## Repository Overview
......@@ -100,13 +106,19 @@ plan cooking_domain.hddl cooking_problem.hddl debug > plan.txt
- check execution line per line... HDDL is not the more ergonomic way to debug... use recursivity with care.
## recommendation
## recommendations
- Start to implement move_to / goto tasks
- use (yes) method to validate your current behavior
- (if necessary, remove tasks and preconditions...)
- (if necessary, remove tasks and preconditions for testing purposes...)
- proceed step by step, line per line, varaible per variable...
## problem resolution suggestion
- when movement it's ok, test if you are able to deliver a "soupLite" located at the "cookLoc" location (comment / uncomment problem file)
- try to cook a "soupLite" recipie and deliver it (comment / uncomment problem file)
- try to chop 1 onion, cook the chopped onion into a soupLite and deliver it
- eventually, cook a 3 onion soup and serve it.
## Open question:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment