@@ -77,7 +77,6 @@ class DHRobot(Robot):
77
77
"""
78
78
79
79
def __init__ (self , links , meshdir = None , ** kwargs ):
80
-
81
80
# Verify L
82
81
if not isinstance (links , list ):
83
82
raise TypeError ("The links must be stored in a list." )
@@ -92,7 +91,6 @@ def __init__(self, links, meshdir=None, **kwargs):
92
91
93
92
for link in links :
94
93
if isinstance (link , DHLink ):
95
-
96
94
# got a link
97
95
all_links .append (link )
98
96
link .number = self ._n + 1
@@ -287,7 +285,7 @@ def angle(theta, fmt=None):
287
285
if tool is not None :
288
286
table .row (
289
287
"tool" ,
290
- tool .printline (orient = "rpy/xyz" , fmt = "{:.2g}" , file = None ),
288
+ tool .strline (orient = "rpy/xyz" , fmt = "{:.2g}" ),
291
289
)
292
290
s += "\n " + str (table )
293
291
@@ -323,7 +321,6 @@ def __add__(self, L):
323
321
)
324
322
325
323
def __deepcopy__ (self , memo ):
326
-
327
324
links = []
328
325
329
326
for link in self .links :
@@ -425,7 +422,6 @@ def _set_link_fk(self, q):
425
422
tall = self .fkine_all (q , old = True )
426
423
427
424
for i , link in enumerate (self .links ):
428
-
429
425
# Update the link model transforms
430
426
for col in link .collision :
431
427
col .wT = tall [i ]
@@ -952,7 +948,6 @@ def fkine(self, q, **kwargs):
952
948
953
949
T = SE3 .Empty ()
954
950
for qr in getmatrix (q , (None , self .n )):
955
-
956
951
first = True
957
952
for q , L in zip (qr , self .links ):
958
953
if first :
@@ -1002,7 +997,6 @@ def fkine_path(self, q, old=None):
1002
997
return T
1003
998
1004
999
def segments (self ):
1005
-
1006
1000
segments = [None ]
1007
1001
segments .extend (self .links )
1008
1002
return [segments ]
@@ -1618,7 +1612,6 @@ def removesmall(x):
1618
1612
# ----------------- the forward recursion -------------------- #
1619
1613
1620
1614
for j , link in enumerate (self .links ):
1621
-
1622
1615
Rt = Rm [j ].T # transpose!!
1623
1616
pstar = pstarm [:, j ]
1624
1617
r = link .r
@@ -2482,7 +2475,6 @@ def _cross(a, b):
2482
2475
2483
2476
2484
2477
if __name__ == "__main__" : # pragma nocover
2485
-
2486
2478
import roboticstoolbox as rtb
2487
2479
2488
2480
# import spatialmath.base.symbolic as sym
0 commit comments