Page 1 of 1

Failed setup of Matlab-OpenSim interface

Posted: Sun Jun 09, 2019 12:29 am
by chantlw
Hi OpenSim Operation Team,
I confronted a problem when I tried to set up Matlab scripts for batch data processing.

I followed the instructions from: https://simtk-confluence.stanford.edu:8 ... ith+Matlab to set up the OpenSim-Matlab environment. I used the automated setup approach and found the configuration successful (run the command of "import org.opensim.modeling.*" and it worked).

However, when I tried out the "setupAndRunIKBatchExample.m" script, some errors occurred as follows:

Error using setupAndRunIKBatchExample (line 93)
Java exception occurred:
java.io.IOException: InverseKinematicsTool Failed, please see messages window for details...

at org.opensim.modeling.opensimModelJNI.InverseKinematicsTool_run(Native Method)

at org.opensim.modeling.InverseKinematicsTool.run(InverseKinematicsTool.java:137)


I have tried many methods that were previously mentioned in the forum for debugging (e.g., run Matlab as the administrator, set up the environment manually, match-up the software versions, and make sure the Opensim bin directory is in the Matlab PATH), but none of them work for me.

Work environment: Windows 7 64bit, OpenSim 3.3 64bit, Matlab 2014a 64bit.

Can anybody help me with the problem? Thank you.

Regards,
Tony

Re: Failed setup of Matlab-OpenSim interface

Posted: Sun Jun 09, 2019 1:42 am
by mitkof6
After executing the script, two files are created (err.log, out.log) in the same directory. They may provide you with additional clues.

Re: Failed setup of Matlab-OpenSim interface

Posted: Wed Aug 07, 2019 9:29 am
by hicksbrody
I am having this same issue. Did you ever find a solution here?

It seems like the configuration is successful (configureOpenSim.m runs and says that it's successful), but any attempts use scripts such as setupAndRunIKBatchExample.m fail. The setupAndRunIKBatchExample.m script also fails because the InverseKinematicsTool is undefined in matlab, e.g.

"Undefined function or variable 'InverseKinematicsTool'.

Error in setupAndRunIKBatchExample (line 46)
ikTool = InverseKinematicsTool([genericSetupPath genericSetupForIK]);"

Can anyone help with this problem?

Thanks,
William Brody

Re: Failed setup of Matlab-OpenSim interface

Posted: Sat Aug 10, 2019 10:46 am
by mitkof6
Did you import then OpenSim classes?

Code: Select all

import org.opensim.modeling.*