Skip to content

Correct the Taylor series for the SO(3) left Jacobian - #26

Open
Afloat16 wants to merge 1 commit into
brentyi:masterfrom
Afloat16:fix/so3-left-jacobian-taylor-20261010
Open

Afloat16 wants to merge 1 commit into
brentyi:masterfrom
Afloat16:fix/so3-left-jacobian-taylor-20261010

Conversation

@Afloat16

@Afloat16 Afloat16 commented Oct 9, 2026

Copy link
Copy Markdown

The small-angle branch of _SO3_jac_left returns the rotation matrix instead of the left Jacobian used by SE3.exp to map its translation component. For Omega = skew(theta), the required matrix is V = integral_0^1 exp(t * Omega) dt = I + Omega/2 + Omega^2/6 + .... Returning the rotation matrix gives coefficients 1 and 1/2, introducing first-order translation error and incorrect derivatives at zero rotation.

Use the second-order Taylor series for V in the existing small-angle branch. The regular-angle formula, branch thresholds and helper signature remain unchanged.

Four regression functions, each parameterized over float32 and float64, check the public SE3.exp result against an independent SciPy matrix exponential, the analytic translation Jacobian and Hessian at zero rotation, and mixed batches with logarithm round trips. All eight cases fail with assertion errors on the original code and pass with the correction.

Validation on Windows CPU with ordinary CPython 3.12.13, JAX/jaxlib 0.4.35, NumPy 1.26.4 and SciPy 1.15.3:

  • All 107 existing cases in the affected SE(3) consumer scope and direct SO(3) left-Jacobian scope pass unchanged; the matching scope plus the eight regressions passes all 115 cases.
  • Original Hypothesis settings, loops, tolerances, two pytest workers and JIT remain enabled; x64 is enabled for the float64 checks.
  • Complete black . --check and mypy . pass.
  • Original setup.py sdist and bdist_wheel commands succeed for both original and modified source. Each wheel and sdist contains the complete package source with matching metadata.

Validation covers the affected scope on Windows CPU; the historical Linux CI matrix remains for upstream CI.

Use the integral Taylor coefficients in the small-angle left Jacobian. Verify public SE3 exponential values and analytic first and second derivatives for float32 and float64.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant