We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2debe3 commit 2afa10aCopy full SHA for 2afa10a
ArmNavigation/n_joint_arm_3d/NLinkArm3d.py
@@ -43,8 +43,6 @@ def basic_jacobian(trans_prev, ee_pos):
43
44
class NLinkArm:
45
def __init__(self, dh_params_list):
46
- self.fig = plt.figure()
47
- self.ax = Axes3D(self.fig)
48
self.link_list = []
49
for i in range(len(dh_params_list)):
50
self.link_list.append(Link(dh_params_list[i]))
@@ -64,6 +62,9 @@ def forward_kinematics(self, plot=False):
64
62
alpha, beta, gamma = self.euler_angle()
65
63
66
if plot:
+ self.fig = plt.figure()
+ self.ax = Axes3D(self.fig)
67
+
68
x_list = []
69
y_list = []
70
z_list = []
0 commit comments