Skip to content

Commit bd7e087

Browse files
committed
reworked fkine_all for DH class
1 parent b8fbc9e commit bd7e087

File tree

1 file changed

+3
-16
lines changed

1 file changed

+3
-16
lines changed

roboticstoolbox/robot/DHRobot.py

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -926,25 +926,12 @@ def fkine_all(self, q=None, old=True):
926926
"""
927927
q = self._getq(q)
928928

929-
if self._base is not None:
930-
Tj = self._base
931-
else:
932-
Tj = SE3()
933-
first = True
929+
Tj = self.base.copy()
934930
Tall = Tj
935931

936932
for q, L in zip(q, self.links):
937-
if first:
938-
939-
Tj *= L.A(q)
940-
if old:
941-
Tall = Tj
942-
else:
943-
Tall.append(Tj)
944-
first = False
945-
else:
946-
Tj *= L.A(q)
947-
Tall.append(Tj)
933+
Tj *= L.A(q)
934+
Tall.append(Tj)
948935
return Tall
949936

950937
def jacobe(self, q, half=None):

0 commit comments

Comments
 (0)