How to convert XML file into osim model.

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
RAHUL GHARATE
Posts: 84
Joined: Thu Jun 13, 2019 11:43 pm

How to convert XML file into osim model.

Post by RAHUL GHARATE » Wed Sep 11, 2019 3:29 am

I want to provide path actuator to the gait2354 model. So I go to help menu and click on XML browser then I got all program files so I copy path actuator program and try to did by scripting method. But I failed. Then I go to convert files to convert this into model (osim) but I can't get it.
Please tell me how to use this and how I get it path actuator model for gait2354 model.
Already I had posted this question but I didn't get the reply. so I am waiting for your reply.
So please help me.
Thanks.

Tags:

User avatar
RAHUL GHARATE
Posts: 84
Joined: Thu Jun 13, 2019 11:43 pm

Re: How to convert XML file into osim model.

Post by RAHUL GHARATE » Wed Sep 11, 2019 11:07 pm

Plz.Help

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

Re: How to convert XML file into osim model.

Post by Thomas Uchida » Thu Sep 12, 2019 2:48 am

There is a file in the Resources folder (e.g., C:\OpenSim 4.0\Resources\Code\GUI) named "ModelBuildingFunctions.py". It contains a function "addMuscleToModel()", which will give you an idea of how to add a path actuator using the GUI's scripting shell.

User avatar
RAHUL GHARATE
Posts: 84
Joined: Thu Jun 13, 2019 11:43 pm

Re: How to convert XML file into osim model.

Post by RAHUL GHARATE » Mon Sep 16, 2019 12:26 am

Respected Sir , I had tried a lot. But I don't have knowledge regarding programming. So please, Is there any another option to provide actuator to the gai2354model.So please help me. I am struggling from 2 months. But I couldn't provide path actuator to the gait 2354model.
Please help.
Please give me a easy option or reference for that.
Thanks

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

Re: How to convert XML file into osim model.

Post by Thomas Uchida » Mon Sep 16, 2019 9:11 am

Is there any another option to provide actuator to the gai2354model.
Yes, you could edit the OSIM file manually (e.g., using Notepad++). You can use the XML Browser in the GUI to determine what code to add (Help menu -> XML Browser -> select the desired class), but you will need to modify the properties to suit your model. There is also some relevant information on the "OpenSim Models" page in the documentation (https://simtk-confluence.stanford.edu/d ... Sim+Models).

User avatar
jimmy d
Posts: 1375
Joined: Thu Oct 04, 2007 11:51 pm

Re: How to convert XML file into osim model.

Post by jimmy d » Tue Sep 17, 2019 5:29 pm

You should also consider using OpenSim 3.3 instead of 4.0. There were significant changes in 4.0 that added functionality but also complexity to the models. The 3.3 documentation also has an XML editing example that isn't present in 4.0, specifically because editing the XML file by hand, for a novice, is difficult.

User avatar
RAHUL GHARATE
Posts: 84
Joined: Thu Jun 13, 2019 11:43 pm

Re: How to convert XML file into osim model.

Post by RAHUL GHARATE » Thu Sep 19, 2019 11:13 am

I had opened the gait2354model file in notepad++ and gait10dof18musc.model file and saw the changes so I have copied plantarflexion assist data from gait10dof18 model and paste into the gait2354 model. But I couldn't get the result.
Can you please guide me.
I need it for my project.
Please help.

User avatar
RAHUL GHARATE
Posts: 84
Joined: Thu Jun 13, 2019 11:43 pm

Re: How to convert XML file into osim model.

Post by RAHUL GHARATE » Thu Sep 26, 2019 4:03 am

Please help me.

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

Re: How to convert XML file into osim model.

Post by Thomas Uchida » Fri Sep 27, 2019 4:03 pm

I've added a path actuator to the gait2354 model (attached). It follows the same path as the med_gas_r muscle; you can modify the path and other properties as necessary.
Attachments
gait2354_simbody_withPathActuator.osim
(388.06 KiB) Downloaded 65 times

User avatar
Rahul Gharate
Posts: 8
Joined: Thu Nov 07, 2019 10:05 pm

Re: How to convert XML file into osim model.

Post by Rahul Gharate » Mon Nov 18, 2019 8:08 pm

Respected Sir,
Already you gave me gait2354 with path actuator model and Now I made 43% actuation file but can I used task.xml & kinematics q .sto file which is available in Gait2354 model folder.
I don't know what I should put weight in the task file.
I can used any task file.
What is the logic behind that.
can you give me any reference ?
I can't understand about task.xml file and kinematics q.sto file.
Please help.

POST REPLY