Center of Mass Trajectory using API vs. GUI
Posted: Thu Jul 01, 2021 2:50 pm
Hi everyone,
I would like to measure the trajectory of the vertical component of the center of mass for a .mot file. I have tried to do this in two ways:
1) Updating the coordinates of the model in the API for each timepoint followed by the commands:
model.assemble(state)
com_pos = model.calcMassCenterPosition(state)
v_com = com_pos[1]
2) Doing a body kinematics analysis using the analysis tool in the GUI with the same model and same .mot file.
However, I am getting different results using these two methods as seen in the graph. Should these approaches give the same results? Does the body kinematics analysis alter the kinematics in any way?
Thanks for your help!
Ty
I would like to measure the trajectory of the vertical component of the center of mass for a .mot file. I have tried to do this in two ways:
1) Updating the coordinates of the model in the API for each timepoint followed by the commands:
model.assemble(state)
com_pos = model.calcMassCenterPosition(state)
v_com = com_pos[1]
2) Doing a body kinematics analysis using the analysis tool in the GUI with the same model and same .mot file.
However, I am getting different results using these two methods as seen in the graph. Should these approaches give the same results? Does the body kinematics analysis alter the kinematics in any way?
Thanks for your help!
Ty