Code: Select all
import org.opensim.modeling.*
[genericSetupForIK,genericSetupPath,FilterIndex] = uigetdir('*.xml', 'C:\Users\Yong Cho\Documents\MATLAB\OpenSim 3.3\Models\Leg6Dof9Musc\Stance\leg69_Tracking_Tasks.xml')
[modelFile,modelFilePath,FilterIndex] = uigetdir('*.osim', 'C:\Users\Yong Cho\Documents\MATLAB\OpenSim 3.3\Models\Leg6Dof9Musc\leg6dof9musc.osim')
RRATool = RRATool([genericSetupPath genericSetupForIK]);
% Load model and initialize
model = Model([modelFilePath modelFile]);
model.initSystem();
% Tell RRA tool to use the loaded model
RRATool.setModel(model);
%Sets kinematics
RRATool.setDesiredKinematicsFileName('C:\Users\Yong Cho\Documents\MATLAB\OpenSim 3.3\Models\Leg6Dof9Musc\Stance\leg69_IK_stance.mot')
RRATool.setTaskSetFileName('C:\Users\Yong Cho\Documents\MATLAB\OpenSim 3.3\Models\Leg6Dof9Musc\Stance\leg69_Tracking_Tasks.xml')