Repository navigation
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The small-angle branch of
_SO3_jac_leftreturns the rotation matrix instead of the left Jacobian used bySE3.expto map its translation component. ForOmega = skew(theta), the required matrix isV = integral_0^1 exp(t * Omega) dt = I + Omega/2 + Omega^2/6 + .... Returning the rotation matrix gives coefficients1and1/2, introducing first-order translation error and incorrect derivatives at zero rotation.Use the second-order Taylor series for
Vin 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.expresult 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:
black . --checkandmypy .pass.setup.py sdistandbdist_wheelcommands 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.