Page 1 of 1

Using getMatterSubsystem

Posted: Mon Mar 19, 2018 7:20 am
by mwoodward
Hello all

I'm trying to use the call getTotalCentrifugalForces to attain the force contribution from Coriolis and centrifugal forces on a model through the MATLAB API.

I understand that this function and several other SimBody commands need to be called on a MatterSubsystem through getMatterSubsystem. However, any Matter Subsystem I acquire does not seem to have any corresponding methods that can be called from it such as getMatterSubsystem or getMobilizedBody for example.

The variable type also comes out to be: '1x1 SWIGTYPE_p_SimTK__SimbodyMatterSubsystem', which is suggesting to me that it's not being properly recognised by my MATLAB configuration for OpenSim.

Is it possibly I've missed a conficuration step for some of the more advanced API of SimBody? Or am I simply not accessing the Matter Subsystem in the correct way?

Cheers

Re: Using getMatterSubsystem

Posted: Mon Mar 19, 2018 10:15 am
by chrisdembia
The SimbodyMatterSubsystem is available in Matlab only in the OpenSim 4.0 bindings. Because OpenSim 4.0 has not been released yet, you would have to build from source: https://github.com/opensim-org/opensim- ... ource-code

Re: Using getMatterSubsystem

Posted: Mon Mar 19, 2018 10:35 am
by mwoodward
Ah, I suspected this would be the case. No worries

Thank you very much for your help Christopher!