Page 1 of 1

Not Able to Initialize MarkersReference

Posted: Tue Aug 08, 2023 12:21 pm
by umerhuzaifa
Hi there,

I am trying to run the examples in Resources/Code/Matlab and I am unable to run the example titled `exampleMarkerTracking10DOF.m`. The specific error appears at `markersRef = MarkersReference(fullfile(scriptdir, 'marker_trajectories.trc'));` where it says `No constructor 'org.opensim.modeling.MarkersReference' with matching signature found.` In the Command Line as well, `MarkersReference` is not resolved as an OpenSim function. All other OpenSim MATLAB API functions are running perfectly.

Kindly advise.

Best,
Umer

Re: Not Able to Initialize MarkersReference

Posted: Tue Aug 08, 2023 12:29 pm
by umerhuzaifa
Okay, it turns out that first initializing MarkersReference alone and then setting the markers file is the correct way to do it.

Code: Select all

markersRef = MarkersReference;
markersRef.set_marker_file('marker_trajectories.trc')
No errors now.