Skip to main content

GroundContactPersonalizationTool.m


% This function is part of the NMSM Pipeline, see file for full license.
%
% This function is a wrapper for the GroundContactPersonalization function
% such that an xml file can be passed and the resulting computation can be
% completed according to the instructions of that file.
%
% (string) -> (None)
% Run GroundContactPersonalization from settings file.


function GroundContactPersonalizationTool(settingsFileName)
settingsTree = xml2struct(settingsFileName);
verifyVersion(settingsTree, "GroundContactPersonalizationTool");
[inputs, params, resultsDirectory] = ...
parseGroundContactPersonalizationSettingsTree(settingsTree);
results = GroundContactPersonalization(inputs, params);
saveGroundContactPersonalizationResults(results, params, ...
resultsDirectory, inputs.inputOsimxFile);
end