Problem with Inverse Dynamics in Matlab (OpenSim 4.2)
Posted: Mon Apr 05, 2021 3:30 am
Hi
I encountered 2 issues with Inverse Dynamics in Matlab.
1. Following is the code
But when i run it: myID.run();, it displays:
Thanks in advance,
Sheeba
I encountered 2 issues with Inverse Dynamics in Matlab.
1. Following is the code
Code: Select all
myID = InverseDynamicsTool();
myID.setName('my_subject01_walk1');
myID.set_results_directory('my_ResultsInverseDynamics');
myModel=Model('my_subject01_simbody.osim');
myID.setModel(myModel);
myID.setModelFileName('my_subject01_simbody.osim');
myID.setStartTime(0.40000000);
myID.setEndTime(1.6000000);
myID.setExcludedForces(ArrayStr('Muscles'));
myID.setExternalLoadsFileName('subject01_walk1_grf.xml');
myID.setCoordinatesFileName('my_subject01_walk1__ik.mot');
myID.setLowpassCutoffFrequency(6.00000000);
myID.setOutputGenForceFileName('my_inverse_dynamics.sto');
myID.print('myID.xml');
2. The commandJava exception occurred:
java.io.IOException: InverseDynamicsTool Failed, please see messages window for details...
at org.opensim.modeling.opensimActuatorsAnalysesToolsJNI.InverseDynamicsTool_run(Native Method)
at org.opensim.modeling.InverseDynamicsTool.run(InverseDynamicsTool.java:117)
does the work, however it is not reflected in the xml file:myID.setExcludedForces(ArrayStr('Muscles'));
I have already checked with API documentation and also used methodsview InverseKinematicsTool()<forces_to_exclude />
Thanks in advance,
Sheeba