Force subclasses not available through Matlab API

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Romain LEBERRE
Posts: 12
Joined: Fri Feb 24, 2012 11:47 am

Force subclasses not available through Matlab API

Post by Romain LEBERRE » Wed Jan 23, 2013 5:21 am

Hi,
I want to add some contact forces to my model through OpenSim API in Matlab.
However, it seems that some child classes of Force (e.g. BushingForce, ElasticFoundationForce, HuntCrossleyForce) are not imported with the modeling module (import org.opensim.modeling.*).
Any idea about how to add this kind of forces through Matlab?
Thank you,

Romain

User avatar
Ayman Habib
Posts: 2235
Joined: Fri Apr 01, 2005 12:24 pm

Re: Force subclasses not available through Matlab API

Post by Ayman Habib » Wed Jan 23, 2013 12:48 pm

Hi Romain,

It is true that version 3.0 didn't have all modeling components exposed to the Matlab interface. We fixed that in release 3.0.1 which will be available in beta version very shortly, please sign up for the beta testing mailing list and you'll be informed when the beta release is posted, so stay tuned.

Best regards,
-Ayman

User avatar
Romain LEBERRE
Posts: 12
Joined: Fri Feb 24, 2012 11:47 am

Re: Force subclasses not available through Matlab API

Post by Romain LEBERRE » Fri Feb 01, 2013 9:41 am

Hi Ayman,
Indeed, in the release 3.0.1, contact force classes such as ElasticFoundationForce and HuntCrossleyForce are exposed to the Matlab interface. However, ContactParameters objects are defined in SWIG type so i cannot manage to tune these properties from Matlab. Do you know how could I figure out this issue?
Thanks,
Romain

POST REPLY