Page 1 of 1

Interfacing MatLab with OpenSim 3.3

Posted: Wed Jan 29, 2020 9:14 pm
by ahenry
I am trying to interface MatLab and OpenSim 3.3. I have tried the auto setup and the manual setup and double checked that my OPENSIM_INSTALL_DIRECTORY is in the system path environment variable, but am still getting this error:

Java exception occurred:
java.lang.UnsatisfiedLinkError: org.opensim.modeling.opensimSimulationJNI.new_Model__SWIG_0()J

at org.opensim.modeling.opensimSimulationJNI.new_Model__SWIG_0(Native Method)

at org.opensim.modeling.Model.<init>(Model.java:779)

Have I done something incorrect in setting up the scripting environment or is this another issue?
Thanks

Re: Interfacing MatLab with OpenSim 3.3

Posted: Thu Jan 30, 2020 12:06 am
by aymanh
Hi Aaron,

It's not clear if you have other installations of OpenSim on the same machine this includes OpenSim 4.0, (also opensim-moco and opensense if you used either since they both had an embedded distribution of OpenSim inside them). If so please make sure to remove any references to these versions from matlab configuration files.

Also make sure the installation you use of OpenSim 3.3 is the correct one for your Matlab version (x64 or x86). You can check which OpenSim installer was used by inspecting the file $OPENSIM_iNSTALL_DIR/sdk/buildinfo.txt

To make sure the Path is set correctly, you can type 'ik' at the command prompt and see if the ik executable is found on the path.

Hope this helps and please let us know what you find out.

Best regards,
-Ayman

Re: Interfacing MatLab with OpenSim 3.3

Posted: Thu Jan 30, 2020 12:18 pm
by ahenry
Thanks for the help Ayman. I think my issue was that I had OpenSim 4.0 interfaced with MatLab at the same time. I have removed 4.0 and am able to run scripts now.