Page 1 of 1

How to convert XML file into osim model.

Posted: Wed Sep 11, 2019 3:29 am
by rahulgharate
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.

Re: How to convert XML file into osim model.

Posted: Wed Sep 11, 2019 11:07 pm
by rahulgharate
Plz.Help

Re: How to convert XML file into osim model.

Posted: Thu Sep 12, 2019 2:48 am
by tkuchida
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.

Re: How to convert XML file into osim model.

Posted: Mon Sep 16, 2019 12:26 am
by rahulgharate
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

Re: How to convert XML file into osim model.

Posted: Mon Sep 16, 2019 9:11 am
by tkuchida
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).

Re: How to convert XML file into osim model.

Posted: Tue Sep 17, 2019 5:29 pm
by jimmy
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.

Re: How to convert XML file into osim model.

Posted: Thu Sep 19, 2019 11:13 am
by rahulgharate
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.

Re: How to convert XML file into osim model.

Posted: Thu Sep 26, 2019 4:03 am
by rahulgharate
Please help me.

Re: How to convert XML file into osim model.

Posted: Fri Sep 27, 2019 4:03 pm
by tkuchida
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.

Re: How to convert XML file into osim model.

Posted: Mon Nov 18, 2019 8:08 pm
by rahulmech
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.