Adding Force Set for Static optimization in Matlab
Posted: Thu Nov 30, 2017 9:59 am
Hi all,
I am attempting to run a static optimization using Matlab, but I'm having trouble trying to get the program to use the force set file. In the GUI, I would append additional force set files under the actuator tab. And the coding for this is in the xml file I use to set the settings of the analyze tool. The method in AnalyzeTool that I think I should use is "setForceSetFiles", but the class for this is "org.opensim.modelling.ArrayStr" and "SOTool.setForceSetFiles(ArrayStr([dirorig '\CMC_Actuators_rai.xml']));" doesn't work. (SOTool is the name of the AnalyzeTool).
Any help or advice would be appreciated. Without appending the force set, I can't solve the optimization.
Thank-you!
I am attempting to run a static optimization using Matlab, but I'm having trouble trying to get the program to use the force set file. In the GUI, I would append additional force set files under the actuator tab. And the coding for this is in the xml file I use to set the settings of the analyze tool. The method in AnalyzeTool that I think I should use is "setForceSetFiles", but the class for this is "org.opensim.modelling.ArrayStr" and "SOTool.setForceSetFiles(ArrayStr([dirorig '\CMC_Actuators_rai.xml']));" doesn't work. (SOTool is the name of the AnalyzeTool).
Any help or advice would be appreciated. Without appending the force set, I can't solve the optimization.
Thank-you!