Skip to content

Commit

Permalink
new getoffcar action
Browse files Browse the repository at this point in the history
  • Loading branch information
rezan21 committed Jan 16, 2019
1 parent 64b2bd8 commit 813a097
Showing 1 changed file with 25 additions and 5 deletions.
30 changes: 25 additions & 5 deletions supermarket-domain.pddl
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@

(:predicates
(at ?o - object ?l - location)
;(agentfree ?a - agent)
(on ?i - item ?a - agent)
(agentoncar ?a ?c )
(hasagent ?c - car)
(hasnotagent ?c - car)
(haspath ?from - location ?to - location)
)

Expand Down Expand Up @@ -64,18 +65,37 @@
:parameters (?a - agent ?c - car ?l - location)
:duration(= ?duration 5)
:condition(and
(at start(not(hasagent ?c)) )
(over all(at ?a ?l))
;at start has no driver or over all?
(at start((hasnotagent ?c)) )
(at start(at ?a ?l))
(over all(at ?c ?l))

)
:effect(and
(at start(not(at ?a ?from)) )
(at end(at ?a ?to))
(at start(not(at ?a ?l)) )
(at end(agentoncar ?a ?c))
(at end(hasagent ?c))
(at end(not(hasnotagent ?c)))
)

)

(:durative-action getoffcar
:parameters (?a - agent ?c - car ?l - location)
:duration(= ?duration 5)
:condition(and
(at start(agentoncar ?a ?c))
(over all(at ?c ?l))

)
:effect(and
(at start(not(hasagent? c)) )
(at start(hasnotagent ?c))
(at start(not(agentoncar ?a ?c)))
(at end(at ?a ?l))
)

)



Expand Down

0 comments on commit 813a097

Please sign in to comment.