calculate rotation of an object using three markers connected to an object

조회 수: 12 (최근 30일)
Hi
I am trying to calculate the rotation (orientation) of an object using three markers placed on the sides of the object. I have attached the sketch of the given object with markers on it.
Can anyone please help me on this?
Thank you!
PA
  댓글 수: 2
Adam Danz
Adam Danz 2019년 10월 4일
Not enough info.
Are you rotating the image or are you rotating a set of coordinates that are similar to those shown in the image?
What is the axis of rotation?
What is the angle of rotation?
pacharya
pacharya 2019년 10월 4일
Hi Adam,
In the picture, the rectangle with three circular dots represents an object with three motion capture passive markers and during an experiment, it is being carried around by the subject. I want to know how much this object has rotated in x, y and z plane when it is carried. I have updated the figure to show the plane of motion.
Thank you for your interest,
PA

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

채택된 답변

Matt J
Matt J 2019년 10월 4일
You can use this FEX file to calculate the rotation of a set of points,
  댓글 수: 3
pacharya
pacharya 2019년 10월 5일
Hi Matt,
Thank you for sharing this function. I did not work for me as it is giving me an error message: Points must be either 2D or 3D
I have saved the 3D markers values in the given two inputs variables. Could you please give me since I am new to MATLAB? Thank you,
Adam Danz
Adam Danz 2019년 10월 5일
편집: Adam Danz 2019년 10월 5일
@pacharya , When you use a new function for the first time, take a few minutes to read about the function by using the help() or doc() commands. It is important to 1) understand what the function generally does, 2) understand what inputs are required and what form they should take, and 3) understand what the function outputs.
Matt has done an excellent job at documenting this function and the input description is clear:
% absor(A,B, ...)
% A: a 2xN or 3xN matrix whos columns are the coordinates of N source points.
% B: a 2xN or 3xN matrix whos columns are the coordinates of N target points.
If the dimensions of 'A' do not fit those requirements, you get the error message you shared.
If your marker data are 3D you need to organize them into a 3xN matrix.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Point Cloud Processing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by