CentreOfMassFilter#

class pyCGM2.Model.modelFilters.CentreOfMassFilter(iMod: Model, btkAcq: btkAcquisition)#

Filter for computing the center of mass (CoM) trajectory of a biomechanical model.

This filter calculates the trajectory of the CoM for each segment and for the entire model.

Parameters:
  • iMod (Model) – The biomechanical model instance.

  • btkAcq (btk.btkAcquisition) – The motion acquisition data.

__init__(iMod: Model, btkAcq: btkAcquisition)#

Methods

__init__(iMod, btkAcq)

compute([pointLabelSuffix])

Compute and append the CoM trajectory to the acquisition data.

compute(pointLabelSuffix: str | None = None)#

Compute and append the CoM trajectory to the acquisition data.

Parameters:

pointLabelSuffix (Optional[str]) – An optional suffix to be added to the CoM point label.