Seek for instructions on the use of API class: storage and state

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Jack Zhao
Posts: 94
Joined: Thu Jul 24, 2014 7:15 am

Seek for instructions on the use of API class: storage and state

Post by Jack Zhao » Mon Jul 24, 2017 10:11 pm

Dear All:
Could anyone can help provide some brief codes illustrating the most common use of OpenSim API class: storage and state ?
e.g. how to get the whole state of a moving model at a time frame in simulation ? And when will the class "storage" most commonly be used during simulation ?

Thank you!

Thanks & Regards

User avatar
Thomas Uchida
Posts: 1792
Joined: Wed May 16, 2012 11:40 am

Re: Seek for instructions on the use of API class: storage and state

Post by Thomas Uchida » Mon Jul 24, 2017 10:54 pm

These examples in the Confluence documentation may be helpful:
- "API Examples": http://simtk-confluence.stanford.edu:80 ... I+Examples
- "From the Ground Up: Building a Passive Dynamic Walker Model": http://simtk-confluence.stanford.edu:80 ... lker+Model
how to get the whole state of a moving model at a time frame in simulation
It depends, in part, on what type of simulation you're performing, how the simulation is being run, and whether you need the state during the simulation or after it has completed. Hopefully the examples linked above will be helpful.
when will the class "storage" most commonly be used during simulation
Storage is typically used to load/store simulation results before/after a simulation, not for reporting during a simulation.

POST REPLY