Page 1 of 1

com position and body position, speed, acceleration

Posted: Sat Apr 27, 2019 9:10 am
by mmoessner
I am using a modified version of the gait2392 model.
I have a simple motion file (bodymot.mot) which describes a simple squat movement.
This file just gives the hip and knee angle for 100 time steps.

I want to output the positions, speeds, accelerations of the femur and tibia bodies
as well as the com of the whole person.

As I leared this should be possible with the Analyze Tool using the OutputReporter.
To my understanding it should be sufficient to set output_paths properly.

Is there any documentation available?
I found several postings usning python and c++, but this is of little help,
since I woulld have to learn a lot for such a solution.

Martin

p.s.: if i type in the lines

model = getCurrentModel();
state = model.initSystem();
pos = model.calcMassCenterPosition(state);
pos

in the scripting window, i get the com of the initial com position.
can this example be extended? the results would have to be printed to a file

Re: com position and body position, speed, acceleration

Posted: Thu May 02, 2019 1:04 pm
by jimmy
You can run an Analyses and include body kinematics analysis.

We don't recommend using the GUI scripting shell to write data to file.