joint location in parent frame

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
soroosh bagheri
Posts: 15
Joined: Sat Jan 28, 2017 1:27 am

joint location in parent frame

Post by soroosh bagheri » Sat Oct 14, 2023 4:22 am

Hello

Bing me a question when I read the model file, Why the knee_r and knee_l joint locations in the parent frame which is the femur frame, are zero in the models? I have been checked "gait2392" and "gait2354"
Please see the attached file.

Best regards
Soroosh
Attachments
Capture.JPG
Capture.JPG (64.5 KiB) Viewed 370 times

Tags:

User avatar
Thomas Uchida
Posts: 1780
Joined: Wed May 16, 2012 11:40 am

Re: joint location in parent frame

Post by Thomas Uchida » Sat Oct 14, 2023 9:30 am

The motion of the knee is defined by a CustomJoint, where "the child body moves with respect to the parent as a function of the generalized coordinates." The SpatialTransform contains the functions that define how the joint moves. For the knee joint, the SimmSpline functions that define the location of the child (knee) frame's origin are defined relative to the femur frame. Note that the SimmSpline for "translation2" is the following:

Code: Select all

<x> -2.0944 -1.22173 -0.523599 -0.349066 -0.174533 0.159149 2.0944</x>
<y> -0.4226 -0.4082 -0.399 -0.3976 -0.3966 -0.395264 -0.396</y>
For example, when knee_angle_r = -2.0944 radians = -120 degrees, the origin of the child frame is located 42.26 cm away from the origin of the parent frame along the -Y axis. More information about these models can be found on the "Gait 2392 and 2354 Models" page in the documentation (https://simtk-confluence.stanford.edu:8 ... 354+Models) and in the publications listed at the bottom of that page.

User avatar
soroosh bagheri
Posts: 15
Joined: Sat Jan 28, 2017 1:27 am

Re: joint location in parent frame

Post by soroosh bagheri » Sun Oct 15, 2023 1:23 am

Thank you for your clear explanation. I should have searched more before.
Thanks again.

POST REPLY