forked from potassco/pddl-instances
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdomain.pddl
55 lines (46 loc) · 2.06 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
; IPC5 Domain: Trucks Time
; Authors: Yannis Dimopoulos, Alfonso Gerevini and Alessandro Saetti
(define (domain Trucks-Time)
(:requirements :typing :adl :durative-actions :fluents)
(:types truckarea location locatable - object
truck package - locatable)
(:predicates (at ?x - locatable ?l - location)
(in ?p - package ?t - truck ?a - truckarea)
(connected ?x ?y - location)
(free ?a - truckarea ?t - truck)
(delivered ?p - package ?l - location)
(closer ?a1 - truckarea ?a2 - truckarea))
(:functions (drive-time ?from ?to - location))
(:durative-action load
:parameters (?p - package ?t - truck ?a1 - truckarea ?l - location)
:duration (= ?duration 1)
:condition (and (at start (at ?p ?l)) (at start (free ?a1 ?t))
(at start (forall (?a2 - truckarea)
(imply (closer ?a2 ?a1) (free ?a2 ?t))))
(over all (at ?t ?l))
(over all (forall (?a2 - truckarea)
(imply (closer ?a2 ?a1) (free ?a2 ?t)))))
:effect (and (at start (not (at ?p ?l))) (at start (not (free ?a1 ?t)))
(at end (in ?p ?t ?a1))))
(:durative-action unload
:parameters (?p - package ?t - truck ?a1 - truckarea ?l - location)
:duration (= ?duration 1)
:condition (and (at start (in ?p ?t ?a1))
(at start (forall (?a2 - truckarea)
(imply (closer ?a2 ?a1) (free ?a2 ?t))))
(over all (at ?t ?l))
(over all (forall (?a2 - truckarea)
(imply (closer ?a2 ?a1) (free ?a2 ?t)))))
:effect (and (at start (not (in ?p ?t ?a1))) (at end (free ?a1 ?t))
(at end (at ?p ?l))))
(:durative-action drive
:parameters (?t - truck ?from ?to - location)
:duration (= ?duration (drive-time ?from ?to))
:condition (and (at start (at ?t ?from)) (over all (connected ?from ?to)))
:effect (and (at start (not (at ?t ?from))) (at end (at ?t ?to))))
(:durative-action deliver
:parameters (?p - package ?l - location)
:duration (= ?duration 1)
:condition (and (at start (at ?p ?l)) (over all (at ?p ?l)))
:effect (and (at end (not (at ?p ?l))) (at end (delivered ?p ?l))))
)