Append actuators to CMC Tool in MATLAB
Posted: Mon Jun 25, 2018 5:22 pm
What is the command to append actuators to the CMC tool in the MATLAB API?
Also, how do you directly load a CMC setup file into the MATLAB API? I have the following code but CMC either does not load the file info or MATLAB completely crashes at the line "cmc = CMCTool(setup)"
import org.opensim.modeling.*
model = Model('C:\Users\NeuRRo Lab\Desktop\armModel\CMC_Matlab\MoBL_ARMS_module6_7_CMC_TOMEDITS.osim');
setup = 'C:\Users\NeuRRo Lab\Desktop\armModel\CMC_Matlab\CMC_setup_reaching';
cmc = CMCTool(setup);
cmc.setModel(model);
state = model.initSystem();
I attached the files I'm using as well if anybody wants to give it a try. The set-up file was built (and tested) and saved in the GUI.
Also, how do you directly load a CMC setup file into the MATLAB API? I have the following code but CMC either does not load the file info or MATLAB completely crashes at the line "cmc = CMCTool(setup)"
import org.opensim.modeling.*
model = Model('C:\Users\NeuRRo Lab\Desktop\armModel\CMC_Matlab\MoBL_ARMS_module6_7_CMC_TOMEDITS.osim');
setup = 'C:\Users\NeuRRo Lab\Desktop\armModel\CMC_Matlab\CMC_setup_reaching';
cmc = CMCTool(setup);
cmc.setModel(model);
state = model.initSystem();
I attached the files I'm using as well if anybody wants to give it a try. The set-up file was built (and tested) and saved in the GUI.