Skip to content

Commit d310df6

Browse files
committed
lgtm issues
1 parent e56bb94 commit d310df6

File tree

4 files changed

+9
-14
lines changed

4 files changed

+9
-14
lines changed

examples/swifty.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,9 @@
9999
# import cProfile
100100
# cProfile.run('qp = r.ikine_mmc(Tep)')
101101

102-
103-
104102
# print(r.fkine(q2))
105103
# print(r.fkine(qp))
106104

107-
108105
# q1 = r.qr
109106
# q2 = q1 + 0.1
110107

@@ -140,7 +137,6 @@
140137
# else:
141138
# raise ValueError("Method must be 'central', 'forward' or 'backward'.")
142139

143-
144140
# # Numerical hessian wrt q[0]
145141
# # d = derivative(lambda x: r.jacob0(np.r_[x, q1[1:]]), q1[0], h=0.1)
146142
# # print(np.round(h1[:, :, 0], 3))
@@ -162,8 +158,6 @@
162158
# # l = r.partial_fkine0(q1, 4)
163159
# # print(np.round(l[:, :, 0, 0, 0], 3))
164160

165-
166-
167161
# j = r.jacob0(r.q)
168162
# def runner():
169163
# for i in range(1):

roboticstoolbox/robot/DHRobot.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from roboticstoolbox.robot.DHLink import DHLink # HACK
1212
from spatialmath.base.argcheck import \
1313
getvector, isscalar, verifymatrix, getmatrix
14-
from spatialmath import base
14+
# from spatialmath import base
1515
from spatialmath.base.transforms3d import tr2jac, trinv
1616
from spatialmath.base.transformsNd import t2r
1717
from spatialmath import SE3, Twist3
@@ -739,9 +739,9 @@ def dhunique(self):
739739
if link.d != 0:
740740
table.row(f"d{j}", link.d)
741741
if link.a != 0:
742-
table.row(f"a{j}", link.a)
742+
table.row(f"a{j}", link.a)
743743
if link.alpha != 0:
744-
table.row(f"⍺{j}", link.alpha)
744+
table.row(f"⍺{j}", link.alpha)
745745
table.print()
746746

747747
def twists(self, q=None):
@@ -1643,7 +1643,8 @@ def ikine_6s(self, T, config, ikfunc):
16431643
theta = theta - self.offset
16441644

16451645
solution = iksol(theta, True, "")
1646-
solutions.append(solution)
1646+
1647+
solutions.append(solution)
16471648

16481649
if len(solutions) == 1:
16491650
return solutions[0]

roboticstoolbox/robot/ERobot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1361,7 +1361,7 @@ def jacobe(self, q, endlink=None, startlink=None, offset=None, T=None):
13611361

13621362
endlink, startlink = self._get_limit_links(endlink, startlink)
13631363

1364-
path, n = self.get_path(endlink, startlink)
1364+
# path, n = self.get_path(endlink, startlink)
13651365

13661366
if T is None:
13671367
T = self.base.inv() * \

roboticstoolbox/robot/IK.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,9 +264,9 @@ def ikine_LM(
264264
# more to do on the trajectory
265265
solutions.append(solution)
266266
del T[0]
267-
else:
268-
# no solution found, stop now
269-
return iksol(None, False, None, None, None)
267+
else:
268+
# no solution found, stop now
269+
return iksol(None, False, None, None, None)
270270

271271
if q0 is None:
272272
q0 = np.zeros((self.n,))

0 commit comments

Comments
 (0)