Simplified Q1 and Q2 terms for Gal(3) and SEn(3) left Jacobian matrix - #8
Open
giuliodelama wants to merge 2 commits into
Open
Simplified Q1 and Q2 terms for Gal(3) and SEn(3) left Jacobian matrix#8giuliodelama wants to merge 2 commits into
giuliodelama wants to merge 2 commits into
Conversation
giuliodelama
commented
Jul 7, 2025
Contributor
- Reduced complexity of the Q1(w, z) and Q2(w, z) calculation by considering that w^w^z^w^ = w^z^w^w^ and w^w^z^w^w^ = -||w|| w^z^w^
- Tested!
…n matrix - Reduced complexity by considering w^w^z^w^=w^z^w^w^ and w^w^z^w^w^=-||w||w^z^w^ - Tested!
- U1(w) = SO3.Gamma1(w) - SO3.Gamma2(w)
There was a problem hiding this comment.
Pull request overview
This PR simplifies the closed-form expressions used in the Gal(3) and SEn(3) left Jacobian computations by reducing redundant high-order matrix products and reusing SO(3) helper matrices (e.g., Gamma2) to streamline intermediate terms.
Changes:
- Simplified the Q1 term (and corresponding coefficient) used in SE(3)/SEn(3) and Gal(3) left Jacobians by removing an algebraically redundant matrix-product term.
- Simplified the Gal(3) Q2 term by reducing the number of basis matrix products and collapsing coefficients accordingly.
- Removed
Gal3leftJacobianU1and replaced its usage with the equivalentSO3JL - SO3Gamma2formulation.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| include/groups/SEn3.hpp | Simplifies the SE(3) Q-term computation used inside SEn(3) Jacobian-related logic. |
| include/groups/Gal3.hpp | Refactors Gal(3) left/inverse-left Jacobian construction and simplifies Q1/Q2 computations (including removing U1). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| FPType ang_p6 = ang_p5 * ang; | ||
| FPType ang_p7 = ang_p6 * ang; | ||
|
|
||
| FPType c0 = 1 / 6; |
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.