Use MocoGeneralizedForceTrackingGoal in Matlab

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
Kayla Pariser
Posts: 17
Joined: Mon Jul 30, 2018 10:35 am

Use MocoGeneralizedForceTrackingGoal in Matlab

Post by Kayla Pariser » Mon Aug 26, 2024 1:21 pm

I want to add joint moment tracking to a Moco tracking problem set up in Matlab. I think I would need to use the MocoGeneralizedForceTrackingGoal, but I am not sure how to properly implement that and cannot find an example or documentation since it is a newer goal. Thank you for your help!

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

Re: Use MocoGeneralizedForceTrackingGoal in Matlab

Post by Nicholas Bianco » Mon Aug 26, 2024 1:30 pm

Hi Kayla,

You can use the updated example on GitHub as a guide: https://github.com/opensim-org/opensim- ... ack.m#L231.

Best,
Nick

User avatar
Kayla Pariser
Posts: 17
Joined: Mon Jul 30, 2018 10:35 am

Re: Use MocoGeneralizedForceTrackingGoal in Matlab

Post by Kayla Pariser » Tue Aug 27, 2024 11:55 am

Thank you Nick!

POST REPLY