com position and body position, speed, acceleration

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Martin Mössner
Posts: 17
Joined: Thu Jan 17, 2019 8:40 am

com position and body position, speed, acceleration

Post by Martin Mössner » 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

Tags:

User avatar
jimmy d
Posts: 1375
Joined: Thu Oct 04, 2007 11:51 pm

Re: com position and body position, speed, acceleration

Post by jimmy d » Thu May 02, 2019 1:04 pm

You can run an Analyses and include body kinematics analysis.

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

POST REPLY