Matlab Inverse Dynamics

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Colin Rubow
Posts: 4
Joined: Mon Dec 19, 2022 11:27 am

Matlab Inverse Dynamics

Post by Colin Rubow » Thu Mar 16, 2023 1:27 pm

Hello,
I have a model and a motion file I would like to perform Inverse Dynamics on but am having trouble using the Matlab API. I am specifically using OpenSim 3.3.
This is the code I've figured out so far,

Code: Select all

%%%%%%%%%% Inverse Dynamics %%%%%%%%%%%
my_model.buildSystem()
my_state = my_model.initializeState()
id = InverseDynamics(my_model)
% crashes if id.begin(my_state)

%%% or %%%
id_solver = InverseDynamicsSolver(my_model)

%%% or %%%
id_tool = InverseDynamicsTool()
id_tool.setModel(my_model)
Thank you

Tags:

POST REPLY