Closed Sollimann closed 2 years ago
A possible option is to compile the behavior tree to a petgraph, then from a petgraph to a graphviz.dot format for visualization
could then use petgraph_evcxr lib to plot:
Imnodes wrapper seems to be the best option: https://github.com/benmkw/imnodes-rs
egui_node_graph looks like the best option.
Potential flow:
We could also have that the behavior tree sets up a websocket service, that writes which node is active. Then a second service will read that and compile the tree. The second service would need to read a json to know how the tree is composed such that it can be visualized.