CSV files to TRC

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Yann Amouyal
Posts: 7
Joined: Thu Feb 13, 2014 5:14 am

CSV files to TRC

Post by Yann Amouyal » Tue Feb 10, 2015 5:45 pm

Hello everyone :)

I am a master student and want to use openSIM for one of my project.I already used OpenSIM with C3D files.
However , in this project we used the Kinect for capturing motion of the human body. I did not use the kinect, it is an other member of the team. He just gave me csv files (static and dynamic), And I would like to perform scaling and Inverse kinematic. Is it possible? How to generate the setup file (xml)? Do I have to create it manually?
How to convert a csv file to trc file ?

Thank you for your help :)

Yann

User avatar
Sajad Bagherian
Posts: 3
Joined: Tue Dec 02, 2014 1:05 pm

Re: CSV files to TRC

Post by Sajad Bagherian » Tue Feb 10, 2015 11:02 pm

hi
if you could send me one of your c3d file i would check.
Regards

User avatar
Yann Amouyal
Posts: 7
Joined: Thu Feb 13, 2014 5:14 am

Re: CSV files to TRC

Post by Yann Amouyal » Wed Feb 11, 2015 5:43 pm

Hi,
Actually , we used Kinect for motion capture so I don't have C3D, I have only *.csv files, with all the coordinates of the markers.

Thanks

User avatar
Yusuke Okita
Posts: 44
Joined: Sun Nov 21, 2010 11:25 pm

Re: CSV files to TRC

Post by Yusuke Okita » Sun Feb 15, 2015 11:27 pm

Hello Yann,

Did you try to convert .csv to .trc manually? Compared with converting kinetic data to a .mot file, marker trajectories would be easier to manipulate. If you do this kind of work many times. writing a script (e.g. MATLAB) for converting files can be considered. You might find Lee-son toolbox useful, though you might have to edit your .csv file appropriately to use this. https://simtk.org/home/lee-son/

Best regards,
Yusuke

User avatar
Arash Mohammadzadeh Gonabadi
Posts: 34
Joined: Sun Sep 10, 2017 10:44 am

Re: CSV files to TRC

Post by Arash Mohammadzadeh Gonabadi » Thu Sep 20, 2018 5:24 pm


User avatar
Mritula Chandrasekaran
Posts: 94
Joined: Tue Dec 19, 2017 5:36 am

Re: CSV files to TRC

Post by Mritula Chandrasekaran » Thu Mar 21, 2019 6:03 pm

Hi,
I am having the same issue. My data is from kinect in 3D in .csv format and I want to convert it to .trc format. Can someone suggest me how to do it?

Thanks
Mritula

User avatar
Dimitar Stanev
Posts: 1096
Joined: Fri Jan 31, 2014 5:14 am

Re: CSV files to TRC

Post by Dimitar Stanev » Fri Mar 22, 2019 2:41 am

The definition of the .trc file format can be found here

https://simtk-confluence.stanford.edu/d ... c%29+Files

You can write an exporter that will convert csv files to trc.

User avatar
Mohammadreza Rezaie
Posts: 408
Joined: Fri Nov 24, 2017 12:48 am

Re: CSV files to TRC

Post by Mohammadreza Rezaie » Fri Mar 29, 2019 12:57 pm

Hi,
I would like to know how to create csv files by kinect?
There are some software like brekel to generate the dxf files of motion, this format could be easily converted to c3d format by motion builder or blender software.
There is also a free software names kinect animation studio that could generate c3d directly after skeletal tracking.
But the main problem is that the kinect calculate the joints centre and you can not use them because they are not markers location, there arevnot any tracking markers in kinect and also the number of markers in the opensim model is much more than kinect. The best way of calculating the joint angles of kinect data is to use Mokka software. Easily select three joint and calculate the angle. If I am wrong, please share the knowledge.
Cheers
Last edited by Mohammadreza Rezaie on Mon Nov 04, 2019 2:47 pm, edited 1 time in total.

User avatar
Thomas Uchida
Posts: 1793
Joined: Wed May 16, 2012 11:40 am

Re: CSV files to TRC

Post by Thomas Uchida » Sat Mar 30, 2019 3:07 pm

the kinect calculate the joints centre and you can not use them because they are not markers location
You can change the number and location of markers in an OpenSim model. If you want to track joint center locations, you can simply place markers there.

POST REPLY