-
Notifications
You must be signed in to change notification settings - Fork 57
/
domain-adl.pddl
85 lines (69 loc) · 2.72 KB
/
domain-adl.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
(define (domain satellite)
(:requirements :negative-preconditions :conditional-effects :equality :typing :fluents :durative-actions)
(:types satellite direction instrument mode)
(:predicates
(on_board ?i - instrument ?s - satellite)
(supports ?i - instrument ?m - mode)
(pointing ?s - satellite ?d - direction)
(power_avail ?s - satellite)
(power_on ?i - instrument)
(calibrated ?i - instrument)
(have_image ?d - direction ?m - mode)
(calibration_target ?i - instrument ?d - direction))
(:functions (slew_time ?a ?b - direction)
(calibration_time ?a - instrument ?d - direction)
)
(:durative-action turn_to
:parameters (?s - satellite ?d_new - direction ?d_prev - direction)
:duration (= ?duration (slew_time ?d_prev ?d_new))
:condition (and (at start (pointing ?s ?d_prev))
(over all (not (= ?d_new ?d_prev)))
)
:effect (and (at end (pointing ?s ?d_new))
(at start (not (pointing ?s ?d_prev)))
)
)
(:durative-action switch_on
:parameters (?i - instrument ?s - satellite)
:duration (= ?duration 2)
:condition (and (over all (on_board ?i ?s))
(at start (power_avail ?s)))
:effect (and (at end (power_on ?i))
(when (at start (calibrated ?i)) (at start (not (calibrated ?i))))
(at start (not (power_avail ?s)))
)
)
(:durative-action switch_off
:parameters (?i - instrument ?s - satellite)
:duration (= ?duration 1)
:condition (and (over all (on_board ?i ?s))
(at start (power_on ?i))
)
:effect (and (at start (not (power_on ?i)))
(at end (power_avail ?s))
)
)
(:durative-action calibrate
:parameters (?s - satellite ?i - instrument ?d - direction)
:duration (= ?duration (calibration_time ?i ?d))
:condition (and (over all (on_board ?i ?s))
(over all (calibration_target ?i ?d))
(at start (pointing ?s ?d))
(over all (power_on ?i))
(at end (power_on ?i))
)
:effect (at end (calibrated ?i))
)
(:durative-action take_image
:parameters (?s - satellite ?d - direction ?i - instrument ?m - mode)
:duration (= ?duration 7)
:condition (and (over all (calibrated ?i))
(over all (on_board ?i ?s))
(over all (supports ?i ?m) )
(over all (power_on ?i))
(over all (pointing ?s ?d))
(at end (power_on ?i))
)
:effect (when (at end (not (have_image ?d ?m))) (at end (have_image ?d ?m)))
)
)