forked from AI-Planning/fond-domains
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
renamed ex-blocksworld to blocksworld-ex AI-Planning#4
- Loading branch information
Showing
19 changed files
with
69 additions
and
49 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
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,62 @@ | ||
;; FOND version of probabilistic version ex-blocksworld (blocks world with explosion) from IPC 2008 | ||
;; [**2006 IPC5 Probabilistic Track**](https://ipc06.icaps-conference.org/probabilistic/) | ||
;; | ||
;; In this domain, blocks can explode | ||
;; | ||
;; Authors: Michael Littman and David Weissman | ||
;; Modified by: Blai Bonet | ||
;; Comment: Good plans are those that avoid putting blocks on table since the probability of detonation is higher | ||
(define (domain exploding-blocksworld) | ||
(:requirements :strips :typing :non-deterministic) | ||
(:types | ||
block | ||
) | ||
(:predicates | ||
(on ?b1 ?b2 - block) | ||
(on-table ?b - block) | ||
(clear ?b - block) | ||
(holding ?b - block) | ||
(emptyhand) | ||
(no-detonated ?b - block) | ||
(no-destroyed ?b - block) | ||
(no-destroyed-table) | ||
(detonated ?b - block) | ||
) | ||
|
||
(:action pick-up | ||
:parameters (?b1 ?b2 - block) | ||
:precondition (and (emptyhand) (clear ?b1) (on ?b1 ?b2) (no-destroyed ?b1)) | ||
:effect (and (holding ?b1) (clear ?b2) (not (emptyhand)) (not (on ?b1 ?b2))) | ||
) | ||
(:action pick-up-from-table | ||
:parameters (?b - block) | ||
:precondition (and (emptyhand) (clear ?b) (on-table ?b) (no-destroyed ?b)) | ||
:effect (and (holding ?b) (not (emptyhand)) (not (on-table ?b))) | ||
) | ||
(:action put-down-nodet | ||
:parameters (?b - block) | ||
:precondition (and (no-detonated ?b) (holding ?b) (no-destroyed-table)) | ||
:effect (and (emptyhand) (on-table ?b) (not (holding ?b)) | ||
(oneof | ||
(and) | ||
(and (not (no-destroyed-table)) (not (no-detonated ?b)) (detonated ?b)))) | ||
) | ||
(:action put-down-det | ||
:parameters (?b - block) | ||
:precondition (and (detonated ?b) (holding ?b) (no-destroyed-table)) | ||
:effect (and (emptyhand) (on-table ?b) (not (holding ?b))) | ||
) | ||
(:action put-on-block-nodet | ||
:parameters (?b1 ?b2 - block) | ||
:precondition (and (no-detonated ?b1) (holding ?b1) (clear ?b2) (no-destroyed ?b2)) | ||
:effect (and (emptyhand) (on ?b1 ?b2) (not (holding ?b1)) (not (clear ?b2)) | ||
(oneof | ||
(and) | ||
(and (not (no-destroyed ?b2)) (not (no-detonated ?b1)) (detonated ?b1)))) | ||
) | ||
(:action put-on-block-det | ||
:parameters (?b1 ?b2 - block) | ||
:precondition (and (detonated ?b1) (holding ?b1) (clear ?b2) (no-destroyed ?b2)) | ||
:effect (and (emptyhand) (on ?b1 ?b2) (not (holding ?b1)) (not (clear ?b2))) | ||
) | ||
) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 was deleted.
Oops, something went wrong.