Skip to content

Quaternion Conversions, Normalizations, Multiplication - #63

Open
shankgeeth001 wants to merge 1 commit into
utilsPyfrom
dev/utilsPyConversions
Open

Quaternion Conversions, Normalizations, Multiplication#63
shankgeeth001 wants to merge 1 commit into
utilsPyfrom
dev/utilsPyConversions

Conversation

@shankgeeth001

Copy link
Copy Markdown
Collaborator

Quaternion to Euler Angle Conversions / Quaternion to Rotation Matrices Conversions / Quaternion Normalization / Quaternion Multiplication

Comment thread conversions.py

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].

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Scipy uses Hamilton convention, as does the math you've implemented. Please update the comments to reflect this.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread conversions.py
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].

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

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.

2 participants