Calculating roll, pitch, and yaw from XYZ coordinates of 3 planar points?

12 Ansichten (letzte 30 Tage)
Wonkyo Jung
Wonkyo Jung am 13 Aug. 2019
Bearbeitet: Wonkyo Jung am 14 Aug. 2019
Hello.
I have a body moving through a space. The body has 3 co-planar points on the body. I know the global X, Y, and Z coordinates of the 3 points. I know the coordinates over time along the path.
How can I calculate the roll, pitch and yaw angles of the plane on the body based on the initial location?
[I had a look at the question and the answer uploaded on 9 Aug 2016 (https://kr.mathworks.com/matlabcentral/answers/298940-how-to-calculate-roll-pitch-and-yaw-from-xyz-coordinates-of-3-planar-points), but somehow it doesn't seem to work well. Even for the points on the same plane, the angles varied in order, and the xyz axis didn't appear to be clear.]

Antworten (1)

Bruno Luong
Bruno Luong am 13 Aug. 2019
Bearbeitet: Bruno Luong am 13 Aug. 2019
You might use
to derive the translation/rotation (6DOfs), then compute the roll/pitch/yaw from the rotation matrix, (depending on you desired convention of the angles).

Kategorien

Mehr zu Cartesian Coordinate System Conversion finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by