-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrobby.pddl
64 lines (58 loc) · 1.43 KB
/
robby.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
(define (domain robby)
(:requirements :strips :typing :negative-preconditions)
(:types
hallway room - location
robot beacon
)
(:predicates
(at ?bot - robot ?place - location)
(in ?beacon - beacon ?place - location)
(connected ?place1 ?place2 - location)
(reported ?bot - robot ?beacon - beacon)
)
(:action enter
:parameters (?bot - robot ?source - hallway ?destination - room)
:precondition (and
(at ?bot ?source)
(not (at ?bot ?destination))
(connected ?source ?destination)
)
:effect (and
(not (at ?bot ?source))
(at ?bot ?destination)
)
)
(:action exit
:parameters (?bot - robot ?source - room ?destination - hallway)
:precondition (and
(at ?bot ?source)
(not (at ?bot ?destination))
(connected ?source ?destination)
)
:effect (and
(not (at ?bot ?source))
(at ?bot ?destination)
)
)
(:action move
:parameters (?bot - robot ?source ?destination - hallway)
:precondition (and
(at ?bot ?source)
(not (at ?bot ?destination))
(connected ?source ?destination)
)
:effect (and
(not (at ?bot ?source))
(at ?bot ?destination)
)
)
(:action report
:parameters (?bot - robot ?source - location ?beacon - beacon)
:precondition (and
(at ?bot ?source)
(in ?beacon ?source)
(not (reported ?bot ?beacon))
)
:effect (reported ?bot ?beacon)
)
)