-
Notifications
You must be signed in to change notification settings - Fork 57
/
Copy pathdomain.pddl
53 lines (45 loc) · 1.71 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
;; logistics domain Typed version.
;;
(define (domain logistics)
(:requirements :strips :typing)
(:types truck
airplane - vehicle
package
vehicle - physobj
airport
location - place
city
place
physobj - object)
(:predicates (in-city ?loc - place ?city - city)
(at ?obj - physobj ?loc - place)
(in ?pkg - package ?veh - vehicle))
(:action LOAD-TRUCK
:parameters (?pkg - package ?truck - truck ?loc - place)
:precondition (and (at ?truck ?loc) (at ?pkg ?loc))
:effect (and (not (at ?pkg ?loc)) (in ?pkg ?truck)))
(:action LOAD-AIRPLANE
:parameters (?pkg - package ?airplane - airplane ?loc - place)
:precondition (and (at ?pkg ?loc) (at ?airplane ?loc))
:effect (and (not (at ?pkg ?loc)) (in ?pkg ?airplane)))
(:action UNLOAD-TRUCK
:parameters (?pkg - package ?truck - truck ?loc - place)
:precondition (and (at ?truck ?loc) (in ?pkg ?truck))
:effect (and (not (in ?pkg ?truck)) (at ?pkg ?loc)))
(:action UNLOAD-AIRPLANE
:parameters (?pkg - package ?airplane - airplane ?loc - place)
:precondition (and (in ?pkg ?airplane) (at ?airplane ?loc))
:effect (and (not (in ?pkg ?airplane)) (at ?pkg ?loc)))
(:action DRIVE-TRUCK
:parameters (?truck - truck ?loc-from - place ?loc-to - place ?city - city)
:precondition
(and (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 - airplane ?loc-from - airport ?loc-to - airport)
:precondition
(at ?airplane ?loc-from)
:effect
(and (not (at ?airplane ?loc-from)) (at ?airplane ?loc-to)))
)