existing matlab import script?

Post Reply
frwi
Posts: 6
Joined: Fri Oct 11, 2013 11:46 am

existing matlab import script?

Post by frwi »

Hi,

I'm a new here. Just got a S250e setup with Motive.

I was wondering if there is already an import script for Matlab that reads Motives c3d or csv exports, either from NaturalPoint or the community?
Wouldn't be a big deal to write my own, but why reinvent the wheel?
MattJDunn
Posts: 4
Joined: Wed Nov 06, 2013 5:51 am

Re: existing matlab import script?

Post by MattJDunn »

C3D server is free and comes with MATLAB scripts. This allows you to import C3D files easily, but unfortunately the software doesn't work post Win-XP. This has been useful to me in the past, but due to our tracker system being upgraded to Windows 8, I'm now on the lookout for pre-existing CSV reading code. As you say, it wouldn't be hard to make my own, but why reinvent the wheel? Did you end up making a CSV parser and would you be prepared to share if you did?

If you're able to choose your own OS and didn't find a solution already, you can find C3D Server here: http://www.c3dserver.com
afsp
Posts: 5
Joined: Fri May 23, 2014 1:53 am

Re: existing matlab import script?

Post by afsp »

Hey,

I was wondering if any of you had already made a Matlab script for Windows 8?

Thanks in advance for considering sharing!

Best,

Arthur
frwi
Posts: 6
Joined: Fri Oct 11, 2013 11:46 am

Re: existing matlab import script?

Post by frwi »

Although it might be outdated with the upcoming introduction of Motive 1.6, here is my simple Matlab script to load the position, quaternion orientation and euler angles for multiple rigid bodies
https://bitbucket.org/friederw/loadoptitrackcsv
CPGRTT
Posts: 1
Joined: Fri Oct 17, 2014 9:46 am

Re: existing matlab import script?

Post by CPGRTT »

Thanks for posting this import script. When I use it with a Motive 1.5.1 csv file, the script recognizes the appropriate number of rigid bodies, however, the data points are all coming in as NaN for all four variables: T, P, Q, and Euler.

Are there any modifications that should be done before being able to use? Thanks in advance!
juhlad
Posts: 2
Joined: Wed May 27, 2015 1:43 am

Re: existing matlab import script?

Post by juhlad »

Hi, I also tried the script from frwl and get same result as CPGRTT. All the data from the rigid bodies are labeled NaN, except the data form the resting coordinate system. Does anyone have a clue. Thank you.
moz
Posts: 2
Joined: Wed May 27, 2015 8:00 am

Re: existing matlab import script?

Post by moz »

The biomechanical toolkit may be useful for you:

https://code.google.com/p/b-tk/wiki/MatlabBinaries
Post Reply