-
-
Notifications
You must be signed in to change notification settings - Fork 119
Expand file tree
/
Copy pathcut.pddl
More file actions
30 lines (27 loc) · 756 Bytes
/
cut.pddl
File metadata and controls
30 lines (27 loc) · 756 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
(define (domain kitchen)
(:requirements :typing)
(:types item surface food)
; Predicates describing the state of the world
(:predicates
(on ?x - item ?y - surface)
(empty ?x - surface)
(cut ?x - food)
)
; Action to move an item from one surface to another
(:action move
:parameters (?item - item ?from - surface ?to - surface)
:precondition (and (on ?item ?from))
:effect (and
(not (on ?item ?from))
(on ?item ?to)
)
)
; Action to cut the bagel
(:action cut_bagel
:parameters (?bagel - food ?knife - item ?surface - surface)
:precondition (and (on ?bagel ?surface) (on ?knife ?surface) (not (cut ?bagel)))
:effect (and
(cut ?bagel)
)
)
)