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
Using getMatterSubsystem
- Christopher Dembia
- Posts: 506
- Joined: Fri Oct 12, 2012 4:09 pm
Re: Using getMatterSubsystem
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
- Michael Woodward
- Posts: 10
- Joined: Tue Jun 20, 2017 3:47 am
Re: Using getMatterSubsystem
Ah, I suspected this would be the case. No worries
Thank you very much for your help Christopher!
Thank you very much for your help Christopher!