Matlab utilization of getLocationInParent function
Posted: Thu Jul 18, 2019 7:06 am
Hi,
I have a fully functioning model and would like to do post-processing on this data. To do so, I need to access the 'location in parent' and 'orientation in parent' as seen in the Properties section in OpenSim for a given joint (that is already made and defined using .jnt and .msl files). I see in the API that there are functions 'getLocationInParent' and 'getOrientationInParent,' however these functions do not seem to work. From what I have gathered, everything that I have found online is geared for a situation in which the user has created the joints within the Matlab code so they have already defined Vec3 in Matlab.
Can someone please help me to access a specific joint from an existing OpenSim model (i.e. 'glenohumeral') in order to get the location in parent body that is seen within the joint properties on OpenSim (possibly using the 'getLocationInParent' function)
Much thanks!!
I have a fully functioning model and would like to do post-processing on this data. To do so, I need to access the 'location in parent' and 'orientation in parent' as seen in the Properties section in OpenSim for a given joint (that is already made and defined using .jnt and .msl files). I see in the API that there are functions 'getLocationInParent' and 'getOrientationInParent,' however these functions do not seem to work. From what I have gathered, everything that I have found online is geared for a situation in which the user has created the joints within the Matlab code so they have already defined Vec3 in Matlab.
Can someone please help me to access a specific joint from an existing OpenSim model (i.e. 'glenohumeral') in order to get the location in parent body that is seen within the joint properties on OpenSim (possibly using the 'getLocationInParent' function)
Much thanks!!