Search found 47 matches

by hamed kouchebaghi
Tue Oct 13, 2020 11:12 pm
Forum: OpenSim
Topic: model motion
Replies: 3
Views: 278

Re: model motion

Hello I was able to build the motion model using the "prescribeMotionInModel.m" file. Now I want to move the model to the desired coordinates. I mean when the model starts to move and lastly stops I want it to stop at the coordinates which I give to the model. What should I do ? Thank you, Hamed he...
by hamed kouchebaghi
Mon Oct 12, 2020 1:15 am
Forum: OpenSim
Topic: model motion
Replies: 3
Views: 278

Re: model motion

Hello I was able to build the motion model using the "prescribeMotionInModel.m" file. Now I want to move the model to the desired coordinates. I mean when the model starts to move and lastly stops I want it to stop at the coordinates which I give to the model. What should I do ? Thank you, Hamed he...
by hamed kouchebaghi
Sat Oct 10, 2020 11:57 pm
Forum: OpenSim
Topic: model motion
Replies: 3
Views: 278

model motion

Hello

I was able to build the motion model using the "prescribeMotionInModel.m" file.
Now I want to move the model to the desired coordinates. I mean when the model starts to move and lastly stops I want it to stop at the coordinates which I give to the model. What should I do ?

Thank you,
Hamed
by hamed kouchebaghi
Wed Oct 07, 2020 4:03 am
Forum: OpenSim
Topic: .mot
Replies: 6
Views: 431

Re: .mot

I mean reading the motion file. how can I do it? Please see the "prescribeMotionInModel.m" example in your Resources\Code\Matlab directory. This file is mentioned on the "Scripting with Matlab" page in the documentation, which may also be helpful if you haven't seen it yet: https://simtk-confluence...
by hamed kouchebaghi
Mon Oct 05, 2020 5:41 am
Forum: OpenSim
Topic: .mot
Replies: 6
Views: 431

Re: .mot

I mean reading the motion file. how can I do it? Please see the "prescribeMotionInModel.m" example in your Resources\Code\Matlab directory. This file is mentioned on the "Scripting with Matlab" page in the documentation, which may also be helpful if you haven't seen it yet: https://simtk-confluence...
by hamed kouchebaghi
Mon Sep 21, 2020 11:26 pm
Forum: OpenSim
Topic: .mot
Replies: 6
Views: 431

Re: .mot

tkuchida wrote:
Mon Sep 21, 2020 7:17 pm
What do you mean "load motion file to it"? If you are trying to set the pose of the model, you can read a motion file and set each coordinate.
yes, I mean reading the motion file.
how can I do it?
by hamed kouchebaghi
Mon Sep 21, 2020 6:52 am
Forum: OpenSim
Topic: reading a ".mot" file
Replies: 7
Views: 646

Re: reading a ".mot" file

Yep that's the filename, mine just loops a bunch of trials so that's how it formats to read. I think from what you gave yours would be: motAsTable = readtable('subject01_walk1_grf.txt'); outputs = motAsTable.Properties.VariableNames; data = table2array(motAsTable); Yeah, the mot file is just saved ...
by hamed kouchebaghi
Mon Sep 21, 2020 5:26 am
Forum: OpenSim
Topic: .mot
Replies: 6
Views: 431

Re: .mot

Hello, this is the code for the arm26 model running in MATLAB environment. import org.opensim.modeling.* arm = Model('C:\OpenSim 4.1\Models\Arm26\arm26.osim'); arm.setUseVisualizer(true); state = arm.initSystem(); viz = arm.updVisualizer().updSimbodyVisualizer(); viz.setBackgroundColor(Vec3(0)); % ...
by hamed kouchebaghi
Sun Sep 20, 2020 6:40 am
Forum: OpenSim
Topic: .mot
Replies: 6
Views: 431

.mot

Hello, this is the code for the arm26 model running in MATLAB environment. import org.opensim.modeling.* arm = Model('C:\OpenSim 4.1\Models\Arm26\arm26.osim'); arm.setUseVisualizer(true); state = arm.initSystem(); viz = arm.updVisualizer().updSimbodyVisualizer(); viz.setBackgroundColor(Vec3(0)); % w...
by hamed kouchebaghi
Tue Sep 15, 2020 12:56 am
Forum: OpenSim
Topic: console reporter
Replies: 1
Views: 200

console reporter

Hello,

when I run the code for the arm model in the following link: https://github.com/opensim-org/opensim-core
I can see the results stored in the "out.log" in the Current Folder.
I want to print the information of the out.log file to my console, how can I do it ??

Thank you,
Hamed