distance between two points
- Mehran Razzaghi
- Posts: 18
- Joined: Wed Dec 02, 2015 9:49 am
distance between two points
Hi there,
I want to measure the distance between two points. I tried to do it with Point Kinematic. but there is just one point to define with respect to a body name. how can it implement? For example, if we have a point in the femur and the other one in the tibia, how can we measure the distance changes during a motion?
Thanks.
I want to measure the distance between two points. I tried to do it with Point Kinematic. but there is just one point to define with respect to a body name. how can it implement? For example, if we have a point in the femur and the other one in the tibia, how can we measure the distance changes during a motion?
Thanks.
Tags:
- Nicos Haralabidis
- Posts: 196
- Joined: Tue Aug 16, 2016 1:46 am
Re: distance between two points
Hello Mehran,
You can define a point locally in each separate body, then extract those local positions in the global frame for each point (using the point kinematics analysis) and then calculate the distance between these two points using Matlab/Excel etc.
Hope that helps!
Best wishes,
Nicos
You can define a point locally in each separate body, then extract those local positions in the global frame for each point (using the point kinematics analysis) and then calculate the distance between these two points using Matlab/Excel etc.
Hope that helps!
Best wishes,
Nicos
- Mehran Razzaghi
- Posts: 18
- Joined: Wed Dec 02, 2015 9:49 am
Re: distance between two points
Thanks Nicos for your prompt response.
Ok. so, in the point kinematics analysis, first I should define a point in the femur. then I repeat it for the tibia.
and for the global frame, do you mean I should select global in the 'relative_to_body_name' section, for each point?
And for the point distances, by doing math operations, is the distance between the point calculated according to the global references?
Much appreciated,
Mehran
Ok. so, in the point kinematics analysis, first I should define a point in the femur. then I repeat it for the tibia.
and for the global frame, do you mean I should select global in the 'relative_to_body_name' section, for each point?
And for the point distances, by doing math operations, is the distance between the point calculated according to the global references?
Much appreciated,
Mehran
- Nicos Haralabidis
- Posts: 196
- Joined: Tue Aug 16, 2016 1:46 am
Re: distance between two points
Hey Mehran,
In the body name specify the femur for example, in the relative to body tag specify ground. Assuming you define the position of your point p1 in the femur frame, the analysis will output p1 in the ground frame (global). Same processes for point p2 in tibia frame. The points need to be expressed in the same frame for the 'distance' between them to make sense - I believe.
Cheers,
Nicos
In the body name specify the femur for example, in the relative to body tag specify ground. Assuming you define the position of your point p1 in the femur frame, the analysis will output p1 in the ground frame (global). Same processes for point p2 in tibia frame. The points need to be expressed in the same frame for the 'distance' between them to make sense - I believe.
Cheers,
Nicos
- Mehran Razzaghi
- Posts: 18
- Joined: Wed Dec 02, 2015 9:49 am
Re: distance between two points
Thanks a lot Nicos for your advice.
It was really helpful. I did it, but there is something which I didn't get it. When I choose Femur as a body and select the ground as a relative to the body, after plotting, the states(0,1,2) didn't change and they are straight lines. is it related to my selected point? what is your idea about this issue?
Many thanks.
Mehran
It was really helpful. I did it, but there is something which I didn't get it. When I choose Femur as a body and select the ground as a relative to the body, after plotting, the states(0,1,2) didn't change and they are straight lines. is it related to my selected point? what is your idea about this issue?
Many thanks.
Mehran
- Nicos Haralabidis
- Posts: 196
- Joined: Tue Aug 16, 2016 1:46 am
Re: distance between two points
Did you specify a kinematics file? You need to specify this alongside defining the point kinematics analysis. In the first pane of the GUI for the analyze tool it provides a field to set the file.
Cheers,
Nicos
Cheers,
Nicos
- Mehran Razzaghi
- Posts: 18
- Joined: Wed Dec 02, 2015 9:49 am
Re: distance between two points
Yes, I did. I define a '.mot' file in the main setting and defined the point kinematics according to the specified numbers. I attached the file screen of the setting and results. I don't know why there are no changes in the graph? Is it can be because of the proximity of the points to the femur or reference body?
By the way, with this method can I measure the distance between two markers and also ligaments length?
Thanks,
Mehran
By the way, with this method can I measure the distance between two markers and also ligaments length?
Thanks,
Mehran
- Attachments
-
- setting0.jpg (290.07 KiB) Viewed 508 times
-
- plot.jpg (169.11 KiB) Viewed 508 times
- Nicos Haralabidis
- Posts: 196
- Joined: Tue Aug 16, 2016 1:46 am
Re: distance between two points
The .mot file you are using definitely contains coordinates that are changing across time? I also noticed you are trying to perform the analysis from 0-2 seconds, but you have plotted 0-0.7 seconds - perhaps check you are definitely plotting the correct variables. You can measure the distance between markers using this approach, yeah - for ligament lengths you will likely need to model the ligament - perhaps this article can help - https://www.sciencedirect.com/science/a ... 3322000535
Thanks,
Nicos
Thanks,
Nicos
- Mehran Razzaghi
- Posts: 18
- Joined: Wed Dec 02, 2015 9:49 am
Re: distance between two points
Yes, I just made a sample file with some different numbers. I attached the file. Because I just want to follow the femur and tibia, I just digited the 'knee_angle_r'. The time will be synchronized with the setting. I checked it. The question is why when I choose a point in 'body_name' femur there is no change, in the plot, but when I changed to the tibia, there will be a change in the line? (like the pic)
Thank you, this paper will be helpful.
Regards,
Mehran
Thank you, this paper will be helpful.
Regards,
Mehran
- Attachments
-
- diffrence.jpg (518.32 KiB) Viewed 481 times
-
- sample1.mot
- (1.8 KiB) Downloaded 10 times
- Nicos Haralabidis
- Posts: 196
- Joined: Tue Aug 16, 2016 1:46 am
Re: distance between two points
Hey Mehran,
I just checked the .mot file you sent, the reason you observe the point on the tibia moving, and not the point on the femur, is because you have only generated motion for the knee flexion-extension coordinate. As the femur is not moving (e.g., flexing, abducting) it is no surprise that the point on that segment remains constant.
Cheers,
Nicos
I just checked the .mot file you sent, the reason you observe the point on the tibia moving, and not the point on the femur, is because you have only generated motion for the knee flexion-extension coordinate. As the femur is not moving (e.g., flexing, abducting) it is no surprise that the point on that segment remains constant.
Cheers,
Nicos