I am trying to run IK on experimental mocap dataset. I have run the Scale Tool to place the markers from the static trial onto the Gait2392 model. However, when I run the IK tool with the experimental .trc file, I get the following error:
InverseKinematicsTool Failed: Error reading rows in file 'C:\Users\porte\Software\MATLAB\Gait Dataset\Subject B\C4\SBC4T2.trc'. Unexpected number of columns in line 5968. Expected = 419. Received = 418.
Thrown at TRCFileAdapter.cpp:180 in extendRead().
(see attached photo for full message window output)
In another post, someone had mentioned that the issue could arise from changing the marker data but not changing the NumMarkers header in the .trc file - however, I have not edited this experimental data set at all (so I have not removed any markers that would change the value in the NumMarkers header).
It also throws an error in line 5968, so I tried to limit the IK time range to not include that line, but now matter what time range I specify in the IK tool, I get this same error.
Any help would be appreciated!
IK Tool Fail
- Allison Porter
- Posts: 12
- Joined: Thu Jan 10, 2019 3:53 pm
- Allison Porter
- Posts: 12
- Joined: Thu Jan 10, 2019 3:53 pm
- Thomas Uchida
- Posts: 1797
- Joined: Wed May 16, 2012 11:40 am
Re: IK Tool Fail
The file must follow the format described here: https://simtk-confluence.stanford.edu/d ... c%29+Files. If memory serves, some common issues are spaces instead of tabs, missing or non-numeric values, and incorrect header information. Based on your error, perhaps there's an entry missing?InverseKinematicsTool Failed: Error reading rows in file 'C:\Users\porte\Software\MATLAB\Gait Dataset\Subject B\C4\SBC4T2.trc'. Unexpected number of columns in line 5968. Expected = 419. Received = 418.
- Evan Dooley
- Posts: 25
- Joined: Fri Sep 27, 2019 8:36 am
Re: IK Tool Fail
Hello Allison,
I am getting this same error. I have tried exporting from Nexus 2.9 and Nexus 2.10. I have checked the rows that claim to have the errors and the match the other rows. As far as I can tell all of the files throwing this error, match the formatting of previous files that do run in this method.
By any chance, did you figure out what was going wrong here?
Thanks,
EAD