Search code examples
drake

Is there a way to visualize a block diagram of a drake system?


After I construct a DiagramBuilder and connect systems via ports, I would like to see this system as a visual block diagram, sort of like simulink. Is there a way to export a png of the block diagram or something?


Solution

  • After building the DiagramBuilder into a Diagram, you can call the System::GetGraphvizString function on the Diagram object.

    There's an example in the dynamical_systems.ipynb tutorial.