Skip to content

Commit

Permalink
domain update
Browse files Browse the repository at this point in the history
  • Loading branch information
tomsilver committed Mar 9, 2024
1 parent b14faa1 commit 4099acf
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 12 deletions.
53 changes: 42 additions & 11 deletions scripts/bagel_oven_equidiff/domain.pddl
Original file line number Diff line number Diff line change
@@ -1,59 +1,90 @@
(define (domain BagelOven)

(:predicates
(NotHoldingBagel)
(NothingGrasped)

(BagelGrasped)
(OvenGrasped)
(TrayGrasped)

(OvenClosed)
(OvenOpen)

(TrayInsideOven)
(TrayPulledOut)
(BagelGrasped)

(BagelOnTable)
(BagelOnTray)
)

(:action GraspOven
:parameters ()
:precondition (NothingGrasped)
:effect (and
(OvenGrasped)
(not (NothingGrasped))
)
)

(:action OpenOven
:parameters ()
:precondition (and (OvenClosed) (NotHoldingBagel))
:precondition (and (OvenClosed) (OvenGrasped))
:effect (and
(OvenOpen)
(not (OvenClosed))
(NothingGrasped)
(not (OvenGrasped))
)
)

(:action CloseOven
:parameters ()
:precondition (and (OvenOpen) (TrayInsideOven) (NotHoldingBagel))
:precondition (and (OvenOpen) (TrayInsideOven) (OvenGrasped))
:effect (and
(OvenClosed)
(not (OvenOpen))
(NothingGrasped)
(not (OvenGrasped))
)
)

(:action GraspTray
:parameters ()
:precondition (and (NothingGrasped) (OvenOpen))
:effect (and
(TrayGrasped)
(not (NothingGrasped))
)
)

(:action PullOutTray
:parameters ()
:precondition (and (TrayInsideOven) (OvenOpen) (NotHoldingBagel))
:precondition (and (TrayInsideOven) (TrayGrasped))
:effect (and
(TrayPulledOut)
(not (TrayInsideOven))
(NothingGrasped)
(not (TrayGrasped))
)
)

(:action PushInTray
:parameters ()
:precondition (and (TrayPulledOut) (NotHoldingBagel))
:precondition (and (TrayPulledOut) (TrayGrasped))
:effect (and
(TrayInsideOven)
(not (TrayPulledOut))
(NothingGrasped)
(not (TrayGrasped))
)
)

(:action PickBagelFromTable
(:action GraspBagel
:parameters ()
:precondition (and (BagelOnTable) (NotHoldingBagel))
:precondition (and (BagelOnTable) (NothingGrasped))
:effect (and
(BagelGrasped)
(not (BagelOnTable))
(not (NotHoldingBagel))
(not (NothingGrasped))
)
)

Expand All @@ -62,7 +93,7 @@
:precondition (and (BagelGrasped) (TrayPulledOut))
:effect (and
(BagelOnTray)
(NotHoldingBagel)
(NothingGrasped)
(not (BagelGrasped))
)
)
Expand Down
3 changes: 2 additions & 1 deletion scripts/bagel_oven_equidiff/problem.pddl
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@
(BagelOnTable)
(TrayInsideOven)
(OvenClosed)
(NotHoldingBagel)
(NothingGrasped)
)
(:goal (and
(TrayInsideOven)
(OvenClosed)
(BagelOnTray)
(NothingGrasped)
)
)
)

0 comments on commit 4099acf

Please sign in to comment.