Re: Anyway to determine STA metrics in OpenSim
Posted: Sun Apr 23, 2023 2:31 am
Yes, it changes relative to global reference frame (ground) during motion at each time frame. For example, you can get the 3*3 rotation matrix of pelvis in global reference frame:
or as angle:
and you will see that it changes over IK time.
Similarly, the position of markers changes in global reference frame:
But it is steady in local reference frame.
Is that what you are asking?
Code: Select all
model.getBodySet().get('pelvis').getTransformInGround(state).R().asMat33()
Code: Select all
model.getBodySet().get('pelvis').getRotationInGround(state).convertRotationToBodyFixedXYZ()
Similarly, the position of markers changes in global reference frame:
Code: Select all
marker.getLocationInGround(state)
Is that what you are asking?