Closed TMPxyz closed 6 years ago
Again, thanks for the report, this one has also been fixed with the last two commits.
About graphviz, it looks like a very nice addon on the planner, do you have a working code change with it? I would be interested in a pull request if so 👍
About graphviz, it looks like a very nice addon on the planner, do you have a working code change with it? I would be interested in a pull request if so 👍
Sure, I'll send a pull request to you soon.
But it is quite rough in the sense of user-friendliness. The code would just write the plan log into the .dot files, and it requires users to pre-install graphviz and use gvedit.exe/dot.exe to transform the log files into pictures.
You might need to edit it a bit to make it better fit the need.
The planner might make wrong plan on some special conditions. Here's a unit-test to reproduce it.
The one goal is "GatherAppleAndPeach"
With special cost setting, the planner might give wrong plan with steps:
0) GatherPeach 1) Goto 2) GatherApple
Here is a plan making graph made with graphviz;