switching between quaternion and rotation matrix - 3D rotation Matric Problem
Mostrar comentarios más antiguos
Hi, I have been working on transforming my previous code for reflecting points from an arbitrary plane by calculating via analytic solutions to matrix transformations. So basically, I am trying to get a matrix as such : TranslateBack*RotateBack*Reflect*Rotate*Translate (Each are separate 4x4 matrices multiplied with a set of points). Translation and reflection are pretty easy and can be obtained even from Wikipedia. But when I try to rotate my system (including plane and point) in 3 different axes I stuck with gimbal lock. So I made a quick research and quaternions seem like the answer. Yet I have confusion switching between angles (alpha, beta, gamma lets say) to quaternion and integrating to matrix multiplication. Does anyone have an idea of using quaternions in such transformation matrices? Thanks in advance.
Note: I have aerospace toolbox which enables conversion from rotation angles to quaternions easily. Bu I am also quite confused about how to employ these tools.
Respuestas (3)
F?rat
el 1 de Nov. de 2013
0 votos
Mischa Kim
el 9 de Dic. de 2013
0 votos
Based on your information it is not quite clear what exactly you are trying to accomplish. Could you give more detail?
F?rat
el 9 de Dic. de 2013
0 votos
Categorías
Más información sobre Quaternion Math en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!