Skip to content

Commit

Permalink
Update rbd_algorithms.py
Browse files Browse the repository at this point in the history
I incorporated joint acceleration into the reduced RNEA
  • Loading branch information
Giaco02 authored Sep 1, 2024
1 parent 7c855ca commit c9556b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/adam/core/rbd_algorithms.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ def rnea(
pi = self.model.tree.get_idx_from_name(link_pi.name)
# pi = self.tree.links.index(link_pi)
v[i] = X_p[i] @ v[pi] + Phi[i] * q_dot
a[i] = X_p[i] @ a[pi] + self.math.spatial_skew(v[i]) @ Phi[i] * q_dot
a[i] = X_p[i] @ a[pi] + self.math.spatial_skew(v[i]) @ Phi[i] * q_dot + Phi[i]* q_dot_dot

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

Expand Down

0 comments on commit c9556b4

Please sign in to comment.