How to convert XML file into osim model.
- RAHUL GHARATE
- Posts: 84
- Joined: Thu Jun 13, 2019 11:43 pm
How to convert XML file into osim model.
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.
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:
- RAHUL GHARATE
- Posts: 84
- Joined: Thu Jun 13, 2019 11:43 pm
- Thomas Uchida
- Posts: 1793
- Joined: Wed May 16, 2012 11:40 am
Re: How to convert XML file into osim model.
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.
- RAHUL GHARATE
- Posts: 84
- Joined: Thu Jun 13, 2019 11:43 pm
Re: How to convert XML file into osim model.
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
Please help.
Please give me a easy option or reference for that.
Thanks
- Thomas Uchida
- Posts: 1793
- Joined: Wed May 16, 2012 11:40 am
Re: How to convert XML file into osim model.
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).Is there any another option to provide actuator to the gai2354model.
Re: How to convert XML file into osim model.
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.
- RAHUL GHARATE
- Posts: 84
- Joined: Thu Jun 13, 2019 11:43 pm
Re: How to convert XML file into osim model.
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.
Can you please guide me.
I need it for my project.
Please help.
- RAHUL GHARATE
- Posts: 84
- Joined: Thu Jun 13, 2019 11:43 pm
Re: How to convert XML file into osim model.
Please help me.
- Thomas Uchida
- Posts: 1793
- Joined: Wed May 16, 2012 11:40 am
Re: How to convert XML file into osim model.
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 109 times
- Rahul Gharate
- Posts: 8
- Joined: Thu Nov 07, 2019 10:05 pm
Re: How to convert XML file into osim model.
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.
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.