Cypress Frankenfeld
Cypress Frankenfeld

Reputation: 2527

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?

Upvotes: 0

Views: 222

Answers (1)

jwnimmer-tri
jwnimmer-tri

Reputation: 2449

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.

Upvotes: 1

Related Questions