Skip to content

Commit

Permalink
Make output_vel_repr non-static in api.model
Browse files Browse the repository at this point in the history
  • Loading branch information
flferretti committed May 23, 2024
1 parent a262dda commit 9bc8e2c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/jaxsim/api/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ def forward_kinematics(model: JaxSimModel, data: js.data.JaxSimModelData) -> jtp
return jnp.atleast_3d(W_H_LL).astype(float)


@functools.partial(jax.jit, static_argnames=["output_vel_repr"])
@jax.jit
def generalized_free_floating_jacobian(
model: JaxSimModel,
data: js.data.JaxSimModelData,
Expand Down Expand Up @@ -1125,7 +1125,7 @@ def total_momentum(model: JaxSimModel, data: js.data.JaxSimModelData) -> jtp.Vec
return Jh @ ν


@functools.partial(jax.jit, static_argnames=["output_vel_repr"])
@jax.jit
def total_momentum_jacobian(
model: JaxSimModel,
data: js.data.JaxSimModelData,
Expand Down Expand Up @@ -1212,7 +1212,7 @@ def average_velocity(model: JaxSimModel, data: js.data.JaxSimModelData) -> jtp.V
return J @ ν


@functools.partial(jax.jit, static_argnames=["output_vel_repr"])
@jax.jit
def average_velocity_jacobian(
model: JaxSimModel,
data: js.data.JaxSimModelData,
Expand Down

0 comments on commit 9bc8e2c

Please sign in to comment.