Skip to content

Commit

Permalink
Remove JIT compilation from inequality bounds function
Browse files Browse the repository at this point in the history
  • Loading branch information
flferretti committed Feb 26, 2025
1 parent d1f7cac commit 03ecf8e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/jaxsim/rbda/contacts/rigid.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,11 +415,16 @@ def _compute_ineq_constraint_matrix(
return G


@jax.jit
@js.common.named_scope
def _compute_ineq_bounds(n_collidable_points: int) -> jtp.Vector:
"""
Compute the inequality bounds for the contact forces.
Note:
Do not JIT this function as the output shape depends on the number of collidable points.
"""

n_constraints = 6 * n_collidable_points

return jnp.zeros(shape=(n_constraints,))


Expand Down

0 comments on commit 03ecf8e

Please sign in to comment.