Using trc files instead of xml files

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Samer Moghnieh
Posts: 1
Joined: Wed Feb 28, 2018 11:49 am

Using trc files instead of xml files

Post by Samer Moghnieh » Mon Sep 17, 2018 6:12 am

Hi,

I'm currently scripting with the GUI. I need to do the same processes done in tutorial three (please see the attached file) but using trc files instead of xml files. The trc files, containing marker trajectories, work fine when input manually through the toolboxes. In the script the syntax needs to be changed like in this part of the code:

## Inverse Kinematics tool
# Create the IK tool object from existing xml
ikTool = modeling.InverseKinematicsTool(ikSetupFile)
ikTool.setModel(myModel)
ikTool.run()


How? Any help please?

Thanks in advance
Attachments
runTutorialThree.txt
(5.03 KiB) Downloaded 22 times

Tags:

User avatar
jimmy d
Posts: 1375
Joined: Thu Oct 04, 2007 11:51 pm

Re: Using trc files instead of xml files

Post by jimmy d » Mon Sep 17, 2018 10:07 am

The API Documentation for the inverse kinematics tool is here;
https://simtk.org/api_docs/opensim/api_ ... sTool.html

If you want to change the marker data file it will be something like;
ikTool.setMarkerDataFileName(path2TRCFile)

POST REPLY