-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from Timisorean/non-deterministic-new
Non deterministic
- Loading branch information
Showing
30 changed files
with
464 additions
and
121 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 |
---|---|---|
|
@@ -36,3 +36,5 @@ build | |
*.exe | ||
*.out | ||
*.app | ||
|
||
dependencies |
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
73 changes: 73 additions & 0 deletions
73
data/blocks-non-deterministic/domain-missing-requirement.pddl
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,73 @@ | ||
(define (domain blocks-domain) | ||
|
||
(:requirements :negative-preconditions :equality :typing) | ||
|
||
(:types | ||
block | ||
) | ||
|
||
(:predicates | ||
(holding-one) | ||
(holding-two) | ||
(holding ?b - block) | ||
(emptyhand) | ||
(on-table ?b - block) | ||
(on ?b1 ?b2 - block) | ||
(clear ?b - block) | ||
) | ||
|
||
(:action pick-up | ||
:parameters (?b1 ?b2 - block) | ||
:precondition (and (not (= ?b1 ?b2)) (emptyhand) (clear ?b1) (on ?b1 ?b2)) | ||
:effect (and (clear ?b2) (not (on ?b1 ?b2)) | ||
(oneof | ||
(and (holding-one) (holding ?b1) (not (emptyhand)) (not (clear ?b1))) | ||
(on-table ?b1))) | ||
) | ||
|
||
(:action pick-up-from-table | ||
:parameters (?b - block) | ||
:precondition (and (emptyhand) (clear ?b) (on-table ?b)) | ||
:effect (oneof | ||
(and) | ||
(and (holding-one) (holding ?b) (not (emptyhand)) (not (on-table ?b)) (not (clear ?b)))) | ||
) | ||
|
||
(:action put-on-block | ||
:parameters (?b1 ?b2 - block) | ||
:precondition (and (not (= ?b1 ?b2)) (holding-one) (holding ?b1) (clear ?b2)) | ||
:effect (and (emptyhand) (clear ?b1) (not (holding-one)) (not (holding ?b1)) | ||
(oneof | ||
(and (on ?b1 ?b2) (not (clear ?b2))) | ||
(on-table ?b1))) | ||
) | ||
|
||
(:action put-down | ||
:parameters (?b - block) | ||
:precondition (and (holding-one) (holding ?b)) | ||
:effect (and (on-table ?b) (emptyhand) (clear ?b) (not (holding-one)) (not (holding ?b))) | ||
) | ||
|
||
(:action pick-tower | ||
:parameters (?b1 ?b2 ?b3 - block) | ||
:precondition (and (emptyhand) (on ?b1 ?b2) (on ?b2 ?b3) (clear ?b1)) | ||
:effect (oneof | ||
(and) | ||
(and (holding-two) (holding ?b2) (clear ?b3) (not (emptyhand)) (not (on ?b2 ?b3)) (not (clear ?b1)))) | ||
) | ||
|
||
(:action put-tower-on-block | ||
:parameters (?b1 ?b2 ?b3 - block) | ||
:precondition (and (holding-two) (holding ?b2) (on ?b1 ?b2) (clear ?b3)) | ||
:effect (and (emptyhand) (not (holding-two)) (not (holding ?b2)) (clear ?b1) | ||
(oneof | ||
(and (on ?b2 ?b3) (not (clear ?b3))) | ||
(and (on-table ?b1) (on-table ?b2) (clear ?b2) (not (on ?b1 ?b2))))) | ||
) | ||
|
||
(:action put-tower-down | ||
:parameters (?b1 ?b2 - block) | ||
:precondition (and (holding-two) (holding ?b2) (on ?b1 ?b2)) | ||
:effect (and (on-table ?b2) (emptyhand) (not (holding-two)) (not (holding ?b2)) (clear ?b1)) | ||
) | ||
) |
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,73 @@ | ||
(define (domain blocks-domain) | ||
|
||
(:requirements :non-deterministic :negative-preconditions :equality :typing) | ||
|
||
(:types | ||
block | ||
) | ||
|
||
(:predicates | ||
(holding-one) | ||
(holding-two) | ||
(holding ?b - block) | ||
(emptyhand) | ||
(on-table ?b - block) | ||
(on ?b1 ?b2 - block) | ||
(clear ?b - block) | ||
) | ||
|
||
(:action pick-up | ||
:parameters (?b1 ?b2 - block) | ||
:precondition (and (not (= ?b1 ?b2)) (emptyhand) (clear ?b1) (on ?b1 ?b2)) | ||
:effect (and (clear ?b2) (not (on ?b1 ?b2)) | ||
(oneof | ||
(and (holding-one) (holding ?b1) (not (emptyhand)) (not (clear ?b1))) | ||
(on-table ?b1))) | ||
) | ||
|
||
(:action pick-up-from-table | ||
:parameters (?b - block) | ||
:precondition (and (emptyhand) (clear ?b) (on-table ?b)) | ||
:effect (oneof | ||
(and) | ||
(and (holding-one) (holding ?b) (not (emptyhand)) (not (on-table ?b)) (not (clear ?b)))) | ||
) | ||
|
||
(:action put-on-block | ||
:parameters (?b1 ?b2 - block) | ||
:precondition (and (not (= ?b1 ?b2)) (holding-one) (holding ?b1) (clear ?b2)) | ||
:effect (and (emptyhand) (clear ?b1) (not (holding-one)) (not (holding ?b1)) | ||
(oneof | ||
(and (on ?b1 ?b2) (not (clear ?b2))) | ||
(on-table ?b1))) | ||
) | ||
|
||
(:action put-down | ||
:parameters (?b - block) | ||
:precondition (and (holding-one) (holding ?b)) | ||
:effect (and (on-table ?b) (emptyhand) (clear ?b) (not (holding-one)) (not (holding ?b))) | ||
) | ||
|
||
(:action pick-tower | ||
:parameters (?b1 ?b2 ?b3 - block) | ||
:precondition (and (emptyhand) (on ?b1 ?b2) (on ?b2 ?b3) (clear ?b1)) | ||
:effect (oneof | ||
(and) | ||
(and (holding-two) (holding ?b2) (clear ?b3) (not (emptyhand)) (not (on ?b2 ?b3)) (not (clear ?b1)))) | ||
) | ||
|
||
(:action put-tower-on-block | ||
:parameters (?b1 ?b2 ?b3 - block) | ||
:precondition (and (holding-two) (holding ?b2) (on ?b1 ?b2) (clear ?b3)) | ||
:effect (and (emptyhand) (not (holding-two)) (not (holding ?b2)) (clear ?b1) | ||
(oneof | ||
(and (on ?b2 ?b3) (not (clear ?b3))) | ||
(and (on-table ?b1) (on-table ?b2) (clear ?b2) (not (on ?b1 ?b2))))) | ||
) | ||
|
||
(:action put-tower-down | ||
:parameters (?b1 ?b2 - block) | ||
:precondition (and (holding-two) (holding ?b2) (on ?b1 ?b2)) | ||
:effect (and (on-table ?b2) (emptyhand) (not (holding-two)) (not (holding ?b2)) (clear ?b1)) | ||
) | ||
) |
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,6 @@ | ||
(define (problem bw_10_20) | ||
(:domain blocks-domain) | ||
(:objects b1 b2 b3 b4 b5 b6 b7 b8 b9 b10 - block) | ||
(:init (emptyhand) (on b1 b6) (on b2 b8) (on-table b3) (on b4 b9) (on b5 b3) (on b6 b10) (on b7 b5) (on-table b8) (on b9 b1) (on b10 b2) (clear b4) (clear b7)) | ||
(:goal (and (emptyhand) (on b1 b9) (on b2 b1) (on-table b3) (on-table b4) (on-table b5) (on b6 b7) (on-table b7) (on-table b8) (on b9 b6) (on b10 b3) (clear b2) (clear b4) (clear b5) (clear b8) (clear b10))) | ||
) |
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
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
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
Oops, something went wrong.