Chris Costa
Chris Costa

Reputation: 53

Input for many objects in PDDL action

I am solving a PDDL where I transfer packets with ships. I currently made an action:

(:action load-ship
  :parameters (?ship - ship ?package - package ?port - port)
  :precondition (and 
    (at ?ship ?port)
    (at ?package ?port)
    (not (loaded ?package))
  )
  :effect (and 
    (carrying ?ship ?package)
    (not (at ?package ?port))
    (not (loaded ?package))
  )
)

This action load an package on a ship, so it can be moved. I want to make the ship take a unlimited number of packages, not only 1. How can I do this?

Upvotes: 1

Views: 165

Answers (1)

haz
haz

Reputation: 800

A universal effect should work: https://planning.wiki/ref/pddl/domain#forall

Upvotes: 0

Related Questions