com position and body position, speed, acceleration
Posted: Sat Apr 27, 2019 9:10 am
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
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