I'm trying to use IDTool on MATLAB with MATLAB optimization tool.(fmincon)
(To solve some kinds of trajectory optimization problem.)
When I use IDTool and Analyzer tool w/o externalforce,
there are no error on solving problems.
But When I apply external load by using
setExternalloadsFileName('~');
Below error has occured on second iteration.
Code: Select all
Storage: file=id_force1.mot (nr=101 nc=7)
InverseDynamicsTool Failed: ExternalForce: Data source id_force1 specified by name, but was set.
(externalload was defined on .xml file, and time-load data was stored on .mot file. and id_force1 is the first line of header of .mot file)
In my problem, I need to run IDTool and Analyzer tool iteratively with same externalload condition.
As this code, I always clear memory after running tool.
Code: Select all
IDTool.run();
IDTool=[];
Thanks.