Skip to main content

findMarkerPositions.m


% This function is part of the NMSM Pipeline, see file for full license.
%
%
%
% (Model, struct) -> (struct)
% Store positions of markers on foot in a struct.


function markerPositions = findMarkerPositions(model, markerNames)
[model, state] = Model(model);
markerNamesList = fieldnames(markerNames);
for i=1:length(markerNamesList)
tempMarkerPositionVec3 = model.getMarkerSet().get(markerNames.( ...
markerNamesList{i})).getLocationInGround(state);
markerPositions.(markerNamesList{i}) = [ ...
tempMarkerPositionVec3.get(0), tempMarkerPositionVec3.get(2)];
end
end