mirror of
https://github.com/AtsushiSakai/PythonRobotics.git
synced 2026-02-12 03:55:19 -05:00
adding # pragma: no cover
This commit is contained in:
@@ -22,7 +22,7 @@ class NLinkArm(object):
|
||||
self.lim = sum(link_lengths)
|
||||
self.goal = np.array(goal).T
|
||||
|
||||
if show_animation:
|
||||
if show_animation: # pragma: no cover
|
||||
self.fig = plt.figure()
|
||||
self.fig.canvas.mpl_connect('button_press_event', self.click)
|
||||
|
||||
@@ -46,7 +46,7 @@ class NLinkArm(object):
|
||||
np.sin(np.sum(self.joint_angles[:i]))
|
||||
|
||||
self.end_effector = np.array(self.points[self.n_links]).T
|
||||
if self.show_animation:
|
||||
if self.show_animation: # pragma: no cover
|
||||
self.plot()
|
||||
|
||||
def plot(self): # pragma: no cover
|
||||
|
||||
@@ -21,7 +21,7 @@ MOVING_TO_GOAL = 2
|
||||
show_animation = True
|
||||
|
||||
|
||||
def main():
|
||||
def main(): # pragma: no cover
|
||||
"""
|
||||
Creates an arm using the NLinkArm class and uses its inverse kinematics
|
||||
to move it to the desired position.
|
||||
|
||||
Reference in New Issue
Block a user