Page 1 of 1

Xml Toolbox problems

Posted: Mon May 08, 2023 10:16 am
by santiago2411
Hello team.

We are currently working on the extraction of the data from .c3d files obtained from Vicon system to implement it into OpenSim. We have been working with the Gait Extraction Toolbox in the latest Matlab version. Although we are able to obtain the corresponding.trc and .mot, when we run the extraction of the xml files, we are getting the same the following error*
The P-code file C:\OpenSim 4.4\c3d2opensim_Tools_public\BtkExtractTool\GaitExtractTool\MatlabUtils\xml_toolbox\xml_formatany.p was
generated prior to MATLAB version 7.5 (R2007b) and is no longer supported. Use pcode to regenerate the file using MATLAB R2007b or later.

We are wondering if any of you have an updated version suitable for newest version of Matlab. Also, any recommendation or suggestions about how to solve this error are appreciated

Do any of you are aware if the problem is solved when using phyton?

Thank you again

Re: Xml Toolbox problems

Posted: Mon May 08, 2023 10:40 pm
by kernalnet
Although we are able to obtain the corresponding.trc and .mot, when we run the extraction of the xml files
Hi, I see you successfully extracted TRC and MOT files from your C3D files and I suppose these XML files are your OpenSim setup files, e.g., Scale, IK, and etc. Since the xml_toolbox in the GaitExtractToolbox is outdated according to the error you posted, you can use OpenSim API to write your setup files. Several examples can be found on GitHub, e.g., InverseKinematicsTool:
https://github.com/search?q=InverseKine ... e&l=MATLAB
But first, you need to configure OpenSim in MATLAB:
https://simtk-confluence.stanford.edu:8 ... ith+Matlab