-
Notifications
You must be signed in to change notification settings - Fork 0
/
sequential.pddl
137 lines (136 loc) · 3.74 KB
/
sequential.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
135
136
137
; MAPF model variant
; forbiden conflicts:
; * vertex
; * edge
; * swapping
; allowed:
; * following
; * cycle
; behavior at target:
; * stay at target
;
; PDDL representation:
; * edges by predicate pair
; * no layered structure of plan
; * target vertex freezing enabled
; * solving of group moves (cycle/train) enforced through
; action locking
(define (domain MAPF_FREE )
(:requirements :strips :typing)
(:types
agent vertex - object
)
(:predicates
(freeLink ?a - vertex ?b - vertex)
(required ?a - vertex ?b - agent)
(free ?a - vertex)
(at ?a - agent ?b - vertex)
(busyLink ?a - vertex ?b - vertex ?c - agent)
(frozen ?a - vertex ?b - agent)
(normal)
(lock)
)
(:action finishMove
:parameters (?A - agent ?ORIG - vertex ?DEST - vertex )
:precondition (and
(busyLink ?DEST ?ORIG ?A)
(busyLink ?ORIG ?DEST ?A)
(frozen ?DEST ?A)
(normal)
)
:effect (and
(freeLink ?ORIG ?DEST)
(at ?A ?DEST)
(freeLink ?DEST ?ORIG)
(not (busyLink ?DEST ?ORIG ?A))
(not (busyLink ?ORIG ?DEST ?A))
(not (frozen ?DEST ?A))
)
)
(:action freeze
:parameters (?A - agent ?ORIG - vertex ?DEST - vertex )
:precondition (and
(freeLink ?ORIG ?DEST)
(at ?A ?ORIG)
(normal)
(free ?DEST)
(freeLink ?DEST ?ORIG)
)
:effect (and
(busyLink ?ORIG ?DEST ?A)
(busyLink ?DEST ?ORIG ?A)
(frozen ?DEST ?A)
(free ?ORIG)
(not (freeLink ?ORIG ?DEST))
(not (at ?A ?ORIG))
(not (free ?DEST))
(not (freeLink ?DEST ?ORIG))
)
)
(:action confirm
:parameters (?A - agent ?ORIG - vertex ?DEST - vertex ?A2 - agent )
:precondition (and
(freeLink ?ORIG ?DEST)
(at ?A ?ORIG)
(required ?ORIG ?A2)
(free ?DEST)
(lock)
(freeLink ?DEST ?ORIG)
)
:effect (and
(busyLink ?ORIG ?DEST ?A)
(busyLink ?DEST ?ORIG ?A)
(normal)
(frozen ?DEST ?A)
(frozen ?ORIG ?A2)
(not (freeLink ?ORIG ?DEST))
(not (at ?A ?ORIG))
(not (required ?ORIG ?A2))
(not (free ?DEST))
(not (lock))
(not (freeLink ?DEST ?ORIG))
)
)
(:action require
:parameters (?A - agent ?ORIG - vertex ?DEST - vertex ?A2 - agent )
:precondition (and
(at ?A2 ?DEST)
(normal)
(freeLink ?ORIG ?DEST)
(at ?A ?ORIG)
(freeLink ?DEST ?ORIG)
)
:effect (and
(busyLink ?ORIG ?DEST ?A)
(free ?ORIG)
(required ?DEST ?A)
(busyLink ?DEST ?ORIG ?A)
(lock)
(not (normal))
(not (freeLink ?ORIG ?DEST))
(not (at ?A ?ORIG))
(not (freeLink ?DEST ?ORIG))
)
)
(:action passrequire
:parameters (?A - agent ?ORIG - vertex ?DEST - vertex ?A2 - agent ?A1 - agent )
:precondition (and
(freeLink ?ORIG ?DEST)
(at ?A ?ORIG)
(required ?ORIG ?A2)
(at ?A1 ?DEST)
(lock)
(freeLink ?DEST ?ORIG)
)
:effect (and
(busyLink ?ORIG ?DEST ?A)
(required ?DEST ?A)
(busyLink ?DEST ?ORIG ?A)
(frozen ?ORIG ?A2)
(not (freeLink ?ORIG ?DEST))
(not (at ?A ?ORIG))
(not (required ?ORIG ?A2))
(not (freeLink ?DEST ?ORIG))
)
)
)