Hello everyone
Setting MuscleDorceDirection plugin on local coordinate system gives you constant values for muscle origin/insertion coordinates which are independent of time. Also it gives you varying muscle force directions with respect to time.
The question is, what are the location and orientation of this local coordinate system themselves??
surely they would be somewhere on the bone but where and by which orientation?
I need to adjust another coordinate system with respect to this one, in my research.
Best,
Yunus.
Muscle-Force-Direction plugin
- Yunus Rezvanifar
- Posts: 39
- Joined: Wed Oct 16, 2019 1:06 pm
- Dimitar Stanev
- Posts: 1096
- Joined: Fri Jan 31, 2014 5:14 am
Re: Muscle-Force-Direction plugin
In the manual of the plugin, it is mentioned that you can choose where to express the positions and forces either in local body frame or in global ground frame.
- Yunus Rezvanifar
- Posts: 39
- Joined: Wed Oct 16, 2019 1:06 pm
Re: Muscle-Force-Direction plugin
Hi Dimitar
Let me be more clear, in case of femur, where exactly is the local reference system's origin placed on the bone? How are the x-y-z axes are oriented?
Without knowing that, you can't use the outputs of the plugin.
The outputs are expressed with respect to a local reference system, but Where exactly is this local reference system? And how is it oriented?
Thanks for your help
- Dimitar Stanev
- Posts: 1096
- Joined: Fri Jan 31, 2014 5:14 am
Re: Muscle-Force-Direction plugin
In the navigation window, you can right click on the body and select the show axis option. This is the local frame of the body. Also, you can check the visible objects and see whether there is any additional transformation that is applied to the nodes of the geometry.
- Yunus Rezvanifar
- Posts: 39
- Joined: Wed Oct 16, 2019 1:06 pm
Re: Muscle-Force-Direction plugin
Thanks Dimitar it was quite helpful.
But I need more accuracy. "Show axes" shows you location of local frame graphically while its origin is deep in the bone .
I need to know coordinates of the origin of this frame with respect to something known (like anatomical landmarks ,etc.) so I would be able to set my another local frame in the other app (i.e. Abaqus) and run my simulation using data OpenSim provides me with.
Is there any (anatomical) convention that OpenSim uses to locate these axes on each segment?
Best regards.
- Dimitar Stanev
- Posts: 1096
- Joined: Fri Jan 31, 2014 5:14 am
Re: Muscle-Force-Direction plugin
You can use the BodyAnalysis, which reports the position and orientation of the body local frames with respect to the ground frame. Otherwise, you can attach markers on the bodies and then get their location in the ground frame (e.g. PointKinematics analysis). If you need to express these points in different reference frames then you have to do it programmatically (e.g., with Python, Matlab or C++).
https://simtk.org/api_docs/opensim/api_ ... Frame.html
https://simtk.org/api_docs/opensim/api_ ... aa78c66f79
https://simtk.org/api_docs/opensim/api_ ... Frame.html
https://simtk.org/api_docs/opensim/api_ ... aa78c66f79
- Yunus Rezvanifar
- Posts: 39
- Joined: Wed Oct 16, 2019 1:06 pm
Re: Muscle-Force-Direction plugin
mitkof6 wrote: ↑Wed Dec 18, 2019 2:49 amYou can use the BodyAnalysis, which reports the position and orientation of the body local frames with respect to the ground frame. Otherwise, you can attach markers on the bodies and then get their location in the ground frame (e.g. PointKinematics analysis). If you need to express these points in different reference frames then you have to do it programmatically (e.g., with Python, Matlab or C++).
https://simtk.org/api_docs/opensim/api_ ... Frame.html
https://simtk.org/api_docs/opensim/api_ ... aa78c66f79
Thanks alot