forked from potassco/pddl-instances
-
Notifications
You must be signed in to change notification settings - Fork 1
/
domain.pddl
81 lines (76 loc) · 1.88 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
(define (domain parking)
(:requirements :strips :typing :action-costs)
(:types car curb)
(:predicates
(at-curb ?car - car)
(at-curb-num ?car - car ?curb - curb)
(behind-car ?car ?front-car - car)
(car-clear ?car - car)
(curb-clear ?curb - curb)
)
(:functions (total-cost) - number)
(:action move-curb-to-curb
:parameters (?car - car ?curbsrc ?curbdest - curb)
:precondition (and
(car-clear ?car)
(curb-clear ?curbdest)
(at-curb-num ?car ?curbsrc)
)
:effect (and
(not (curb-clear ?curbdest))
(curb-clear ?curbsrc)
(at-curb-num ?car ?curbdest)
(not (at-curb-num ?car ?curbsrc))
(increase (total-cost) 1)
)
)
(:action move-curb-to-car
:parameters (?car - car ?curbsrc - curb ?cardest - car)
:precondition (and
(car-clear ?car)
(car-clear ?cardest)
(at-curb-num ?car ?curbsrc)
(at-curb ?cardest)
)
:effect (and
(not (car-clear ?cardest))
(curb-clear ?curbsrc)
(behind-car ?car ?cardest)
(not (at-curb-num ?car ?curbsrc))
(not (at-curb ?car))
(increase (total-cost) 1)
)
)
(:action move-car-to-curb
:parameters (?car - car ?carsrc - car ?curbdest - curb)
:precondition (and
(car-clear ?car)
(curb-clear ?curbdest)
(behind-car ?car ?carsrc)
)
:effect (and
(not (curb-clear ?curbdest))
(car-clear ?carsrc)
(at-curb-num ?car ?curbdest)
(not (behind-car ?car ?carsrc))
(at-curb ?car)
(increase (total-cost) 1)
)
)
(:action move-car-to-car
:parameters (?car - car ?carsrc - car ?cardest - car)
:precondition (and
(car-clear ?car)
(car-clear ?cardest)
(behind-car ?car ?carsrc)
(at-curb ?cardest)
)
:effect (and
(not (car-clear ?cardest))
(car-clear ?carsrc)
(behind-car ?car ?cardest)
(not (behind-car ?car ?carsrc))
(increase (total-cost) 1)
)
)
)