-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainPart.xml
72 lines (70 loc) · 2.26 KB
/
MainPart.xml
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
<!--这段是一个例子-->
<ACTIVITIES>
<ACT_NAME>Cam_Takephoto</ACT_NAME>
<ACT_PARAM>
<PARAM_NAME>Direction </PARAM_NAME>
<PARAM_VALUE>0.14,0.25,0.55</PARAM_VALUE>
</ACT_PARAM>
<START> <INTERVAL STARTPOINT="0" ENDPOINT="0"/> </START>
<END> <INTERVAL STARTPOINT="0" ENDPOINT="0"> </END>
<DURATION><INTERVAL STARTPOINT="1" ENDPOINT="10"/> </DURATION>
<RES_NEED>
<RES_NAME>Power</RES_NAME>
<NEED_QUANTITY>10</NEED_QUANTITY>
</RES_NEED>
<TL_NAME>CAMERAACTIVE</TL_NAME>
</ACTIVITIES>
<!--下面才是有用的-->
<DOMAIN name="satellite">
<REQUIREMENTS>strips, equality, typing, fluents, durative-actions</REQUIREMENTS>
<TYPES>satellite, direction, instrument, mode</TYPES>
<PREDICATES>
<on_board>
<instrument>i</instrument>
<satellite>s</satellite>
</on_board>
<!--下面懒的写了-->
</PREDICATES>
<ACTION type="durative">
<NAME>take_image</NAME>
<PARAM>
<satellite>s</satellite>
<!--又不想写了-->
</PARAM>
<DURATION>7</DURATION>
<DURATION>
<function name="calibration_time">
<instrument>i</instrument>
</function>
</DURATION>
<CONDITION>
<calibrated mainType="and" keepingType="over all" itselfType="">
<instrument>i</instrument>
</calibrated>
<on_board type="over all">
<instrument>i</instrument>
<satellite>s</satellite>
</on_board>
<supports type="over all">
<instrument>i</instrument>
<mode>m</mode>
</supports>
<power_on type="over all">
<instrument>i</instrument>
</power_on>
<pointing type="over all">
<satellite>s</satellite>
<direction>d</direction>
</pointing>
<power_on type="at end">
<instrument>i</instrument>
</power_on>
</CONDITION>
<EFFECT>
<have_image type="at end">
<direction>1</direction>
<mode>1</mode>
</have_image>
</EFFECT>
</ACTION>
</DOMAIN>