Skip to content

Commit 538a868

Browse files
committed
Fixed twist3 names
1 parent f5b503c commit 538a868

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

roboticstoolbox/robot/DHRobot.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -750,25 +750,25 @@ def twists(self, q=None):
750750
# MDH case
751751
for j, link in enumerate(self):
752752
if link.sigma == 0:
753-
tw[j] = Twist3.Revolute(T[j].a, T[j].t)
753+
tw[j] = Twist3.UnitRevolute(T[j].a, T[j].t)
754754
else:
755-
tw[j] = Twist3.Prismatic(T[j].a)
755+
tw[j] = Twist3.UnitPrismatic(T[j].a)
756756
else:
757757
# DH case
758758
for j, link in enumerate(self):
759759
if j == 0:
760760
# first link case
761761
if link.sigma == 0:
762762
# revolute
763-
tw[j] = Twist3.Revolute([0, 0, 1], [0, 0, 0])
763+
tw[j] = Twist3.UnitRevolute([0, 0, 1], [0, 0, 0])
764764
else:
765-
tw[j] = Twist3.Prismatic([0, 0, 1]) # prismatic
765+
tw[j] = Twist3.UnitPrismatic([0, 0, 1]) # prismatic
766766
else:
767767
# subsequent links
768768
if link.sigma == 0:
769-
tw[j] = Twist3.Revolute(T[j - 1].a, T[j - 1].t) # revolute
769+
tw[j] = Twist3.UnitRevolute(T[j - 1].a, T[j - 1].t) # revolute
770770
else:
771-
tw[j] = Twist3.Prismatic(T[j - 1].a) # prismatic
771+
tw[j] = Twist3.UnitPrismatic(T[j - 1].a) # prismatic
772772

773773
return tw, T[-1]
774774

0 commit comments

Comments
 (0)