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
Failed setup of Matlab-OpenSim interface
- Dimitar Stanev
- Posts: 1096
- Joined: Fri Jan 31, 2014 5:14 am
Re: Failed setup of Matlab-OpenSim interface
After executing the script, two files are created (err.log, out.log) in the same directory. They may provide you with additional clues.
- Brody Hicks
- Posts: 32
- Joined: Wed Jun 19, 2019 11:55 am
Re: Failed setup of Matlab-OpenSim interface
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
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
- Dimitar Stanev
- Posts: 1096
- Joined: Fri Jan 31, 2014 5:14 am
Re: Failed setup of Matlab-OpenSim interface
Did you import then OpenSim classes?
Code: Select all
import org.opensim.modeling.*