Skip to content

Convert list to SequentialPlan #487

Closed Answered by Framba-Luca
jdavidrcamacho asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @jdavidrcamacho , so, currently the feature you want is not implemented, but the PDDLReader offers a parse_plan_string that creates SequentialPlans from this format (citing doc.):

The format of the file must be:
         ``(action-name param1 param2 ... paramN)`` in each line for SequentialPlans
        ``start-time: (action-name param1 param2 ... paramN) [duration]`` in each line for TimeTriggeredPlans,
        where ``[duration]`` is optional and not specified for InstantaneousActions.

So, from your format (and the Problem for which the plan is created) you can use python to create a string that fits the format above.

It would be something like:

import unified_planning as up
plan = ['…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jdavidrcamacho
Comment options

Answer selected by jdavidrcamacho
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants