keenon / nimblephysics

Nimble: Physics Engine for Biomechanics and Deep Learning
http://www.nimblephysics.org
Other
403 stars 44 forks source link

CoP in B3D files doesn't match GUI or raw mot files. #213

Open TheOne-1 opened 4 months ago

TheOne-1 commented 4 months ago

I'm retrieving CoP of this trial from downloaded b3d using cop = [frame.processingPasses[0].groundContactCenterOfPressure for frame in subject.readFrames(xxx)] The retrieved anterior-posterior CoP (x-axis) values don't change along with the foot segment. However, in GUI or raw mot files it looks noisy but normal.

I looked into a few Carter dataset b3d files already and they all have this issue.

TheOne-1 commented 4 months ago

Just confirmed the CoP in opensim format is correct so it's likely to be a b3d writer issue.

Maybe look into CoP sanity check code or CoM to CoP conversion code if there is such code in the repo.

TheOne-1 commented 4 months ago

It's not caused by addb command line post-process script.