quat2eul conversion sequence

조회 수: 10 (최근 30일)
Jamie Costello
Jamie Costello 2017년 10월 25일
댓글: Jamie Costello 2017년 11월 2일
Hi, I am having trouble with quat2eul. The default sequence 'ZYX' works and so does the ZYZ rotation but I keep getting an error when I try'XYZ'. Anyone had similar? Thanks, Jamie.
% Do quaternion->Euler conversion
euldata = zeros(length(quatdata), 3);
for i = 1:length(quatdata)
euldata(i,:) = quat2eul(quatdata(i,3:6),'XYZ');
end
%euldata = vtg_quat2eul(quatdata);
Error in quat2eul (line 35)
seq = robotics.internal.validation.validateEulerSequence(varargin{:});

채택된 답변

MathWorks Robotics and Autonomous Systems Team
Hi Jamie,
The 'XYZ' sequence was recently added to Robotics System Toobox™ in the R2017b release. I am assuming you are viewing the documentation from the web, which correlates with the newest release.
You can type 'doc quat2eul' in your command window to verify what sequences are supported for your specific release.
If you have Aerospace Toolbox™, you could consider using quat2angle, which has supported many other sequences for some time.
Thanks,
Robotics Team
  댓글 수: 1
Jamie Costello
Jamie Costello 2017년 11월 2일
You're right. I don't have the XYZ in my current version. Looking into quat2angle. Thanks for the help..

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Unit Conversions에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by