forked from potassco/pddl-instances
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdomain.pddl
134 lines (127 loc) · 2.52 KB
/
domain.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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
(define (domain termes)
(:requirements :typing :negative-preconditions)
(:types
numb - object
position - object
)
(:predicates
(height ?p - position ?h - numb)
(at ?p - position)
(has-block)
;
; static predicates
(SUCC ?n1 - numb ?n2 - numb)
(NEIGHBOR ?p1 - position ?p2 - position)
(IS-DEPOT ?p - position)
)
(:action move
:parameters (?from - position ?to - position ?h - numb)
:precondition
(and
(at ?from)
(NEIGHBOR ?from ?to)
(height ?from ?h)
(height ?to ?h)
)
:effect
(and
(not (at ?from))
(at ?to)
)
)
(:action move-up
:parameters (?from - position ?hfrom - numb ?to - position ?hto - numb)
:precondition
(and
(at ?from)
(NEIGHBOR ?from ?to)
(height ?from ?hfrom)
(height ?to ?hto)
(SUCC ?hto ?hfrom)
)
:effect
(and
(not (at ?from))
(at ?to)
)
)
(:action move-down
:parameters (?from - position ?hfrom - numb ?to - position ?hto - numb)
:precondition
(and
(at ?from)
(NEIGHBOR ?from ?to)
(height ?from ?hfrom)
(height ?to ?hto)
(SUCC ?hfrom ?hto)
)
:effect
(and
(not (at ?from))
(at ?to)
)
)
(:action place-block
:parameters (?rpos - position ?bpos - position ?hbefore - numb ?hafter - numb)
:precondition
(and
(at ?rpos)
(NEIGHBOR ?rpos ?bpos)
(height ?rpos ?hbefore)
(height ?bpos ?hbefore)
(SUCC ?hafter ?hbefore)
(has-block)
(not (IS-DEPOT ?bpos))
)
:effect
(and
(not (height ?bpos ?hbefore))
(height ?bpos ?hafter)
(not (has-block))
)
)
(:action remove-block
:parameters (?rpos - position ?bpos - position ?hbefore - numb ?hafter - numb)
:precondition
(and
(at ?rpos)
(NEIGHBOR ?rpos ?bpos)
(height ?rpos ?hafter)
(height ?bpos ?hbefore)
(SUCC ?hbefore ?hafter)
(not (has-block))
)
:effect
(and
(not (height ?bpos ?hbefore))
(height ?bpos ?hafter)
(has-block)
)
)
(:action create-block
:parameters (?p - position)
:precondition
(and
(at ?p)
(not (has-block))
(IS-DEPOT ?p)
)
:effect
(and
(has-block)
)
)
(:action destroy-block
:parameters (?p - position)
:precondition
(and
(at ?p)
(has-block)
(IS-DEPOT ?p)
)
:effect
(and
(not (has-block))
)
)
)