Modeling through Matlab
Posted: Wed Nov 19, 2014 8:24 pm
Hi,
I am trying to edit the dynamic walker model files, so they will execute a muscle that I have modeled in MATLAB. I have been able to successfully edit the model so my model will run in place of an added path actuator. However, I am trying to edit the initial condition, velocity. By editing the Coordinate class reference I should be able to use the function setSpeedValue to set the initial velocity of the model?
I have been trying to implement the following code, but continue to get errors, and I am unsure of how to fix it. Tab completion comes up with no matches.
the error is
any function i try to run from the Coordinate class reference from Doxygen I get a similar error.
Thanks
Kristen
I am trying to edit the dynamic walker model files, so they will execute a muscle that I have modeled in MATLAB. I have been able to successfully edit the model so my model will run in place of an added path actuator. However, I am trying to edit the initial condition, velocity. By editing the Coordinate class reference I should be able to use the function setSpeedValue to set the initial velocity of the model?
I have been trying to implement the following code, but continue to get errors, and I am unsure of how to fix it. Tab completion comes up with no matches.
Code: Select all
Vint=Coordinate();
Vint.setMotionType(Translational);
Vint.setdefultValue(-0.009);
Vint.setRangeMin(-inf);
Vint.setRangeMax(inf);
Code: Select all
No method 'setMotionType' with matching signature found for class
'org.opensim.modeling.Coordinate'.
Thanks
Kristen