Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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).