Skip to content

Commit

Permalink
Add vx star bar in math
Browse files Browse the repository at this point in the history
  • Loading branch information
flferretti committed Nov 30, 2023
1 parent e391475 commit ab1b3b8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/jaxsim/math/cross.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,13 @@ def vx(velocity_sixd: jtp.Vector) -> jtp.Matrix:
def vx_star(velocity_sixd: jtp.Vector) -> jtp.Matrix:
v_cross_star = -Cross.vx(velocity_sixd).T
return v_cross_star

@staticmethod
def vx_star_bar(velocity_sixd: jtp.Vector) -> jtp.Matrix:
v_cross_star_bar = jnp.block(
[
[Skew.wedge(vector=velocity_sixd.squeeze()), jnp.zeros(shape=(3, 3))],
[jnp.zeros(shape=(3, 3)), Skew.wedge(vector=velocity_sixd.squeeze())],
]
)
return v_cross_star_bar

0 comments on commit ab1b3b8

Please sign in to comment.