vscode-pddl icon indicating copy to clipboard operation
vscode-pddl copied to clipboard

Intermediate output

Open ShrutheeshIR opened this issue 3 years ago • 2 comments

Is there a way where we could view the intermediate states and the numeric values of all the 'inited' variables? Or even just display all the numeric values of objects at the end would be great. It would be helpful in debugging. Could not find such a feature through the docs,

Thanks

ShrutheeshIR avatar Feb 13 '22 09:02 ShrutheeshIR

And is it intermediate states during search, or intermediate states that are part of the plan?

jan-dolejsi avatar Apr 03 '22 22:04 jan-dolejsi

Assuming you mean the intermediate states within the plan as if it was executed in a dead reckoning mode, and eventually the final goal-satisfying state at the end of the plan execution, you can do it this way.

Note that it is important to have the first two metadata lines in the .plan and then .happenings files. To get them there, easiest is to export the plan from the plan preview pane as shown in the screen capture. Subsequently the commands you need are available in the context menu by right-clicking on the plan/happening text.

Final plan state values: goal-state-evaluation gif

Intermediate state values: intermediate-state-evaluation gif

jan-dolejsi avatar Jun 12 '22 10:06 jan-dolejsi