Setting the scapulothoracic joint parameters in Matlab

Provides tools for using different aspects of Opensim within the Matlab environment, including command line pipelines as well as accessing the Opensim API directly.
POST REPLY
User avatar
Marcel Rossi
Posts: 8
Joined: Sat Aug 25, 2018 1:02 am

Setting the scapulothoracic joint parameters in Matlab

Post by Marcel Rossi » Wed Mar 04, 2020 6:43 am

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,

POST REPLY