Search found 11 matches
- Wed Sep 18, 2024 7:56 am
- Forum: OpenSim Moco
- Topic: Setting up OpenSim 4.5.1 API with Matlab on MacOS
- Replies: 1
- Views: 262
Setting up OpenSim 4.5.1 API with Matlab on MacOS
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 ...
- Thu Aug 01, 2024 7:10 am
- Forum: OpenSim Moco
- Topic: Parameter tuning issue with MocoTrack
- Replies: 3
- Views: 1837
Re: Parameter tuning issue with MocoTrack
Hi Nick, Good to know. I tried a few other things and I keep running into the same issue. I tried to optimise the trunk segments COM (i.e., called 'Body' in my model). % optimise body COM position COMxPos = Bodies.get('Body').getMassCenter().get(0); COMyPos = Bodies.get('Body').getMassCenter().get(1...
- Thu Jul 25, 2024 8:01 am
- Forum: OpenSim Moco
- Topic: Parameter tuning issue with MocoTrack
- Replies: 3
- Views: 1837
Parameter tuning issue with MocoTrack
Hi everyone, I tried parameter tuning in OpenSim Moco using MocoTrack. I can run MocoTrack without any issues with a MocoControlGoal and a MocoContactTrackingGoal. However, as soon as I add a MocoParameter to the problem it fails. My problem is set up as follows: % initialise Moco Study study = trac...
- Fri Jul 12, 2024 4:10 am
- Forum: OpenSim Moco
- Topic: MATLAB example2DWalking.m
- Replies: 1
- Views: 381
Re: MATLAB example2DWalking.m
Hi Ernesto, The MocoContactTrackingGoal only minimises the (projected) force error. It does not track the COP nor the torques. See here: https://opensim-org.github.io/opensim-moco-site/docs/0.4.0/class_open_sim_1_1_moco_contact_tracking_goal.html The zeros in the referenceGRF.sto make sense as that ...
- Wed Jul 10, 2024 11:19 am
- Forum: OpenSim Moco
- Topic: Moco goal for contact parameter optimisation using weights
- Replies: 4
- Views: 1318
Re: Moco goal for contact parameter optimisation using weights
Hi Nick, Thank you for your reply. I tried to formulate such a custom MocoGoal to regularise MocoParameters. Generally the problem set up is as follows: % Construct the MocoInverse inverse = MocoInverse(); modelProcessor = ModelProcessor(model); inverse.setModel(modelProcessor); % initialise Moco St...
- Wed Jun 26, 2024 2:48 am
- Forum: OpenSim Moco
- Topic: Moco goal for contact parameter optimisation using weights
- Replies: 4
- Views: 1318
Re: Moco goal for contact parameter optimisation using weights
Hi Nick, Thank you for your clarification! Good to know that muscle parameter tuning (i.e., optimal fibre length or tendon slack length) in this way is also not yet possible in Moco, which would have been my next step. I assume this means that it is currently only possible in the the Muscle Redundan...
- Mon Jun 24, 2024 2:49 am
- Forum: OpenSim Moco
- Topic: Moco goal for contact parameter optimisation using weights
- Replies: 4
- Views: 1318
Moco goal for contact parameter optimisation using weights
Hi everyone, I am trying to optimise the contact model, and especially the contact radii of my contact spheres and the stiffness of the SmoothSphereHalfSpaceForce, based on GRF and kinematic data. I use MocoInverse to prescribe my kinematics and a MocoContactTrackingGoal to track my GRF data. I curr...
- Mon Apr 29, 2024 12:48 am
- Forum: OpenSim
- Topic: MATLAB API not working in Mac M2
- Replies: 1
- Views: 10553
Re: MATLAB API not working in Mac M2
You will need to install the maci64 version of Matlab. Apple Silicon is not yet supported, see here: viewtopicPhpbb.php?f=91&t=17519&p=0&sta ... a8c7e5d16e
- Wed Apr 24, 2024 9:06 am
- Forum: OpenSim
- Topic: Remove/delete wrap objects causes MATLAB to crash
- Replies: 2
- Views: 1480
Remove/delete wrap objects causes MATLAB to crash
Hi everyone, I am trying to simplify a model in OpenSim 4.5 by combining and/or deleting some muscles. In the process I want to remove wrap objects that are still in the model but no longer used, as the muscles, which used to referenced them, got deleted. Rather than deleting them manually in a text...
- Mon Feb 05, 2024 3:06 am
- Forum: OpenSim
- Topic: OpenSim 4.4 and 4.5 MATLAB API on Apple Silicon M2 (arm64)
- Replies: 2
- Views: 1191
Re: OpenSim 4.4 and 4.5 MATLAB API on Apple Silicon M2 (arm64)
Update: I installed MATLAB R2023b Update 6 (maci64), which I can run with Rosetta 2. This allowed me to successfully link it with OpenSim through the MATLAB API. It was definitley an issue with the initial MATLAB version being arm64 causing the architecture mismatch. Are there plans to include Appl...