C3D reading exception

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Edwin Prieto
Posts: 9
Joined: Wed Jun 26, 2013 6:09 pm

C3D reading exception

Post by Edwin Prieto » Fri Aug 07, 2020 2:19 pm

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

Tags:

User avatar
Edwin Prieto
Posts: 9
Joined: Wed Jun 26, 2013 6:09 pm

Re: C3D reading exception

Post by Edwin Prieto » Fri Aug 07, 2020 7:50 pm

I realized that is a ezc3d issue, they do not admit another format characters in the USED section.

POST REPLY