Why is the result of quaternion rotation an matrix multiplication not the same
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Daniel Schneider
el 20 de Nov. de 2016
Comentada: James Tursa
el 7 de Feb. de 2020
Hi guys,
Consider the following:
R = [1,0,0;0,0,-1;0,1,0];
y = [0;1;0];
R*y
quatrotate(rotm2quat(R),[0,1,0])
The results are (in the same order):
(0; 0; 1)
(0, 0, -1)
Why is the result not the same?
I can force it to give the same result if I do
quatrotate(quatinv(rotm2quat(R)),y)
which yields
(0, 0, 1)
Thanks for the help!
1 comentario
James Tursa
el 7 de Feb. de 2020
See this link for a discussion of the MATLAB quaternion convention:
Respuesta aceptada
Jan
el 20 de Nov. de 2016
Editada: Jan
el 21 de Nov. de 2016
See https://www.mathworks.com/matlabcentral/answers/155400-why-does-quatrotate-produce-negative-rotations : It is the difference between rotating the coordinates or the reference frame.
4 comentarios
James Tursa
el 21 de Feb. de 2017
Jan: "Corresponding discussions tend to end in flamewars."
My experience also ...
Más respuestas (0)
Ver también
Categorías
Más información sobre Coordinate Transformations en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!