-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtest.pddl
27 lines (26 loc) · 1.01 KB
/
test.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
(define (domain gripper)
(:predicates (room ?r) (ball ?b) (gripper ?g)
(at-robby ?r) (at ?b ?r)
(free ?g) (carry ?o ?g))
(:action move
:parameters (?from ?to)
:precondition (and (room ?from)
(room ?to)
(at-robby ?from))
:effect (and (at-robby ?to)
(not (at-robby ?from)))))
(define (problem gripper-four-balls)
(:domain gripper)
(:objects room-a room-b
ball-1 ball-2 ball-3 ball-4
left right)
(:init (room room-a) (room room-b)
(ball ball-1) (ball ball-2) (ball ball-3) (ball ball-4)
(gripper left) (gripper right) (free left) (free-right)
(at-robby room-a)
(at-ball ball-1 room-a) (at-ball ball-2 room-a)
(at-ball ball-3 room-a) (at-ball ball-4 room-a))
(:goal (and (at-ball ball-1 room-b)
(at-ball ball-2 room-b)
(at-ball ball-3 room-b)
(at-ball ball-4 room-b))))