Using getMatterSubsystem

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Michael Woodward
Posts: 10
Joined: Tue Jun 20, 2017 3:47 am

Using getMatterSubsystem

Post by Michael Woodward » Mon Mar 19, 2018 7:20 am

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

User avatar
Christopher Dembia
Posts: 506
Joined: Fri Oct 12, 2012 4:09 pm

Re: Using getMatterSubsystem

Post by Christopher Dembia » Mon Mar 19, 2018 10:15 am

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

User avatar
Michael Woodward
Posts: 10
Joined: Tue Jun 20, 2017 3:47 am

Re: Using getMatterSubsystem

Post by Michael Woodward » Mon Mar 19, 2018 10:35 am

Ah, I suspected this would be the case. No worries

Thank you very much for your help Christopher!

POST REPLY