quat2eul conversion sequence
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Jamie Costello
am 25 Okt. 2017
Kommentiert: Jamie Costello
am 2 Nov. 2017
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{:});
0 Kommentare
Akzeptierte Antwort
MathWorks Robotics and Autonomous Systems Team
am 31 Okt. 2017
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
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Unit Conversions finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!