Search found 6 matches

by Mélissandre Asfazadourian
Mon Jul 29, 2019 7:39 am
Forum: OpenSim
Topic: Link between External Loads and external forces
Replies: 0
Views: 274

Link between External Loads and external forces

Hi there! I am studying a cycle of gait on an opensim model that I created and I would like to create the external load file from the API in order to run the Inverse Dynamics Tool. I have a .mot file with ground forces, I get how to create an external force but I do not understand how I make a link ...
by Mélissandre Asfazadourian
Tue Jul 23, 2019 12:56 am
Forum: OpenSim
Topic: Visualizer in Matlab
Replies: 6
Views: 779

Re: Visualizer in Matlab

It was exactly why it was not working ! Thanks a lot for your help :D I have changed the code after reading another topic, so for those who want to "animate" their model from IK results in the visualizer here it is: modele=opensim.Model('modele.osim') modele.setUseVisualizer(True) state=modele.initS...
by Mélissandre Asfazadourian
Mon Jul 22, 2019 10:08 am
Forum: OpenSim
Topic: Visualizer in Matlab
Replies: 6
Views: 779

Re: Visualizer in Matlab

I have a mot file with inverse kinematics results of gait. My model is supposed to walk, but the motion is a complete no sense, bodies are moving really weirdly, it's not even close from what we should expect... The bodies seem entangled during the motion. Maybe the angles are not set to the right c...
by Mélissandre Asfazadourian
Mon Jul 22, 2019 2:21 am
Forum: OpenSim
Topic: Visualizer in Matlab
Replies: 6
Views: 779

Re: Visualizer in Matlab

There may be an easier way, but something like this should work: import org.opensim.modeling.*; model = Model('myModel.osim'); model.setUseVisualizer(true); state = model.initSystem(); storage = Storage('results.sto'); numCoords = model.getNumCoordinates(); q = Vector(numCoords, 0); for i = 0:stora...
by Mélissandre Asfazadourian
Mon Jul 22, 2019 12:15 am
Forum: OpenSim
Topic: API: Animate a model with IK results
Replies: 2
Views: 436

API: Animate a model with IK results

Hi! I have Inverse Kinematics results into a .mot file and I would to use them in order to animate my model in the API. I read all the documentation and topics that could help me but nothing did. I know somebody already opened this kind of topic last year but never had a clear answer. I know that I ...
by Mélissandre Asfazadourian
Fri Jul 19, 2019 5:50 am
Forum: OpenSim
Topic: API: Loading model states from an Inverse Kinematics motion file
Replies: 2
Views: 627

Re: API: Loading model states from an Inverse Kinematics motion file

Hey Navid,

Did you manage to animate your model with your IK results ? I'm trying to do it, a little help would be great :D
Thanks in advance