How to export position data from the model

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Guillaume TIXIER
Posts: 1
Joined: Sat Mar 10, 2018 5:32 am

How to export position data from the model

Post by Guillaume TIXIER » Mon Jun 11, 2018 2:33 am

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

Tags:

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

Re: How to export position data from the model

Post by Thomas Uchida » Mon Jun 11, 2018 1:34 pm

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).

POST REPLY