-
Notifications
You must be signed in to change notification settings - Fork 57
/
domain.pddl
85 lines (77 loc) · 1.83 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
;; logistics domain
;;
(define (domain logistics)
(:requirements :strips)
(:predicates (package ?obj)
(truck ?truck)
(airplane ?airplane)
(airport ?airport)
(location ?loc)
(in-city ?obj ?city)
(city ?city)
(at ?obj ?loc)
(in ?obj ?obj))
(:action load-truck
:parameters
(?obj
?truck
?loc)
:precondition
(and (package ?obj) (truck ?truck) (location ?loc)
(at ?truck ?loc) (at ?obj ?loc))
:effect
(and (not (at ?obj ?loc)) (in ?obj ?truck)))
(:action load-airplane
:parameters
(?obj
?airplane
?loc)
:precondition
(and (package ?obj) (airplane ?airplane) (location ?loc)
(at ?obj ?loc) (at ?airplane ?loc))
:effect
(and (not (at ?obj ?loc)) (in ?obj ?airplane)))
(:action unload-truck
:parameters
(?obj
?truck
?loc)
:precondition
(and (package ?obj) (truck ?truck) (location ?loc)
(at ?truck ?loc) (in ?obj ?truck))
:effect
(and (not (in ?obj ?truck)) (at ?obj ?loc)))
(:action unload-airplane
:parameters
(?obj
?airplane
?loc)
:precondition
(and (package ?obj) (airplane ?airplane) (location ?loc)
(in ?obj ?airplane) (at ?airplane ?loc))
:effect
(and (not (in ?obj ?airplane)) (at ?obj ?loc)))
(:action drive-truck
:parameters
(?truck
?loc-from
?loc-to
?city)
:precondition
(and (truck ?truck) (location ?loc-from) (location ?loc-to) (city ?city)
(at ?truck ?loc-from)
(in-city ?loc-from ?city)
(in-city ?loc-to ?city))
:effect
(and (not (at ?truck ?loc-from)) (at ?truck ?loc-to)))
(:action fly-airplane
:parameters
(?airplane
?loc-from
?loc-to)
:precondition
(and (airplane ?airplane) (airport ?loc-from) (airport ?loc-to)
(at ?airplane ?loc-from))
:effect
(and (not (at ?airplane ?loc-from)) (at ?airplane ?loc-to)))
)