Applying external loads to Inverse Dynamics does not seem to make a difference

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Marcel Koczorowski
Posts: 6
Joined: Tue Mar 22, 2022 4:32 am

Applying external loads to Inverse Dynamics does not seem to make a difference

Post by Marcel Koczorowski » Mon Aug 29, 2022 6:20 am

I generated a simplified reaction force for two feet of a full body model.
It looks correct in the visualizer.
1.jpg
1.jpg (19.75 KiB) Viewed 917 times
Here's how my xml is set up.
2.jpg
2.jpg (34.96 KiB) Viewed 917 times
After running ID I use the plotter to compare right knee_angle_r from IDresults with the same joint but running ID without external loads. I get two identical results.
What am I getting wrong?

Tags:

User avatar
Marcel Koczorowski
Posts: 6
Joined: Tue Mar 22, 2022 4:32 am

Re: Applying external loads to Inverse Dynamics does not seem to make a difference

Post by Marcel Koczorowski » Tue Aug 30, 2022 1:53 am

Here's the mot file with forces. It's rather simple but I figured it would make some kind of difference.
I had to compress it to fit here
skater_squat_test.zip
(95.1 KiB) Downloaded 28 times

User avatar
Nicos Haralabidis
Posts: 188
Joined: Tue Aug 16, 2016 1:46 am

Re: Applying external loads to Inverse Dynamics does not seem to make a difference

Post by Nicos Haralabidis » Tue Aug 30, 2022 8:45 am

Hey Marcel,

It looks like you are applying the external force to the left limb, and then inspecting the net moment for the right limb (for which there is no external force applied to it) - the inverse dynamics calculations start distally and then move proximally towards the root segment (typically the pelvis), for each branch (limb). Having external forces applied to the left limb only affect that given limb's moments, those external forces do not affect the opposing limb. Applying or not applying the external force to the left limb does not affect the right limb. Hope that helps!

Nicos Haralabidis

User avatar
Marcel Koczorowski
Posts: 6
Joined: Tue Mar 22, 2022 4:32 am

Re: Applying external loads to Inverse Dynamics does not seem to make a difference

Post by Marcel Koczorowski » Tue Aug 30, 2022 12:22 pm

Thank you for the reply.

I have two external forces set up, one for each foot. It's true that forces for left foot are zero because I still have issues to resolve with my force pad. However, forces for the right foot, and they should be set up correctly (same as for left food, just different columns), look like this:
3.jpg
3.jpg (199.48 KiB) Viewed 770 times
The highlighted part is xyz for force and then xyz for origin point of the force. It looks correct in the visualizer for the right foot.
Here's a plot of moments for both knees. With and without external forces. I chose 4 values yet I only see two identical lines. I figured something should be different here.
4.jpg
4.jpg (260.18 KiB) Viewed 770 times
I could share all files I'm currently using in my project if that would help with anything.

User avatar
Nicos Haralabidis
Posts: 188
Joined: Tue Aug 16, 2016 1:46 am

Re: Applying external loads to Inverse Dynamics does not seem to make a difference

Post by Nicos Haralabidis » Tue Aug 30, 2022 3:33 pm

Hey Marcel,

It is probably easier if you share your files please!

Thanks,

Nicos

User avatar
Marcel Koczorowski
Posts: 6
Joined: Tue Mar 22, 2022 4:32 am

Re: Applying external loads to Inverse Dynamics does not seem to make a difference

Post by Marcel Koczorowski » Thu Sep 01, 2022 4:16 am

Files were too large to attach so I include a google drive link. Skeleton includes additional markers that need to be disabled when running IK tool but I added the IK result file as well, so it's not necessary.

https://drive.google.com/drive/folders/ ... sp=sharing

I just can't find any difference at all when adding external forces and they should work at least in the part of the exercise where right foot is on the pressure pad.

I'd greatly appreciate any help with this, perhaps I'm completely misunderstanding how the tool works.

User avatar
Nicos Haralabidis
Posts: 188
Joined: Tue Aug 16, 2016 1:46 am

Re: Applying external loads to Inverse Dynamics does not seem to make a difference

Post by Nicos Haralabidis » Thu Sep 01, 2022 2:15 pm

Hello Marcel,

Thanks for the files.

I visualised the 87 second IK trial together the ground reaction forces file in GUI. Playing the trial through I notice the participant between ~6-12 seconds is standing on the force plate (1_ground_XXX according to the file) with their right leg, and at ~22 seconds the participant steps on the same plate (1_ground_XXX) with their left foot. According to the .mot file you sent me, ground_XXX contains 0's for all columns whilst 1_ground_XXX contains values.

Are you currently trying to perform inverse dynamics on the entire 86 second trial at once? As in the external loads file you assign the ground_XXX to left foot and 1_ground_XXX to the right foot for the entire duration - however, the tool does not know that at ~19 seconds, for example, 1_ground_XXX should instead be applied to the left foot. This may explain the results you are observing. In which case you could perform multiple separate ID analyses, depending on when a particular foot is in contact with the specific force plate.

Hope that helps.

Nicos

User avatar
Marcel Koczorowski
Posts: 6
Joined: Tue Mar 22, 2022 4:32 am

Re: Applying external loads to Inverse Dynamics does not seem to make a difference

Post by Marcel Koczorowski » Mon Sep 12, 2022 5:44 am

Hello,

Sorry for the late reply, it took my a while to get back to the subject and fix my scripts for generating forces.

Here's an example I found with both feet starting on the pad and I think there's alway at least one foot touching the pad.
Forces should apply correctly for both feet now. I do try to generate inverse dynamics for the entire trial at once but now when forces are applied from the start it should work properly? Either way I can't visualise any difference in the moments when using the plot tool. ID results both with and without applied forces look identical.

Here are the new files
https://drive.google.com/drive/folders/ ... sp=sharing

User avatar
Nicos Haralabidis
Posts: 188
Joined: Tue Aug 16, 2016 1:46 am

Re: Applying external loads to Inverse Dynamics does not seem to make a difference

Post by Nicos Haralabidis » Tue Sep 13, 2022 9:20 am

Hey Marcel,

The plot on the left contains ID moments from the left and right knees with the external forces applied, the plot on the right is without external forces applied. I haven't modified your external loads file and I am running the tool via the GUI - filtering the IK result at 6 Hz. Do the values you get more closely resemble those on the left or right plot?
ID_moments.JPG
ID_moments.JPG (127.39 KiB) Viewed 662 times
Best wishes,

Nicos Haralabidis

User avatar
Marcel Koczorowski
Posts: 6
Joined: Tue Mar 22, 2022 4:32 am

Re: Applying external loads to Inverse Dynamics does not seem to make a difference

Post by Marcel Koczorowski » Wed Sep 14, 2022 6:47 am

Thank you for the answer Nicos.

Your screenshot made me realize I was plotting the wrong data this entire time.
What confused me was the "IDResults" that appears after ID tools finishes, I was sure it includes, well, ID results. Instead it's just a copy of the "IKResults" with a different name, which I don't quite understand. I usually work in python where I specify the output file name so I didn't have a problem finding it before.

I found the output file now, I get the results I was expecting. Thank you for the help.

Best regards,
Marcel Koczorowski

POST REPLY