Yaw, Pitch and Roll

22 ビュー (過去 30 日間)
Mario Trevino
Mario Trevino 2014 年 11 月 12 日
回答済み: Chad Greene 2014 年 11 月 13 日
hi Everyone I have a video where I record, on each frame, the location of a little plaque with 4 colored dots (different color for each dot) which is moving. I want to calculate Yaw, Pitch and Roll of the plaque over time....
is there any solution for this problema allready out there???
cheeers
mario

回答 (2 件)

Chad Greene
Chad Greene 2014 年 11 月 12 日
編集済み: Chad Greene 2014 年 11 月 12 日
Check out the xyz2rpy function described here. The results are not exact science, but it'll return something that looks decent. Depending on the speed of your particles you might have to scale roll by a rollfactor.
  1 件のコメント
Mario Trevino
Mario Trevino 2014 年 11 月 13 日
hi Chad thanks for your answer. Im not sure that your code actually Works with what I need to solve. I have a fixed webcam which is recording a tag with 4 colored dots over the head of a moving animal. Im going to extract the location of each dot over time, and combining that information I want to estimate yaw, pitch and roll... any hints?

サインインしてコメントする。


Chad Greene
Chad Greene 2014 年 11 月 13 日
Perhaps you could fit a plane to the 4 points using least squares. If you fit that plane with z as the independent variable, the dz/dx slope would be pitch and dz/dy would be roll. Fit another plane to the same 4 points with x as the independent variable, and dx/dy would be yaw. I am not sure if that's the most elegant solution, or even if it's completely right, but it might be worth trying. The values of roll, pitch, and yaw would be relative to a global coordinate system.

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by