Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maumagnaguagno/classical_plan_viewer
:tophat: Graph visualization of classical plans
https://github.com/maumagnaguagno/classical_plan_viewer
d3 graphviz javascript pddl planning visualization
Last synced: 29 days ago
JSON representation
:tophat: Graph visualization of classical plans
- Host: GitHub
- URL: https://github.com/maumagnaguagno/classical_plan_viewer
- Owner: Maumagnaguagno
- Created: 2021-08-11T18:21:23.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-03-10T16:02:14.000Z (10 months ago)
- Last Synced: 2024-03-10T17:23:43.962Z (10 months ago)
- Topics: d3, graphviz, javascript, pddl, planning, visualization
- Language: HTML
- Homepage: https://maumagnaguagno.github.io/Classical_Plan_Viewer/
- Size: 11.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Classical Plan Viewer
**Graph visualization of classical plans**Convert a JSON plan into a [DOT](https://www.graphviz.org/doc/info/lang.html) graph to be client-rendered using [d3-graphviz](https://github.com/magjac/d3-graphviz).
The plan format is made of an array of action objects, each action with at least a name, arrays of parameters, preconditions and effects.
Arrays can be empty, while all leaf elements are strings.
The input format and visualization can be modified to support more elements.
The current implementation expects valid plans and does not validate the input.```Json
[
{"action": "a1",
"parameters": ["a", "b"],
"precondition": ["pred1 a", "pred2", "not = a b"],
"effect": ["not pred1 a", "pred1 b"]},
...
]
```An URL query can be used to load an online JSON file, [limited to GitHub](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing).
```
https://maumagnaguagno.github.io/Classical_Plan_Viewer?from=https://maumagnaguagno.github.io/Classical_Plan_Viewer/plan.json
```This project is the counterpart of [HTN Plan Viewer](../../../HTN_Plan_Viewer).