-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paths
73 lines (57 loc) · 2.5 KB
/
s
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
(defdomain grace-fish
(
(:operator (!communicate ?grace ?fumin ?pool_depth ?t)
()
((recorded ?grace ?pool_depth))
((communicated_depth ?grace ?fumin ?pool_depth)) )
(:operator (!raise ?grace ?pool_depth ?t)
()
((not(at_pooldepth ?grace ?pool_depth))(recorded ?grace ?pool_depth))
((at_pooldepth ?grace ?pool_depth)) )
(:operator (!senseDepth ?grace ?pool_depth ?t)
()
((at_pooldepth ?grace ?pool_depth)(not(recorded ?grace ?pool_depth)))
((recorded ?grace ?pool_depth)) )
(:operator (!dive ?grace ?pool_depth ?t)
()
((not(at_pooldepth ?grace ?pool_depth))(not(recorded ?grace ?pool_depth)))
((at_pooldepth ?grace ?pool_depth)))
(:method (achieve-goals (list ?goal . ?goals))
()
((achieve-goal ?goal)(achieve-goals list ?goals)))
(:method (achieve-goals nil ?goal)
()
((achieve-goal ?goal)))
(:method (achieve-goals list nil)
()
())
(:method (achieve-goal (communicated_depth ?grace ?fumin ?pool_depth))
;; If the
((at_pooldepth ?grace ?surface) (recorded ?grace ?pool_depth)
)
((!communicate ?grace ?fumin ?pool_depth ?t))
((at_pooldepth ?grace ?surface) (not(recorded ?grace ?pool_depth))
)
((!dive ?grace ?very_shallow ?t1)
(!dive ?grace ?shallow ?t2)
(!dive ?grace ?medium ?t3)
(!dive ?grace ?deep ?t4)
(!dive ?grace ?very_deep ?t5)
(!senseDepth ?grace ?pool_depth ?t6)
(!raise ?grace ?deep ?t7)
(!raise ?grace ?medium ?t8)
(!raise ?grace ?shallow ?t9)
(!raise ?grace ?very_shallow ?t10)
(!raise ?grace ?surface ?t11)
(!communicate ?grace ?fumin ?pool_depth ?t12))
((atBottom ?grace) (not(knows ?grace ?pool_depth))
(not(atSurface ?grace)))
((!senseDepth ?grace ?pool_depth)
(!raise ?grace ?pool_depth)
(!communicatePoolDepth ?grace ?fumin ?pool_depth))
((atBottom ?grace) (knows ?grace ?pool_depth)
(not(atSurface ?grace)))
((!raise ?grace ?pool_depth)
(!communicatePoolDepth ?grace ?fumin ?pool_depth)))
(:- (atSurface ?x) ((not (atBottom ?x))))
(:- (atBottom ?x) ((not (atSurface ?x)))) ))