I try to use
Code: Select all
pelvis = osimModel.getBodySet().get('Pelvis');
com= pelvis.getMassCenter();
but I checked the class list of opensim, Body class should have getMassCenter function, why it is not working in matlab?No method 'getMassCenter' with matching signature found for class 'org.opensim.modeling.Body'.
Also, if I want to get the ground reaction force in my model.
I defined the contact force as LFootFroce
Code: Select all
lf_grf = osimModel.getForceSet().get('LFootForce');
force=lf_grf.getStateVariable();
Is there any user manual that teach user how to use OpenSim or SimTK API functions in matlab?