Page 1 of 1

C3D reading exception

Posted: Fri Aug 07, 2020 2:19 pm
by nikorose
Hi all,
Thanks for continue developing.

I am having problems trying to read a C3D file from the
C3DFileAdapter()
, It throws an exception:
RuntimeError: std::exception in 'OpenSim::DataAdapter::OutputTables OpenSim::DataAdapter::read(std::string const &) const': USED parameter is not an INT
I do not know what might be the problem with my c3d file because, when I read the C3D file externally, It seems correct the USED part. I used the following code script:

Code: Select all

amp_dir = os.path.join(root_dir, 
        "TRANSTIBIAL/Transtibial  Izquierda/Gerson Tafud/0143~ab~Walking_01.c3d")


c3dFileAdapter = osim.C3DFileAdapter()
c3dFileAdapter.setLocationForForceExpression( \
                        osim.C3DFileAdapter.ForceLocation_CenterOfPressure)
tables = c3dFileAdapter.read(amp_dir)
markersTable = c3dFileAdapter.getMarkersTable(tables)
forcesTable = c3dFileAdapter.getForcesTable(tables)
I wanted to upload the c3d but it is not allowed :cry:

Thanks

Re: C3D reading exception

Posted: Fri Aug 07, 2020 7:50 pm
by nikorose
I realized that is a ezc3d issue, they do not admit another format characters in the USED section.