Page 1 of 2

Questions about scaling and inverse kinematics

Posted: Mon Nov 28, 2016 10:53 pm
by bendlut
I am working on a project about musculoskeletal (shoulder) modeling and using OpenSim in this project. From the website, we downloaded several musculoskeletall shoulder models, e.g.Dynamic Upper Limb and set up 6 markers on the models based on the experiment set-up. However, after scaling, the markers location is changed and not similar to the original setting and experimental setting. We tried to adjust the locations of the markers, but it still did not work. Total squared error = 0.00364992, marker error: RMS=0.024664.
Then I load the motion data collected from experiments to calculate the Inverse Kinematics. But the simulated motion is different from the experimental motion. The angle between the trunk and arm is obviously different.The errors in every frames are around 0.02.
Are the errors in scaling step and Inverse Kinematics step enough low? How low do you prefer us to control the tolerance?
What kind of faults could cause these problems?

Re: Questions about scaling and inverse kinematics

Posted: Tue Nov 29, 2016 9:47 am
by mitkof6
If you scale the model correctly you will get less IK error obviously. Can you be more specific on the scaling outcome? Did you try to preview the .trc file and to see if there is some problem. Is the .trc correctly aligned in case that your model is grounded?

Best

Re: Questions about scaling and inverse kinematics

Posted: Fri Dec 02, 2016 2:14 am
by bendlut
Hi Dimitar,

Thanks a lot for your reply. Indeed our scaling did not work well. After scaling, the locations of markers are moved and does not match those of experiment set-up. We tried to adjust the attachment locations (to the bone) of the markers, but could not get good results. Can you please give us some hints on how to solve the problems? Is this due to too few markers (we have only 6 markers in the model)? Is the initial attachment position of the markers important for the scaling process?

Best,
Yongtao

Re: Questions about scaling and inverse kinematics

Posted: Fri Dec 02, 2016 2:58 am
by mitkof6
It is hard to tell. Can you post a fig, where both the model and the .trc are visible? Also, check whether the model is grounded.

Re: Questions about scaling and inverse kinematics

Posted: Sun Dec 04, 2016 7:05 pm
by bendlut
[img]
limb.png
limb.png (35.01 KiB) Viewed 1612 times
[/img]
The right one is before scaling. The left one is after scaling. The error is 10e-4.
[img]
limbexp2.jpg
limbexp2.jpg (194.49 KiB) Viewed 1602 times
[/img]
It is the experimental example.
The marker setting changed obviously.
[img]
limb.png
limb.png (35.01 KiB) Viewed 1612 times
[/img]
It is one of the frames of motion, IK computing after scaling. The angles of joints are weird. The error is 10e-3.

Re: Questions about scaling and inverse kinematics

Posted: Sun Dec 04, 2016 9:07 pm
by bendlut
by the way, what do you mean 'the model is grounded'? How to check/set-up this?

Re: Questions about scaling and inverse kinematics

Posted: Mon Dec 05, 2016 12:52 am
by mitkof6
Hi,

Please show me the model and the .trc together. You can preview the .trc from File->Preview Experimental Data. What I mean is if your .trc file is displaced and if the model has its base fixed to the ground, then you can't perform IK correctly.

Best

Re: Questions about scaling and inverse kinematics

Posted: Mon Dec 05, 2016 8:17 pm
by bendlut
Hi,
Thanks for your explanation. But I don't understand how to fix the .trc to the model.
This is the Experimental Data and the model markers I set.[img]
trc.png
trc.png (28.49 KiB) Viewed 1579 times
[/img]
I guess the experimental arm is not perfectly straight.
I set the markers by my eyeballing, which is based on the joints' shape. Because we set marker on the bone protrusion in experiment.
Is there any better method for setting markers and let it fixed to the ground ?

Looking forward to your reply.

Re: Questions about scaling and inverse kinematics

Posted: Tue Dec 06, 2016 12:13 am
by mitkof6
Ok. It seems that if you unlock the base body (suppose thorax) as free joint then you will be able to perform IK. Otherwise you would have to translate and orient the .trc motion.

Re: Questions about scaling and inverse kinematics

Posted: Tue Dec 06, 2016 2:01 pm
by jimmy