-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add different version of BW nondeterministic
- Loading branch information
1 parent
119ee27
commit 6008eb9
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
(define (domain blocks-world-domain) | ||
(:requirements :strips :equality :conditional-effects :non-deterministic) | ||
|
||
(:constants Table) | ||
|
||
(:predicates (on ?x ?y) | ||
(clear ?x) | ||
(block ?b) | ||
) | ||
|
||
;; Define step for placing one block on another. | ||
(:action puton | ||
:parameters (?x ?y ?z) | ||
:precondition (and (on ?x ?z) (clear ?x) (clear ?y) | ||
(not (= ?y ?z)) (not (= ?x ?z)) | ||
(not (= ?x ?y)) (not (= ?x Table))) | ||
:effect | ||
(oneof | ||
(and (on ?x ?y) (not (on ?x ?z)) | ||
(when (not (= ?z Table)) (clear ?z)) | ||
(when (not (= ?y Table)) (not (clear ?y))) | ||
) | ||
(and (on ?x Table) | ||
(when (not (= ?z Table)) (and (not (on ?x ?z)) (clear ?z))) | ||
(when (not (= ?y Table)) (not (clear ?y))) | ||
) | ||
) | ||
) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
(define (problem sussman-anomaly) ; graphplan 3 steps | ||
(:domain blocks-world-domain) | ||
(:objects A B C) | ||
(:init (block A) (block B) (block C) (block Table) | ||
(on C A) (on A Table) (on B Table) | ||
(clear C) (clear B) (clear Table)) | ||
;(:goal (eventually (on B A)) | ||
;) | ||
(:goal (and )) | ||
|
||
) |