joints and coordinates definition

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Giordano Valente
Posts: 13
Joined: Mon Dec 22, 2008 1:40 am

joints and coordinates definition

Post by Giordano Valente » Wed Jan 28, 2009 8:37 am

Hi,
I'm using *.vtp geometries converted from stl formats to build an Osim model using v1.8. These geometries have different locations and orientations from the *.vtp's in the geometry folder. Defining the joints and the coordinates, the bodies don't rotate around joints centers. Defining just a body and the ground (and acting on the locations values in CustomJoint) the body keeps rotating around the Osim axes. Any suggestions?
Thank you.

Giordano Valente

User avatar
Peter Loan
Posts: 12
Joined: Wed May 18, 2005 2:34 pm

RE: joints and coordinates definition

Post by Peter Loan » Mon Feb 02, 2009 3:20 pm

Hi Giordano,

You should be able to adjust the <location> values
in the CustomJoint to get the desired kinematics.
The <location_in_parent> values specify the location
of the joint center in the parent body's reference
frame, and the <location> values specify the joint
center in the child's reference frame. For
example, if you're defining a hip joint and your
femur bone (and body) has its origin in the middle
of the bone, your <location> values should define
the translation from the middle of the bone to the
center of the femoral head. When you change the
hip angles, the femur should then rotate about
the femoral head.

Regards,
Peter

User avatar
Katja Oberhofer
Posts: 8
Joined: Mon Feb 04, 2008 11:11 pm

RE: joints and coordinates definition

Post by Katja Oberhofer » Mon Nov 09, 2009 6:45 pm

I have a question related to this thread. The .osim file doesn't seem to contain any information about the location/origin of a body's reference frame. Where does this information come from? Is it somehow stored in the .vrt file? I am looking at the gait2354_simbody.osim file. Tibia is loaded as child of femur. Femur is loaded as child of pelvis. The femur coordinate system seems to have its origin at the knee joint. However, the location of the knee joint has not previously been specified with respect to any coordinate system.

User avatar
Katja Oberhofer
Posts: 8
Joined: Mon Feb 04, 2008 11:11 pm

RE: joints and coordinates definition

Post by Katja Oberhofer » Tue Nov 10, 2009 1:20 pm

Found the answer myself. The CustomJoint 'knee_r', being local coordinate system of Body 'femur_r', is translated in x and y with respect to parent 'pelvis' so that the translational DOF in the knee can be captured. Body 'tibia_r' is then loaded as child of 'femur_r' at [0 0 0] location_in_parent body coordinate system 'knee_r'. In case anyone else had the same question....

Cheers, Katja

User avatar
Ayman Habib
Posts: 2238
Joined: Fri Apr 01, 2005 12:24 pm

RE: joints and coordinates definition

Post by Ayman Habib » Tue Nov 10, 2009 2:45 pm

Hi Katja,

Since this question comes up a lot, I went ahead and added an image to our Wiki, explaining the relation.

http://wiki.simtk.org/opensim/FrontPage ... Frames.jpg

Hope this helps,
-Ayman

User avatar
Katja Oberhofer
Posts: 8
Joined: Mon Feb 04, 2008 11:11 pm

RE: joints and coordinates definition

Post by Katja Oberhofer » Wed Nov 11, 2009 2:49 pm

Thanks Ayman, pictures are always useful!

I think the question mainly comes up because of the knee joint, which doesn't have a fixed position with respect to pelvis.

Cheers,

Katja

POST REPLY