How to define an axis based on multiple quaternions?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Silas Waxter
le 18 Août 2019
Commenté : James Tursa
le 7 Fév 2020
I have two sensors (IMUs) that stream quaternions to a data set. During streaming, the sensors are rotated around an unknown axis. I'm looking for a way to get the axis using the set of quaternions.
1 commentaire
Réponse acceptée
James Tursa
le 2 Déc 2019
Modifié(e) : James Tursa
le 2 Déc 2019
Assume you have the following:
q1 = quaternion from ECI to BODY at time1 (i.e., BODY1 frame)
q2 = quaternion from ECI to BODY at time2 (i.e., BODY2 frame)
Then do a quaternion multiply as follows
q = conjugate(q1) * q2 = quaternion from BODY1 to BODY2
And extract the rotation axis as follows
v = vector part of q
u = v / norm(v) = unit axis of rotation in BODY coordinates
How you do the conjugation and the quaternion multiply and how you extract the vector part depends on the quaternion convention used. For MATLAB toolboxes the vector part is in the last three elements of the quaternion. But for your streaming quaternions it might be different. You would need to verify all this in order to write the multiply and extraction code correctly.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Coordinate Transformations dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!