RussTedrake / manipulation

Course notes for MIT manipulation class
BSD 3-Clause "New" or "Revised" License
392 stars 115 forks source link

Add path to RenderDiagram for Ch2, Ex _01_reflected_inertia #304

Closed Jakeisthesnake closed 2 months ago

Jakeisthesnake commented 3 months ago

[Note: I'm quite the beginner]

Got the following error when trying to visualize the block diagram: Execution error NameError: name 'RenderDiagram' is not defined

After adding path to utils, the error went away and the program displayed the proper diagram.

Aside: the follow edit looked cleaner and appeared to also solve the issue, but I wasn't sure if there was a reason for importing running_as_notebook from manipulation instead of from manipulation.utils modified line: from manipulation import running_as_notebook to: from manipulation.utils import running_as_notebook, RenderDiagram


This change is Reviewable