How to calculate roll, pitch and yaw from XYZ coordinates of 3 planar points?
Show older comments
I have a body moving through a calibrated space. The body has 3 co-planar points on it. I know the global x, y and z coordinates of each of those points.
How can I calculate the roll, pitch and yaw angles of the plane on the body?
Thanks, Sophia
5 Comments
By planar you mean colinear? 3 planar points is redundant as three points are the minimum required to define a plane. And if they are colinear then you can only calculate two out of the three. Some goes if they define a plane: you still need to define axes of reference.
T
on 9 Aug 2016
Dhruvesh Patel
on 9 Aug 2016
Calculating roll, pitch and yaw angles for a body amounts to finding the orientation of the XYZ-axes, rigidly attached to the body, w.r.t the reference frame (in this case it is floor). Trying to get the orientation of the body fixed XYZ-axes just from 3 coplanar points presents one ambiguity i.e., the direction of the axis perpendicular to the plane formed by these three points cannot be determined, as the plane has two faces and this axis can point to either of the two directions. This can be resolved if the points have a sense of direction in their ordering i.e., if it is known that the points are listed in clockwise or any clockwise direction. If you can mention that then this problem can be solved.
T
on 9 Aug 2016
Arash Jouybari
on 12 Feb 2017
Hi Sophia S I exactly want to know about your GPS antenna configuration... and I didn't understand about body-fixed axis that Dhruvesh Patel said.
I have your problem as you wrote above. arash.joybari@gmail.com this is my email plaese help me to solve my problem.
thanks
Accepted Answer
More Answers (0)
Categories
Find more on Axes Transformations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!