mirror of
https://github.com/AtsushiSakai/PythonRobotics.git
synced 2026-02-12 09:55:43 -05:00
@@ -51,6 +51,9 @@ class NLinkArm(object):
|
||||
|
||||
def plot(self): # pragma: no cover
|
||||
plt.cla()
|
||||
# for stopping simulation with the esc key.
|
||||
plt.gcf().canvas.mpl_connect('key_release_event',
|
||||
lambda event: [exit(0) if event.key == 'escape' else None])
|
||||
|
||||
for i in range(self.n_links + 1):
|
||||
if i is not self.n_links:
|
||||
|
||||
Reference in New Issue
Block a user