Quaternion Conversions, Normalizations, Multiplication - #63
Open
shankgeeth001 wants to merge 1 commit into
Open
Conversation
…malization/QuaternionMultiplication
wlodaralex
requested changes
Jul 21, 2026
|
|
||
| Python code for performing quaternion <-> Euler Angle conversions. | ||
|
|
||
| Note that quaternion arguments must all be in scalar-last JPL convention, i.e., in the format of [x, y, z, w]. |
Collaborator
There was a problem hiding this comment.
Scipy uses Hamilton convention, as does the math you've implemented. Please update the comments to reflect this.
Collaborator
There was a problem hiding this comment.
Note that this may not be what's expected elsewhere, i.e. the attitude dynamics module and the STR class. Please take a look at those and make sure everything is compatible before you update.
| Python code for performing quaternion <-> Euler Angle conversions. | ||
|
|
||
| Note that quaternion arguments must all be in scalar-last JPL convention, i.e., in the format of [x, y, z, w]. | ||
| Euler angles must be expressed in the 3-2-1 Euler angle sequence [Yaw, Pitch, Roll]. |
Collaborator
There was a problem hiding this comment.
It's common to use [roll, pitch, yaw]. I believe in our dynamics module we use [omega_x, omega_y, omega_z] which would correspond to this. I would adjust your code accordingly.
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.
Quaternion to Euler Angle Conversions / Quaternion to Rotation Matrices Conversions / Quaternion Normalization / Quaternion Multiplication