Questions about scaling and inverse kinematics

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
User avatar
Yongtao Lu
Posts: 5
Joined: Mon Oct 24, 2016 12:47 am

Questions about scaling and inverse kinematics

Post by Yongtao Lu » Mon Nov 28, 2016 10:53 pm

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?

User avatar
Dimitar Stanev
Posts: 1096
Joined: Fri Jan 31, 2014 5:14 am

Re: Questions about scaling and inverse kinematics

Post by Dimitar Stanev » Tue Nov 29, 2016 9:47 am

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

User avatar
Yongtao Lu
Posts: 5
Joined: Mon Oct 24, 2016 12:47 am

Re: Questions about scaling and inverse kinematics

Post by Yongtao Lu » Fri Dec 02, 2016 2:14 am

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

User avatar
Dimitar Stanev
Posts: 1096
Joined: Fri Jan 31, 2014 5:14 am

Re: Questions about scaling and inverse kinematics

Post by Dimitar Stanev » Fri Dec 02, 2016 2:58 am

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.

User avatar
Yongtao Lu
Posts: 5
Joined: Mon Oct 24, 2016 12:47 am

Re: Questions about scaling and inverse kinematics

Post by Yongtao Lu » Sun Dec 04, 2016 7:05 pm

[img]
limb.png
limb.png (35.01 KiB) Viewed 1296 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 1286 times
[/img]
It is the experimental example.
The marker setting changed obviously.
[img]
limb.png
limb.png (35.01 KiB) Viewed 1296 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.
Attachments
limbmotion.png
limbmotion.png (62.64 KiB) Viewed 1296 times
Last edited by Yongtao Lu on Sun Dec 04, 2016 10:40 pm, edited 1 time in total.

User avatar
Yongtao Lu
Posts: 5
Joined: Mon Oct 24, 2016 12:47 am

Re: Questions about scaling and inverse kinematics

Post by Yongtao Lu » Sun Dec 04, 2016 9:07 pm

by the way, what do you mean 'the model is grounded'? How to check/set-up this?

User avatar
Dimitar Stanev
Posts: 1096
Joined: Fri Jan 31, 2014 5:14 am

Re: Questions about scaling and inverse kinematics

Post by Dimitar Stanev » Mon Dec 05, 2016 12:52 am

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

User avatar
Yongtao Lu
Posts: 5
Joined: Mon Oct 24, 2016 12:47 am

Re: Questions about scaling and inverse kinematics

Post by Yongtao Lu » Mon Dec 05, 2016 8:17 pm

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 1263 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.

User avatar
Dimitar Stanev
Posts: 1096
Joined: Fri Jan 31, 2014 5:14 am

Re: Questions about scaling and inverse kinematics

Post by Dimitar Stanev » Tue Dec 06, 2016 12:13 am

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.


POST REPLY