Page 1 of 1

Setting the scapulothoracic joint parameters in Matlab

Posted: Wed Mar 04, 2020 6:43 am
by marcel_ssi
Hello!

Recently I downloaded the scapulothoracic joint model developed by Ajay and Prof Matias, and I would like to open it in Matlab. Basically what I want to do is to run a number of iterations, changing the thoracic_ellipsoid_radii_x_y_z, the Translation (<location_in_parent>) and Rotation (<orientation_in_parent>) in every round. I simply cannot figure out how to change these parameters in Matlab, though all other model parameters that I needed to change previously are looking fine. Even opening the library looks all right:

% Create the scaled OpenSim model object from the .osim file
Model.LoadOpenSimLibrary('C:\OpenSim 4.1\plugins\ScapulothoracicJointPlugin40_WinX64');
osimScaledModel=Model(model.filepath);
osimScaledModel.initSystem;

% Read the ellipsoid parameters from the scaled, non-adjusted OS model
Joints = osimScaledModel.getJointSet;
RightSTJ=Joints.get(21);
LeftSTJ=Joints.get(27);

From this point on, I simply cannot move! Any help would be much appreciated.

Kind regards,