Page 1 of 1

forward dymamics , apply only joint torqus

Posted: Tue Jun 19, 2018 4:56 am
by ostr1969
How can i do forward simulation in opensim GUI with only joint moments. I have a model with no muscles,
Can i build a file with only joint moments.
i tried to build sto file with columns of coord1_moment coord2_moment(and translated to xml). but i get :
"WARN: Controller::setup : Actuator coord_moment was not found and will be ignored"

for example:
in matlab robotics i can easily give initial position, initial velocity and torques for each joint, to get the accelerations.

please help
barak

Re: forward dymamics , apply only joint torqus

Posted: Tue Jun 19, 2018 1:16 pm
by jimmy
You can use the PrescribedForces() class to set the forces for rotational and translational coordinates;
https://simtk.org/api_docs/opensim/api_ ... Force.html