Xml Toolbox problems

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Santiago Berrio
Posts: 5
Joined: Mon Apr 03, 2023 8:55 am

Xml Toolbox problems

Post by Santiago Berrio » Mon May 08, 2023 10:16 am

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

Tags:

User avatar
Mohammadreza Rezaie
Posts: 386
Joined: Fri Nov 24, 2017 12:48 am

Re: Xml Toolbox problems

Post by Mohammadreza Rezaie » Mon May 08, 2023 10:40 pm

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

POST REPLY