How to display marker residuals

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
Radhakrishnan Vignesh
Posts: 104
Joined: Tue Jun 01, 2021 8:09 am

How to display marker residuals

Post by Radhakrishnan Vignesh » Thu Jul 06, 2023 10:09 am

Hello,

I would like to print the marker residuals after a moco,track problem. I am not able to find the function for this? Any help is hugely appreciated.

Thanks,
Vignesh

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

Re: How to display marker residuals

Post by Nicholas Bianco » Mon Jul 10, 2023 10:43 am

Hi Vignesh,

There's no utility function for this, but you could calculate the position of the model markers by using the function getLocationInGround() in the marker class and use that to compute marker error.

-Nick

POST REPLY