OpenSIM transform tool make .trc files corrupt
after saving transformed .trc files with marker data OpenSIM throws an error when opening transformed file:
InverseKinematicsTool Failed: Error reading column Labels in file transformed_walking2.trc'. Unexpected number of column labels. Expected = 46. Recieved = 44.
Thrown at trcfileadapter.cpp:125 in extendRead().
OpenSIM transform tool make .trc files corrupt
- GEORGIY TOKUNOV
- Posts: 6
- Joined: Fri Feb 15, 2019 11:59 am
Re: OpenSIM transform tool make .trc files corrupt
There are some details on the trc file format here. The error message you are getting seems to indicate the NumMarkers property in the trc header is specifying 46 markers but there are only 44 markers worth of data. This type of error typically happens when you edit the number of markers in the data but don't change the NumMarkers property in the header.
- GEORGIY TOKUNOV
- Posts: 6
- Joined: Fri Feb 15, 2019 11:59 am
Re: OpenSIM transform tool make .trc files corrupt
I made an experiment.
My original .trc file didn't throw any error
but after i save .trc from this original file using transfrom tool - it throws mentioned above error.
My original .trc file didn't throw any error
but after i save .trc from this original file using transfrom tool - it throws mentioned above error.
Re: OpenSIM transform tool make .trc files corrupt
What transform tool?
- GEORGIY TOKUNOV
- Posts: 6
- Joined: Fri Feb 15, 2019 11:59 am
Re: OpenSIM transform tool make .trc files corrupt
Opensim
File -> Preview Experimental Data... (open .trc file)
right click on experimental data .trc file in Navigator -> Transform
Rotate X/Y or Z
Save as... (transformed .trc file)
File -> Preview Experimental Data... (open .trc file)
right click on experimental data .trc file in Navigator -> Transform
Rotate X/Y or Z
Save as... (transformed .trc file)
- Thomas Uchida
- Posts: 1794
- Joined: Wed May 16, 2012 11:40 am
Re: OpenSIM transform tool make .trc files corrupt
This is a known issue with the GUI (https://github.com/opensim-org/opensim-gui/issues/1102). You should be able to edit the TRC file, replacing spaces with tabs. Please see the "Marker (.trc) Files" page in the Confluence documentation (https://simtk-confluence.stanford.edu:8 ... c%29+Files) for a description of the required TRC file format.
- GEORGIY TOKUNOV
- Posts: 6
- Joined: Fri Feb 15, 2019 11:59 am
Re: OpenSIM transform tool make .trc files corrupt
Thanks, Thomas!
But already solved it by fixing GitHub dvarnai/pyC3D2OSIM python script.
resulting code here:
https://github.com/IISCI/c3d_2_trc
But already solved it by fixing GitHub dvarnai/pyC3D2OSIM python script.
resulting code here:
https://github.com/IISCI/c3d_2_trc