Xsense:adjusting the polarity of the parameters and the chosen angles for hyoid model

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
krishna raj
Posts: 21
Joined: Thu Dec 01, 2022 7:40 am

Xsense:adjusting the polarity of the parameters and the chosen angles for hyoid model

Post by krishna raj » Tue Feb 06, 2024 8:23 am

Hi opensim Team,

From the xsense i have collected the neck flexion data(Krishna-001 neck flexion) -.mvn motion file,

for this i have to generate the .mot file through the MVNXtoOpenSim_MotionFile mat lab file,

the MVNXtoOpenSim_MotionFile contains code has only two models for .mot file conversion


the MVNXtoOpenSim_MotionFile showing:

% It is important to notice that this code was built to match two models in
% OpenSim, a full body model, developed by Rojagopal 2015 (available in
% OpenSim website), and a lower body model Gait2392_Simbody, available in
% the OpenSim libraries.
% Also these models are optimazed for analysis of gait.
% To use other models or other more complicated tasks, might be required to
% adjust the polarity of the parameters and the chosen angles.


matlab code-for Rojagopal_2015 and Gait2392_Simbody:

Adjust the signal of the joints according to OpenSim direction of
% rotation
if strcmp(OpenSim_model,'Rojagopal_2015')
signs = ones(numel(jointName_OpenSim),1);
signs(1) = -1;
signs(6) = -1;
signs(8) = -1;
signs(15) = -1;
signs(21) = -1;
signs(25) = -1;
signs(32) = -1;
elseif strcmp(OpenSim_model,'Gait2392_Simbody')
signs = ones(numel(jointName_OpenSim),1);
signs(1) = -1;
signs(6) = -1;
signs(8) = -1;
signs(10) = -1;
signs(13) = -1;
signs(15) = -1;
signs(17) = -1;
signs(20) = -1;
signs(21) = -1;
else
error('This model is not implemented for this script.')
end



here i need to generate the .mot file for hyoid model- https://simtk.org/projects/neckdynamics
deal with -Musculoskeletal Model of Head and Neck Suitable for Dynamic Simulations

not sure about -
adjust the polarity of the parameters and the chosen angles.
what to script for my hyoid model

been stuck on this for a long time,kindly suggest any solution

Regards
krishnaraj GR
Research associate
Attachments
MVNXtoOpenSim_MotionFile.txt
(10.03 KiB) Downloaded 8 times

Tags:

POST REPLY