Hello all,
I'm relatively new to OpenSim and I have a question regarding the model marker trajectories. Is there a method to obtain/extract the xyz coordinates of the model markers over the course of a trial? Naturally I have the experimental trajectories in the .trc file which are used for Inverse Kinematics, however I would like to get the trajectories of the model itself following Inverse Kinematics.
Thank you!
Obtaining Model Marker Trajectories
- Thomas Uchida
- Posts: 1792
- Joined: Wed May 16, 2012 11:40 am
Re: Obtaining Model Marker Trajectories
You can open the IK Tool setup file (.xml) in a text editor and change the report_marker_locations property to true.Is there a method to obtain/extract the xyz coordinates of the model markers over the course of a trial? Naturally I have the experimental trajectories in the .trc file which are used for Inverse Kinematics, however I would like to get the trajectories of the model itself following Inverse Kinematics.
- Conrad Slater
- Posts: 2
- Joined: Fri Oct 20, 2017 11:29 am
Re: Obtaining Model Marker Trajectories
Great, thank you very much!
- Brecca Gaffney
- Posts: 4
- Joined: Thu Aug 01, 2013 4:09 pm
Re: Obtaining Model Marker Trajectories
Tom,
Is there a reason that this file is not written when this setup file is called (with report_marker_locations set to true) using the InverseKinematicsTool from the Matlab API?
Thanks for your help.
Is there a reason that this file is not written when this setup file is called (with report_marker_locations set to true) using the InverseKinematicsTool from the Matlab API?
Thanks for your help.
- Thomas Uchida
- Posts: 1792
- Joined: Wed May 16, 2012 11:40 am
Re: Obtaining Model Marker Trajectories
Several possible explanations come to mind. Is the file generated when you run the Tool in the GUI using the same setup file? Also, I took a quick glance at the code and it looks like the file might be written to a different directory than the other results. Perhaps MATLAB doesn't have the necessary permissions to write to the target directory?Is there a reason that this file is not written when this setup file is called (with report_marker_locations set to true) using the InverseKinematicsTool from the Matlab API?