Setting up OpenSim 4.5.1 API with Matlab on MacOS

OpenSim Moco is a software toolkit to solve optimal control problems with musculoskeletal models defined in OpenSim using the direct collocation method.
POST REPLY
User avatar
Oliver Demuth
Posts: 11
Joined: Mon Nov 27, 2023 8:10 am

Setting up OpenSim 4.5.1 API with Matlab on MacOS

Post by Oliver Demuth » Wed Sep 18, 2024 7:56 am

Hi everyone,

I downloaded the source code for the new OpenSim 4.5.1 API because of the new MocoGoals that got introduced in the update (mainly the MocoExpressionBasedParameterGoal). I have built OpenSim Core and all its dependencies through the terminal with CMake. It took me several attempts but I think I succeeded.

However, I am missing (among others) the sdk folder within the opensim-core-install folder, which I assume is equivalent to the OpenSim4.5.app/Contents/Resources/opensim folder within the application. The missing Java folder and its content (org-opensim-modeling.jar) means I cannot use the configureOpenSim Matlab script to set up all the dependencies to run the new 4.5.1 API.

How do I properly set up the 4.5.1 API for use with Matlab?

Many thanks for your help!

Cheers,
Oliver

User avatar
Nicholas Bianco
Posts: 1050
Joined: Thu Oct 04, 2012 8:09 pm

Re: Setting up OpenSim 4.5.1 API with Matlab on MacOS

Post by Nicholas Bianco » Wed Sep 18, 2024 5:20 pm

Hi Oliver,

If you set the CMake variable "OPENSIM_INSTALL_UNIX_FHS_DEFAULT" to "OFF", you should get the file structure with the "sdk" folder.

Note that we haven't tested Matlab installations much yet, so your milage may vary when installing to Matlab specifically.

Best,
Nick

POST REPLY