forked from melahi/pddl-instances
-
Notifications
You must be signed in to change notification settings - Fork 0
/
domain.pddl
51 lines (50 loc) · 1.12 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
(define (domain testdomain)
(:requirements :equality :typing :durative-actions)
(:types variable)
(:predicates
(norepeat ?var - variable)
(condition1 ?var - variable)
(condition2 ?var - variable)
(condition3 ?var - variable)
(target1 ?var - variable)
(target2 ?var - variable)
(target3 ?var - variable)
)
(:durative-action action_type1
:parameters (?var - variable)
:duration (= ?duration 5)
:condition (and
(at start (norepeat ?var))
)
:effect (and
(at start (condition1 ?var))
(at start (not (norepeat ?var)))
(at end (not (condition1 ?var)))
(at end (target1 ?var))
(at end (not (target2 ?var)))
)
)
(:durative-action action_type2
:parameters (?var - variable)
:duration (= ?duration 4)
:condition (and
(at start (condition1 ?var))
)
:effect (and
(at start (condition2 ?var))
(at end (not (condition2 ?var)))
(at end (target2 ?var))
)
)
(:durative-action action_type3
:parameters (?var - variable)
:duration (= ?duration 1)
:condition (and
(at start (condition2 ?var))
)
:effect (and
(at end (not (target1 ?var)))
(at end (target3 ?var))
)
)
)