Image of walker attached, I'm still trying to fix the angle of the back joint, the wheel should be further back and the joint should be extended. This is for a project at Carleton University.
Thanks in advance
![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
Code: Select all
%% Instantiate an Leg OpenSim Model
model = Model('Arnoldetal2010_2Legs_50pct_v2.1.osim'); % https://simtk.org/projects/lowlimbmodel09
model.setName('model');
model.setUseVisualizer(true); % Initiate visualiser - not necessary for data output
% Get a reference to the ground object
ground = model.getGround();
% Define the acceleration of gravity
model.setGravity(Vec3(0, -9.80665, 0));
% https://simtk-confluence.stanford.edu:8443/display/OpenSim/Scripting+with+Matlab#ScriptingwithMatlab-Usingamodel's%22Lists%22throughiterators
%% Import Leg model Bodies
BodyList = osimList2MatlabCell(model,'Body'); % Get a cell array of references to all the bodies in a model
% Body list structure references
Pelvis = BodyList{1}; % 1
% 2 femur_r
% 3 femur_wlkr_r
% 4 tibia_wlkr_r
% 5 tibia_r
% 6 shaft_axis_r
% 7 patella_r
% 8 talus_r
% 9 calcn_r
% 10 toes_r
% 11 femur_l
% 12 femur_wlkr_l
% 13 tibia_wlkr_l
% 14 tibia_l
% 15 shaft_axis_l
% 16 patella_l
% 17 talus_l
% 18 calcn_l
% 19 toes_l
% 20 torso
%% List of joints from Leg model
JointList = osimList2MatlabCell(model,'Joint'); % Get a cell array of references to all the joints in a model
% 1 ground_pelvis
% 2 hip_r
% 3 femur_coord_r
% 4 walker_knee_r
% 5 tibia_coord_r
% 6 femoral_shaft_r
% 7 patellofemoral_r
% 8 ankle_r
% 9 subtalar_r
% 10 mtp_r
% 11 hip_l
% 12 femur_coord_l
% 13 walker_knee_l
% 14 tibia_coord_l
% 15 femoral_shaft_l
% 16 patellofemoral_l
% 17 ankle_l
% 18 subtalar_l
% 19 mtp_l
% 20 back
%% List of constraints from Leg model
% ConstraintList = osimList2MatlabCell(LowerExo,'Constraint'); % Get a cell array of references to all the constraints in a model
%% List of forces from Leg model
% ForceList = osimList2MatlabCell(LowerExo,'Force'); % Get a cell array of references to all the forces in a model
%% List of controllers from Leg model
% ControllerList = osimList2MatlabCell(LowerExo,'Controller'); % Get a cell array of references to all the controllers in a model
%% List of components from Leg model
% ComponentList = osimList2MatlabCell(LowerExo,'Component'); % Get a cell array of references to all the components in a model