-
Notifications
You must be signed in to change notification settings - Fork 1
/
robot_baking.pddl
120 lines (115 loc) · 2.48 KB
/
robot_baking.pddl
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
(
define (domain robot_baking)
(:requirements :typing :fluents)
(
:types working-space baking-space - space
heating-space - space
heating-container baking-container mixing-container - container
)
(:functions
(burnt-val ?x)
)
(
:predicates (IN-BATTER ?ingredient - ingredient) (IN-CONTAINER ?ingredient - ingredient ?container - container) (IN-SPACE ?container - container ?space - space) (MIXABLE ?ingredient - ingredient) (BAKED ?ingredient - ingredient)
)
(
:action pour
:parameters (?pouring-container - container ?receiving-container - container ?working-space - working-space)
:precondition
(
and (IN-SPACE ?pouring-container ?working-space) (IN-SPACE ?receiving-container ?working-space)
)
:effect
(
forall (?ingredient - ingredient)
(
when
(
and (IN-CONTAINER ?ingredient ?pouring-container)
)
(
and (IN-CONTAINER ?ingredient ?receiving-container)
(not (IN-CONTAINER ?ingredient ?pouring-container))
)
)
)
)
(
:action move
:parameters (?container - container ?from - space ?to - space)
:precondition
(
and (IN-SPACE ?container ?from)
)
:effect
(
and (IN-SPACE ?container ?to)
(NOT (IN-SPACE ?container ?from))
)
)
(
:action mix
:parameters (?container - mixing-container ?working-space - working-space)
:precondition (and (IN-SPACE ?container ?working-space))
:effect
(
and
(
forall (?ingredient - ingredient)
(
when
(
and (IN-CONTAINER ?ingredient ?container) (MIXABLE ?ingredient)
)
(
and (IN-BATTER ?ingredient)
)
)
)
)
)
(
:action heat
:parameters (?container - heating-container ?heating-space - heating-space)
:precondition
(
and
(IN-SPACE ?container ?heating-space)
)
:effect
(
forall (?ingredient - ingredient)
(
when
(
and (IN-CONTAINER ?ingredient ?container)
)
(
and (MIXABLE ?ingredient)
(increase (burnt-val ?ingredient) 1)
)
)
)
)
(
:action bake
:parameters (?baking-container - baking-container ?baking-space - baking-space)
:precondition
(
and (IN-SPACE ?baking-container ?baking-space)
)
:effect
(
forall (?ingredient - ingredient)
(
when
(
and (IN-CONTAINER ?ingredient ?baking-container) (IN-BATTER ?ingredient)
)
(
and (BAKED ?ingredient)(increase (burnt-val ?ingredient) 1)
)
)
)
)
)