XML error

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Mahshida hamid
Posts: 19
Joined: Sun Jan 30, 2022 10:49 am

XML error

Post by Mahshida hamid » Fri Jan 05, 2024 3:31 am

Hello community,
I was working on a model and was trying to add certain body segments to the model and when I compiled my XML file it gave this error can somebody help me here?
Attachments
Screenshot 2024-01-05 150439.png
Screenshot 2024-01-05 150439.png (62 KiB) Viewed 462 times
Screenshot 2024-01-05 145657.png
Screenshot 2024-01-05 145657.png (10.89 KiB) Viewed 462 times

Tags:

User avatar
Thomas Uchida
Posts: 1777
Joined: Wed May 16, 2012 11:40 am

Re: XML error

Post by Thomas Uchida » Fri Jan 05, 2024 11:54 pm

It's difficult to diagnose the issue without more information about how to reproduce the error. If you are attempting to add body segments by modifying an existing osim file manually (e.g., in Notepad++), then there may be an error in one or more of the Socket paths. If you are attempting to add body segments using a script, then you may be missing a call to add a new ModelComponent to the Model, or you may be missing a call to initSystem(). Perhaps take a look at some of the example scripts for building models (e.g., buildWalker_Complete.m: https://github.com/opensim-org/opensim- ... Complete.m) or provide more information.

User avatar
Mahshida hamid
Posts: 19
Joined: Sun Jan 30, 2022 10:49 am

Re: XML error

Post by Mahshida hamid » Sun Jan 14, 2024 2:04 am

hello professor,
I was modifying an osim file manually using notepad, i even fixed the socket paths but it is still showing the same error.

User avatar
Thomas Uchida
Posts: 1777
Joined: Wed May 16, 2012 11:40 am

Re: XML error

Post by Thomas Uchida » Mon Jan 15, 2024 10:06 am

I was modifying an osim file manually using notepad
This is not a recommended method for building models, particularly for OpenSim version 4.0 and later, since it is difficult to get all the details (syntax, component paths, etc.) correct. You might want to use the scripting interface (https://simtk-confluence.stanford.edu:8 ... evelopment). OpenSim Creator is another option (https://opensimcreator.com/).

POST REPLY