forked from potassco/pddl-instances
-
Notifications
You must be signed in to change notification settings - Fork 1
/
domain.pddl
34 lines (25 loc) · 923 Bytes
/
domain.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
(define (domain gripper-typed)
(:requirements :typing)
(:types room ball gripper)
(:constants left right - gripper)
(:predicates (at-robby ?r - room)
(at ?b - ball ?r - room)
(free ?g - gripper)
(carry ?o - ball ?g - gripper))
(:action move
:parameters (?from ?to - room)
:precondition (at-robby ?from)
:effect (and (at-robby ?to)
(not (at-robby ?from))))
(:action pick
:parameters (?obj - ball ?room - room ?gripper - gripper)
:precondition (and (at ?obj ?room) (at-robby ?room) (free ?gripper))
:effect (and (carry ?obj ?gripper)
(not (at ?obj ?room))
(not (free ?gripper))))
(:action drop
:parameters (?obj - ball ?room - room ?gripper - gripper)
:precondition (and (carry ?obj ?gripper) (at-robby ?room))
:effect (and (at ?obj ?room)
(free ?gripper)
(not (carry ?obj ?gripper)))))