aiplan4eu / unified-planning

The AIPlan4EU Unified Planning Library
Apache License 2.0
192 stars 41 forks source link

PDDL Output #13

Closed mikand closed 3 years ago

mikand commented 3 years ago

User Story

As a planning expert/enthusiast I want to be able to emit a PDDL representation of a planning problem modeled in the upf library to interoperate with an external planner manually.

For example, I want to dump a planning model that is generated from a TSB to include it in a planning competition or to experiment with an off-the-shelf planner that is not interfaced with the UPF

Acceptance Criteria

Additional Material

An interface like

from upf.io import PDDLPrinter
printer = PDDLPrinter(problem) 
printer.write_domain("domain.pddl")
printer.write_problem("instance.pddl")

could be suitable.

Attention Points

haz commented 3 years ago

Again, tarski to the rescue ;)

We have some decent experience in building domains/problems dynamically, and then writing out to PDDL.