keenon / nimblephysics

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

getForcePlates function returns an empty list. #209

Open TheOne-1 opened 3 months ago

TheOne-1 commented 3 months ago

This b3d file (and all the other files I tested) has force in many trials, but no GRF is returned by the function getForcePlates using the following code:

import nimblephysics as nimble

subject_path = '/AB06_split0.b3d' subject = nimble.biomechanics.SubjectOnDisk(subject_path) trialprotos = subject.getHeaderProto().getTrials() for trial in trialprotos: print(trial.getForcePlates())

The above code follows that provided in AddBiomechanics repo post-processing code so it should be good.