Not Able to Initialize MarkersReference

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Umer Huzaifa
Posts: 10
Joined: Wed Mar 04, 2020 11:41 pm

Not Able to Initialize MarkersReference

Post by Umer Huzaifa » Tue Aug 08, 2023 12:21 pm

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

User avatar
Umer Huzaifa
Posts: 10
Joined: Wed Mar 04, 2020 11:41 pm

Re: Not Able to Initialize MarkersReference

Post by Umer Huzaifa » Tue Aug 08, 2023 12:29 pm

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.

POST REPLY