Skip to content

Commit c9556b4

Browse files
authored
Update rbd_algorithms.py
I incorporated joint acceleration into the reduced RNEA
1 parent 7c855ca commit c9556b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/adam/core/rbd_algorithms.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ def rnea(
439439
pi = self.model.tree.get_idx_from_name(link_pi.name)
440440
# pi = self.tree.links.index(link_pi)
441441
v[i] = X_p[i] @ v[pi] + Phi[i] * q_dot
442-
a[i] = X_p[i] @ a[pi] + self.math.spatial_skew(v[i]) @ Phi[i] * q_dot
442+
a[i] = X_p[i] @ a[pi] + self.math.spatial_skew(v[i]) @ Phi[i] * q_dot + Phi[i]* q_dot_dot
443443

444444
f[i] = Ic[i] @ a[i] + self.math.spatial_skew_star(v[i]) @ Ic[i] @ v[i]
445445

0 commit comments

Comments
 (0)