Search found 8 matches

by Oliver Demuth
Fri Jul 12, 2024 4:10 am
Forum: OpenSim Moco
Topic: MATLAB example2DWalking.m
Replies: 1
Views: 54

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 ...
by Oliver Demuth
Wed Jul 10, 2024 11:19 am
Forum: OpenSim Moco
Topic: Moco goal for contact parameter optimisation using weights
Replies: 4
Views: 625

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...
by Oliver Demuth
Wed Jun 26, 2024 2:48 am
Forum: OpenSim Moco
Topic: Moco goal for contact parameter optimisation using weights
Replies: 4
Views: 625

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...
by Oliver Demuth
Mon Jun 24, 2024 2:49 am
Forum: OpenSim Moco
Topic: Moco goal for contact parameter optimisation using weights
Replies: 4
Views: 625

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...
by Oliver Demuth
Mon Apr 29, 2024 12:48 am
Forum: OpenSim
Topic: MATLAB API not working in Mac M2
Replies: 1
Views: 10251

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
by Oliver Demuth
Wed Apr 24, 2024 9:06 am
Forum: OpenSim
Topic: Remove/delete wrap objects causes MATLAB to crash
Replies: 2
Views: 887

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...
by Oliver Demuth
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: 588

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...
by Oliver Demuth
Fri Feb 02, 2024 9:14 am
Forum: OpenSim
Topic: OpenSim 4.4 and 4.5 MATLAB API on Apple Silicon M2 (arm64)
Replies: 2
Views: 588

OpenSim 4.4 and 4.5 MATLAB API on Apple Silicon M2 (arm64)

Hi everyone, I am trying to configure and set up the OpenSim API in MATLAB on my new MacBook which has an Apple Silicon M2 Pro chip. I am running Matlab R2023b Update 3 (64-bit maca64) and have both OpenSim 4.4 and 4.5 (2024-01-10-3b63585) versions installed. When I run the configureOpenSim.m for ei...