Search found 56 matches

by Sheeba Davis
Mon Apr 05, 2021 3:30 am
Forum: OpenSim
Topic: Problem with Inverse Dynamics in Matlab (OpenSim 4.2)
Replies: 1
Views: 502

Problem with Inverse Dynamics in Matlab (OpenSim 4.2)

Hi I encountered 2 issues with Inverse Dynamics in Matlab. 1. Following is the code myID = InverseDynamicsTool(); myID.setName('my_subject01_walk1'); myID.set_results_directory('my_ResultsInverseDynamics'); myModel=Model('my_subject01_simbody.osim'); myID.setModel(myModel); myID.setModelFileName('my...
by Sheeba Davis
Sat Apr 03, 2021 4:21 am
Forum: OpenSim
Topic: creating IK setup file in Matlab
Replies: 6
Views: 1323

Re: creating IK setup file in Matlab

Hi Vishal

Thank you very much for your clarification. As per your suggestion i downloaded 4.2 version and it works fine now. Thanks a lot.


Regards
Sheeba
by Sheeba Davis
Thu Apr 01, 2021 9:44 pm
Forum: OpenSim
Topic: creating IK setup file in Matlab
Replies: 6
Views: 1323

Re: creating IK setup file in Matlab

Hi Vishal Thanks for your response. I have used setModel() , as you can see in my previous post. But the model is not reflected in the IK xml file. <model_file>Unassigned</model_file> Moreover, there is no option to set the model file name in the InverseKinematicsTool . I could find set_model_file()...
by Sheeba Davis
Wed Mar 31, 2021 10:18 pm
Forum: OpenSim
Topic: creating IK setup file in Matlab
Replies: 6
Views: 1323

Re: creating IK setup file in Matlab

Hi Thomas Thanks for the response. I did try set_model_file() , but it dint work: >> myIK=InverseKinematicsTool('myIK.xml'); >> myIK.set_model_file('my_subject01_simbody.osim'); Unrecognized function or variable 'set_model_file'. I have already loaded my model using: >>osimModel=Model('my_subject01_...
by Sheeba Davis
Wed Mar 31, 2021 3:17 am
Forum: OpenSim
Topic: creating IK setup file in Matlab
Replies: 6
Views: 1323

creating IK setup file in Matlab

Hi I was creating an IK setup file in Matlab and i could'nt find the following objects in the InverseKinematicsTool setModelFileName() setAccuracy() setConstraintWeight() I actually need them to update my xml file: <model_file>Unassigned</model_file> <constraint_weight>Inf</constraint_weight> <accur...
by Sheeba Davis
Sun Mar 21, 2021 10:35 pm
Forum: OpenSim
Topic: Editing the XML file using Matlab
Replies: 8
Views: 1484

Re: Editing the XML file using Matlab

Hi Thomas Thanks for your reply. I have gone through API documentation, scripting with matlab and also used methodsview(). I am actually trying to recreate the the scale setup file for gait2354 model provided in the OpenSim 4.1 distribution in matlab. The 'ValueType' in the IKCoordinateTask for 'lum...
by Sheeba Davis
Fri Mar 19, 2021 2:50 am
Forum: OpenSim
Topic: Editing the XML file using Matlab
Replies: 8
Views: 1484

Re: Editing the XML file using Matlab

Hi In continuation with the process of editing an xml file, i would like to know the matlab command for setting the value type in the IK coordinate task. In case of default value, there was no issue, but if i have to set value type to "ManualValue", i am unsure of its argument. i do not know whether...
by Sheeba Davis
Tue Mar 16, 2021 8:08 am
Forum: OpenSim
Topic: Editing the XML file using Matlab
Replies: 8
Views: 1484

Re: Editing the XML file using Matlab

Hi Thomas

Thanks for your response. It was indeed a great help. Now it works fine. I did'nt know that we could do that way.

Regards
Sheeba
by Sheeba Davis
Mon Mar 15, 2021 11:02 pm
Forum: OpenSim
Topic: Editing the XML file using Matlab
Replies: 8
Views: 1484

Re: Editing the XML file using Matlab

Hi In continuation with the process of editing "myScale" (Scale Setup file), i have created a "MeasurementSet" and appended it to "myScale". Next time when i wanted to append "ScaleSet" to "myScale" (on some other day), i just did: import org.opensim.modeling.* myScale = ScaleTool(); myScale.getMode...
by Sheeba Davis
Fri Mar 12, 2021 9:03 pm
Forum: OpenSim
Topic: Editing the XML file using Matlab
Replies: 8
Views: 1484

Re: Editing the XML file using Matlab

Hi Ayman

Thanks for the clarification. I am getting to understand much better now.

Regards
Sheeba