Skip to content

Commit

Permalink
Fix index error for analytical SO(2) Jacobians
Browse files Browse the repository at this point in the history
  • Loading branch information
brentyi committed May 5, 2024
1 parent 2c7cf89 commit 03aa2f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jaxlie/manifold/_deltas.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def rplus_jacobian_parameters_wrt_delta(transform: MatrixLieGroup) -> jax.Array:
J = jnp.zeros((*transform.get_batch_axes(), 2, 1))

cos, sin = jnp.moveaxis(transform_so2.unit_complex, -1, 0)
J = J.at[..., 0].set(-sin).at[..., 1].set(cos)
J = J.at[..., 0, :].set(-sin).at[..., 1, :].set(cos)

elif type(transform) is SE2:
# Jacobian row indices: cos, sin, x, y
Expand Down

0 comments on commit 03aa2f4

Please sign in to comment.