-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdomain.pddl
97 lines (90 loc) · 1.93 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
(define (domain default)
(:requirements :strips)
(:predicates
(tile ?t)
(delivery ?t)
(agent ?a)
(parcel ?p)
(me ?a)
(at ?agentOrParcel ?tile)
(right ?t1 ?t2)
(left ?t1 ?t2)
(up ?t1 ?t2)
(down ?t1 ?t2)
(carrying ?a ?p)
)
(:action move-right
:parameters (?me ?from ?to)
:precondition (and
(me ?me)
(at ?me ?from)
(right ?from ?to)
)
:effect (and
(at ?me ?to)
(not (at ?me ?from))
)
)
(:action move-left
:parameters (?me ?from ?to)
:precondition (and
(me ?me)
(at ?me ?from)
(left ?from ?to)
)
:effect (and
(at ?me ?to)
(not (at ?me ?from))
)
)
(:action move-up
:parameters (?me ?from ?to)
:precondition (and
(me ?me)
(at ?me ?from)
(up ?from ?to)
)
:effect (and
(at ?me ?to)
(not (at ?me ?from))
)
)
(:action move-down
:parameters (?me ?from ?to)
:precondition (and
(me ?me)
(at ?me ?from)
(down ?from ?to)
)
:effect (and
(at ?me ?to)
(not (at ?me ?from))
)
)
(:action pick-up
:parameters (?me ?p ?t)
:precondition (and
(me ?me)
(parcel ?p)
(at ?me ?t)
(at ?p ?t)
)
:effect (and
(carrying ?me ?p)
(not (at ?p ?t))
)
)
(:action put-down
:parameters (?me ?p ?t)
:precondition (and
(me ?me)
(carrying ?me ?p)
(at ?me ?t)
(delivery ?t)
)
:effect (and
(at ?me ?t)
(not (carrying ?me ?p))
)
)
)