Forward Dynamics in Matlab
Posted: Tue Sep 29, 2020 4:29 am
Hi,
I'm trying to execute the Forward Dynamics Tool in Matlab, but the results obtained are wrong. I use the MoBL-ARMS model and I give a .xml file in input at FD Tool. This file contains a constant activation of Brachioradialis muscle(the other muscles of the model have a null activation).
I implement this section of script:
file = [path '\BRD.xml']; % excitation file of Brachioradialis
file = [file{:}];
FDinamicsTool = ForwardTool(file, true, false);
FDinamicsTool.setModel(myModel);
FDinamicsTool.setResultsDir(muscleDir);
FDinamicsTool.setStartTime(time(1));
FDinamicsTool.setFinalTime(time(end));
FDinamicsTool.run();
In the output directory, I obtain: 2 .sto file and 1 .mot file. All files are wrong, because Brachioradialis muscle isn't activated, and it should be instead.
If I execute this tool in OpenSim with the same file the results are correct.
How could I implement Forward Dynamics Tool in Matlab?
Thanks in advance.
Maria Cristina Panettieri
I'm trying to execute the Forward Dynamics Tool in Matlab, but the results obtained are wrong. I use the MoBL-ARMS model and I give a .xml file in input at FD Tool. This file contains a constant activation of Brachioradialis muscle(the other muscles of the model have a null activation).
I implement this section of script:
file = [path '\BRD.xml']; % excitation file of Brachioradialis
file = [file{:}];
FDinamicsTool = ForwardTool(file, true, false);
FDinamicsTool.setModel(myModel);
FDinamicsTool.setResultsDir(muscleDir);
FDinamicsTool.setStartTime(time(1));
FDinamicsTool.setFinalTime(time(end));
FDinamicsTool.run();
In the output directory, I obtain: 2 .sto file and 1 .mot file. All files are wrong, because Brachioradialis muscle isn't activated, and it should be instead.
If I execute this tool in OpenSim with the same file the results are correct.
How could I implement Forward Dynamics Tool in Matlab?
Thanks in advance.
Maria Cristina Panettieri