Where can I find the muscle activity calculated by exampleMocoTrack

OpenSim Moco is a software toolkit to solve optimal control problems with musculoskeletal models defined in OpenSim using the direct collocation method.
POST REPLY
User avatar
zhibo zhang
Posts: 7
Joined: Tue Jan 11, 2022 9:58 pm

Where can I find the muscle activity calculated by exampleMocoTrack

Post by zhibo zhang » Mon Dec 11, 2023 11:50 pm

Hi:

I'm a new Moco user and I want to compare the estimated muscle activity with and without GRF. I run the exampleMocoTrack twice,1stwith GRF added, and then toggled the line loading GRF into comment. But I'm wondering where can I find the estimated muscle activity? The output sto file seems only contains values with regard to joints.

Thanks for your time to read this and looking forward to your reply!

Best regards
Zhibo

User avatar
Nicholas Bianco
Posts: 1038
Joined: Thu Oct 04, 2012 8:09 pm

Re: Where can I find the muscle activity calculated by exampleMocoTrack

Post by Nicholas Bianco » Wed Dec 13, 2023 10:38 pm

Hi Zhibo,

Muscle excitations and activations will be stored in the MocoSolution returned from the solver as controls and states, respectively. You can use the MocoTrajectory API to get these values directly or, if you printed the solution to a STO file, you can load the file into a TimeSeriesTable and get the data that way.

Best,
Nick

User avatar
zhibo zhang
Posts: 7
Joined: Tue Jan 11, 2022 9:58 pm

Re: Where can I find the muscle activity calculated by exampleMocoTrack

Post by zhibo zhang » Thu Dec 14, 2023 8:21 pm

Thanks for your reply! I'll work on that.

POST REPLY