CSV files to TRC
- Yann Amouyal
- Posts: 7
- Joined: Thu Feb 13, 2014 5:14 am
CSV files to TRC
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
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
- Sajad Bagherian
- Posts: 3
- Joined: Tue Dec 02, 2014 1:05 pm
Re: CSV files to TRC
hi
if you could send me one of your c3d file i would check.
Regards
if you could send me one of your c3d file i would check.
Regards
- Yann Amouyal
- Posts: 7
- Joined: Thu Feb 13, 2014 5:14 am
Re: CSV files to TRC
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
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
- Yusuke Okita
- Posts: 44
- Joined: Sun Nov 21, 2010 11:25 pm
Re: CSV files to TRC
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
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
- Arash Mohammadzadeh Gonabadi
- Posts: 34
- Joined: Sun Sep 10, 2017 10:44 am
- Mritula Chandrasekaran
- Posts: 94
- Joined: Tue Dec 19, 2017 5:36 am
Re: CSV files to TRC
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
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
- Dimitar Stanev
- Posts: 1096
- Joined: Fri Jan 31, 2014 5:14 am
Re: CSV files to TRC
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.
https://simtk-confluence.stanford.edu/d ... c%29+Files
You can write an exporter that will convert csv files to trc.
- Mohammadreza Rezaie
- Posts: 408
- Joined: Fri Nov 24, 2017 12:48 am
Re: CSV files to TRC
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
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.
- Thomas Uchida
- Posts: 1793
- Joined: Wed May 16, 2012 11:40 am
Re: CSV files to TRC
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.the kinect calculate the joints centre and you can not use them because they are not markers location