Skip to content

Commit

Permalink
add different version of BW nondeterministic
Browse files Browse the repository at this point in the history
  • Loading branch information
francescofuggitti committed Nov 8, 2022
1 parent 119ee27 commit 6008eb9
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
29 changes: 29 additions & 0 deletions tests/fixtures/pddl_files/blocksworld_fond/domain.pddl
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)))
)
)
)
)
11 changes: 11 additions & 0 deletions tests/fixtures/pddl_files/blocksworld_fond/p01.pddl
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 ))

)

0 comments on commit 6008eb9

Please sign in to comment.