Skip to content

Commit 404467e

Browse files
committed
Fixed joint transform matrix q parameter in RNE
1 parent 51b6d44 commit 404467e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

roboticstoolbox/robot/Robot.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1784,7 +1784,10 @@ def rne(
17841784
vJ = SpatialVelocity(s[j] * qdk[j])
17851785

17861786
# transform from parent(j) to j
1787-
Xup[j] = SE3(self.links[j].A(qk[j])).inv()
1787+
if self.links[j].jindex is not None:
1788+
Xup[j] = SE3(self.links[j].A(qk[self.links[j].jindex])).inv()
1789+
else:
1790+
Xup[j] = SE3(self.links[j].A()).inv()
17881791

17891792
if self.links[j].parent is None:
17901793
v[j] = vJ

0 commit comments

Comments
 (0)