animating ground forces and muscle forces

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Tim Dorn
Posts: 125
Joined: Tue Feb 26, 2008 10:14 pm

animating ground forces and muscle forces

Post by Tim Dorn » Sun Apr 13, 2008 5:38 pm

Hi.

I have added my own muscle force data to a text delimited file for opensim to animate. However it doesnt seem to like both ground reaction force data and muscle force data in the same file (I would like to display both on the animation).

If I include both muscle forces and kinetics in the one motion file, the animation only shows kinetics. When i take the kinetic columns out of the file (and modify the header appropiately), only then does the motion animate muscle forces.

Not sure if anyone has actually tried this but it would be great to animate both from the motion file. Could it be an ordering thing? Is there a specific order that the motion file needs to adhere to (i.e. kinematics, then kinetics, then muscle data??) I have tried several combinations with no luck.

Cheers,

Tim Dorn

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

RE: animating ground forces and muscle forces

Post by Ayman Habib » Tue Apr 15, 2008 9:37 am

Hi Tim,

It looks like the code treats files made up of states as a special case for efficiency reasons so other user objects can't be added to them. I'll look into fixing this but please go ahead and file a bug so that it doesn't fall thru the cracks and you get notified when it's fixed.

The workaround would be to have two instances of the same model, and two motions one with only states, the other with ground reaction forces and then sync. the two motions.

Good luck,
-Ayman

User avatar
Andrew Lewis
Posts: 18
Joined: Wed Oct 22, 2008 5:58 am

RE: animating ground forces and muscle forces

Post by Andrew Lewis » Fri Jan 07, 2011 2:37 am

Has this been fixed yet in version 2.2?
Thanks,
Andy

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

RE: animating ground forces and muscle forces

Post by Ayman Habib » Fri Jan 07, 2011 12:10 pm

Hi Andy,

We didn't do any work in this area and there was no bug filed AFAIK, the workaround is still there, actually it might be easier now if you use the "Preview Experimental Data" functionality to load GRF and display the muscle forces on the model and use the sync. motions to show them together. If that doesn't work please let us know. Also please file a bug report so we can fix it in the future.

Thanks,
-Ayman

User avatar
Andrew Lewis
Posts: 18
Joined: Wed Oct 22, 2008 5:58 am

RE: animating ground forces and muscle forces

Post by Andrew Lewis » Mon Jan 10, 2011 3:37 am

Hi Ayman,
The workaround you suggested worked - thanks.
Andy

POST REPLY