Page 1 of 1

Converting from c3d to trc without force plates

Posted: Wed Sep 08, 2021 6:31 am
by vigneshrk
Hello,

Sorry to disturb but I have gait data in both static and dynamic trials collected on a normal treadmill in .c3d format. There is no force plate data which is causing functions like c3dExport.m to crash when I try to convert it to .trc files. How do I go about this?

Thanks, and Regards
Vignesh

Re: Converting from c3d to trc without force plates

Posted: Wed Sep 08, 2021 9:54 am
by aymanh
Hi Vingesh,

Similar issue (where missing forces resulted in a crash rather than an empty table) has been fixed in early 2020 and integrated into version 4.2, can you test your code in version 4.2+ and let us know what you find out?

Thanks,
-Ayman

Re: Converting from c3d to trc without force plates

Posted: Wed Sep 08, 2021 10:04 am
by vigneshrk
Hello Ayman,

Thank you for your reply. I have OpenSim version 4.2 and I installed it early this year. Would the changes have been implemented by then? Just for reference I get this error whenever I run c3dExport.m on any static file
c3dExport.JPG
c3dExport.JPG (42.27 KiB) Viewed 150 times
Thanks, and Regards
Vignesh

Re: Converting from c3d to trc without force plates

Posted: Wed Sep 08, 2021 10:27 am
by aymanh
Hello Vignesh,

The error here is that c3dExport does not check that the forces table is empty and regardless goes on to ask for more data about the forces (e.g. forceRate) which is incorrect since the table is empty. It would be great if you can fix that on your side (handle empty forces table) and file a bug with an example .c3d file that contains no forces so we can fix the distributed script moving forward. If you can also post to this trail with what changes you needed to make that would be helpful to other users of c3dExport on this forum.

Please let us know if you need further help or run into other issues in the process.

Best regards,
-Ayman

Re: Converting from c3d to trc without force plates

Posted: Sun Sep 12, 2021 7:31 am
by vigneshrk
Hey Ayman,

I shall work on this after the 16th. Thanks and shall let you know if I need any assistance regarding the same.

Regards,
Vignesh