OpenSim-Matlab API Communication

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Paulo Melo
Posts: 5
Joined: Sun Feb 15, 2009 3:33 pm

OpenSim-Matlab API Communication

Post by Paulo Melo » Tue Apr 03, 2012 4:23 am

Hi!

I'm planning on using Matlab and OpenSim together to test new control algorithms. I would like to know if the OpenSim API allows the following:
I want to have a control algorithm in Matlab sending different control inputs (muscle excitations for example) with each timestep to OpenSim (forward dynamics engine) and reading the outputs (kinematics for example) so that they can be used for the estimation of new control inputs in the next timestep.

Any feedback will be appreciated! Thank you very much,
Paulo

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

Re: OpenSim-Matlab API Communication

Post by Ayman Habib » Thu Apr 05, 2012 11:55 am

Hi Paulo,

Although possible to do this process with some effort (mainly extending a class in Java, but this hasn't been tested), I'd recommend you first check out the project https://simtk.org/home/opensim_matlab on simtk.org as it allows for precisely the functionality you need in more native Matlab environment by packaging an OpenSim model as a block in Simulink.

Please let us know if you run into problems proceeding in this direction.

Best regards,
-Ayman

User avatar
Thomas ROBERT
Posts: 1
Joined: Tue Jan 29, 2008 7:44 am

Re: OpenSim-Matlab API Communication

Post by Thomas ROBERT » Wed Apr 25, 2012 6:03 am

Dear Ayman,

I am also interested to test the functionalities proposed by this project (opensim_matlab). However sources (in particular the S-function) are only available to project members.

Is it planned to be extended to every OpenSim users ? And how to become a member of this project ?

Best,

Thomas

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

Re: OpenSim-Matlab API Communication

Post by Ayman Habib » Sat Apr 28, 2012 11:12 am

Hi Thomas,

Please contact the project admin on simtk.org for questions related to this project. They have plans to open it to the public soon but I don't know the current status.

Best of luck,
-Ayman

POST REPLY