Skip to content

Commit 25b57ba

Browse files
committed
toward solution for issue #226, need to deal properly with static joints
1 parent b8175d8 commit 25b57ba

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

roboticstoolbox/robot/ERobot.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2102,7 +2102,10 @@ def rne(robot, q, qd, qdd, symbolic=False, gravity=None):
21022102
Xtree[j] = SE3(np.eye(4, dtype="O"), check=False)
21032103
else:
21042104
Xtree[j] = SE3(link.Ts, check=False)
2105-
s[j] = link.v.s
2105+
if link.v is not None:
2106+
s[j] = link.v.s
2107+
else:
2108+
s[j] = None
21062109

21072110
if gravity is None:
21082111
a_grav = -SpatialAcceleration(robot.gravity)

0 commit comments

Comments
 (0)