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
OpenSim-Matlab API Communication
- Ayman Habib
- Posts: 2248
- Joined: Fri Apr 01, 2005 12:24 pm
Re: OpenSim-Matlab API Communication
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
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
- Thomas ROBERT
- Posts: 1
- Joined: Tue Jan 29, 2008 7:44 am
Re: OpenSim-Matlab API Communication
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
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
- Ayman Habib
- Posts: 2248
- Joined: Fri Apr 01, 2005 12:24 pm
Re: OpenSim-Matlab API Communication
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
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