EmbodiedCognition / py-c3d

Read & write C3D mocap files
http://c3d.rtfd.org
MIT License
104 stars 47 forks source link

reading Xsens file #11

Closed mohamedhassanmus closed 6 years ago

mohamedhassanmus commented 6 years ago

I have a c3d file exported from MVNX studio of xsens. When I try to read the file using your library. I get the following error:

`

import c3d f = open('test.c3d','rb') data = c3d.Reader(f) Traceback (most recent call last): File "", line 1, in File "/is/ps2/mhassan/.virtualenvs/frankengeist/local/lib/python2.7/site-packages/c3d.py", line 796, in init self.check_metadata() File "/is/ps2/mhassan/.virtualenvs/frankengeist/local/lib/python2.7/site-packages/c3d.py", line 534, in check_metadata assert self.header.frame_rate == self.point_rate, ( File "/is/ps2/mhassan/.virtualenvs/frankengeist/local/lib/python2.7/site-packages/c3d.py", line 674, in point_rate return self.get_float('POINT:RATE') File "/is/ps2/mhassan/.virtualenvs/frankengeist/local/lib/python2.7/site-packages/c3d.py", line 657, in get_float return self.get(key).float_value AttributeError: 'NoneType' object has no attribute 'float_value' `

kbsmale commented 6 years ago

Hi MohameHassan,

This isn't actually a py-c3d error but actually an Xsens error. Here on their support thread they admit to the bug, which should be fixed in the newest release due out next month (Aug. 2018)

lmjohns3 commented 6 years ago

Will close for now, please reopen if the issue is still present with the updated xsens file.