Search found 3 matches

by Florian Gravo
Wed Oct 10, 2018 1:56 pm
Forum: OpenSim
Topic: Reading states in Python
Replies: 7
Views: 926

Re: Reading states in Python

Thanks a lot! But now I run into a different problem. Doing this: sto = opensim.Storage(fname) straj = opensim.StatesTrajectory() straj = straj.createFromStatesStorage(env.osim_model.model, sto) for i in range(straj.getSize()): s = straj.get(i) env.osim_model.set_state(s) Gives me either: SimTK Exce...
by Florian Gravo
Sun Sep 02, 2018 2:48 pm
Forum: OpenSim
Topic: Reading states in Python
Replies: 7
Views: 926

Reading states in Python

How can I inspect states from an .sto files in Pyhton, i.e. get a list or np.array containing entries from a row and get their column headers? import opensim fname = 'cmc_states.sto' sto = osim.Storage(fname) sv = sto.getStateVector(aTimeIndex=3) Or like this, where I at least could manage to read a...
by Florian Gravo
Sun Sep 02, 2018 4:46 am
Forum: OpenSim
Topic: Forward Dynamics for ModelWithSampleSimulations
Replies: 0
Views: 391

Forward Dynamics for ModelWithSampleSimulations

I'm trying to get started with OpenSim and the data provided here https://simtk.org/projects/full_body Unfortunately, the forward dynamics go crazy pretty quickly so reducing the interval as suggested in the documentation is not helping. Here are my settings, CMC results are taken from the provided ...