Why is the result of quaternion rotation an matrix multiplication not the same
조회 수: 4 (최근 30일)
이전 댓글 표시
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
채택된 답변
Jan
2016년 11월 20일
편집: Jan
2016년 11월 21일
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
James Tursa
2017년 2월 21일
Jan: "Corresponding discussions tend to end in flamewars."
My experience also ...
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Coordinate Transformations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!