Create Holoscan Application Diagram

Hello,

I would like to visualize our Holoscan pipeline using graphviz but I can’t manage to extract structural information from any Holoscan object.

app.graph.get_operators()
TypeError: Unregistered type : std::vector<std::shared_ptr<holoscan::Operator>, std::allocator<std::shared_ptr<holoscan::Operator> > >

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
TypeError: Unable to convert function return value to a Python type! The signature was
	(arg0: holoscan.graphs._graphs.FlowGraph) -> std::vector<std::shared_ptr<holoscan::Operator>, std::allocator<std::shared_ptr<holoscan::Operator> > >

Did you forget to `#include <pybind11/stl.h>`? Or <pybind11/complex.h>,
<pybind11/functional.h>, <pybind11/chrono.h>, etc. Some automatic
conversions are optional and require extra headers to be included
when compiling your pybind11 module.

How did you create the pipeline diagrams used in the Holoscan user guide?

This is a great point you’re bringing up! In v0.6 the access to the graph API in Python will be added to eliminate this error you’re seeing, and you could use something like networkx + matplotlib. We can provide an example on this after the v0.6 release.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.