Skip to main content

makeInverseKinematicsSolver.m


% This function is part of the NMSM Pipeline, see file for full license.
%
% This function makes an InverseKinematicsSolver object from input Model,
% markerfilename and parameters. The params are a struct and have the
% following format:
% params:
% excludedMarkers - (1D array strings of marker names)
% markerWeights - struct(marker name, number weight)
% accuracy - numeric
% startTime - numeric (default: 0)
%
% (Model, string, struct) -> (InverseKinematicsSolver)
% makes an InverseKinematicsSolver from input values


function ikSolver = makeInverseKinematicsSolver(model, markerFileName, ...
params)
import org.opensim.modeling.*
markersReference = makeMarkersReference(model, markerFileName, params);
ikSolver = makeIKSolverFromMarkersReference(model, markersReference, ...
params);
end