Path Actuator class to simulate the active actuators

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Maryam khamar
Posts: 4
Joined: Wed Nov 18, 2015 4:52 am

Path Actuator class to simulate the active actuators

Post by Maryam khamar » Tue Aug 16, 2016 12:41 am

dear
I link matlab with opensim, and i want to give joint torque that matlab calculate to opensim and opensim give me angle, but i don't know how do it. In my program, opensim get muscle excitation how i replace active actuator or external force instead of muscle excitation.
I use this project:"Extendable OpenSim-Matlab Infrastructure Using Class Oriented C++ Mex Interface"

https://simtk.org/projects/opensimmatlab

User avatar
Dimitar Stanev
Posts: 1096
Joined: Fri Jan 31, 2014 5:14 am

Re: Path Actuator class to simulate the active actuators

Post by Dimitar Stanev » Tue Aug 16, 2016 9:33 am

Hi,

I would go with implementing a controller by deriving from OpenSim::Force. In the main function of the controller you can set the desired value of the generalized forces. Also, you can expose the setting of your controls so you can interface with MATLAB as in the case in the example of the project.

Best

User avatar
jimmy d
Posts: 1375
Joined: Thu Oct 04, 2007 11:51 pm

Re: Path Actuator class to simulate the active actuators

Post by jimmy d » Tue Aug 16, 2016 1:57 pm

You can use the PrescribedForce method to define a joint torque and then run a forward simulation to get a resultant movement.

POST REPLY