Page 1 of 1

How to export position data from the model

Posted: Mon Jun 11, 2018 2:33 am
by guillaumetixier
Hello everyone,

I animated a model with 3D markers positions data, that I collected with motion capture. Since the opensim model doesn't move exactly as the original data, I would like to export position data of the model, in order to compare the original data and the model data.

I used the plot tool (which allows me to get angular variations) but I did not figure out how to get position data from the model.

How can I get 3D position data from the model ?

Thanks for your answers,
Guillaume T

Re: How to export position data from the model

Posted: Mon Jun 11, 2018 1:34 pm
by tkuchida
If you're looking for the position and orientation of a body's center of mass relative to the Ground frame, you can try SimbodyEngine::getPosition() (https://simtk.org/api_docs/opensim/api_ ... cf11235179) and SimbodyEngine::getDirectionCosines() (https://simtk.org/api_docs/opensim/api_ ... 3df3c00efa).