Hi
I use the model to simulate postural control.
I want to get the position of segments in ground axis using storage, after the simulations.
I know that I can get ones using the function transformposition() in simulation, but I don't know how to obtain ones from storage.
Storage has values of each joints.
Can I record the segments position in storage? or calculate ones from storage using some functions?
Best regards,
Omura
How to get the position (and angle) of segments in ground using storage
- Yuichiro Omura
- Posts: 44
- Joined: Thu Apr 04, 2019 10:03 pm
- Thomas Uchida
- Posts: 1794
- Joined: Wed May 16, 2012 11:40 am
Re: How to get the position (and angle) of segments in ground using storage
The easiest strategy (depending on how you are performing your simulation) might be to use an OutputReporter (https://simtk.org/api_docs/opensim/api_ ... orter.html) to record the position of each body segment relative to ground. The relevant output can be found in the Body class documentation (https://simtk.org/api_docs/opensim/api_ ... 1Body.html) under the heading "OpenSim Properties, Sockets, Outputs, Inputs inherited from OpenSim::Frame"; the output is named "position".
- Yuichiro Omura
- Posts: 44
- Joined: Thu Apr 04, 2019 10:03 pm
Re: How to get the position (and angle) of segments in ground using storage
Thank you for your quick response!
I could record the positions and refer to these.
PS
I found out that I can also record the position to storage using the function about analysisset by referring the URL.
Thanks.
I could record the positions and refer to these.
PS
I found out that I can also record the position to storage using the function about analysisset by referring the URL.
Thanks.