ForcePlateAssemblyFilter#

class pyCGM2.Model.modelFilters.ForcePlateAssemblyFilter(iMod: Model, btkAcq: btkAcquisition, mappedForcePlateLetters: str, leftSegmentLabel: str = 'Left Foot', rightSegmentLabel: str = 'Right Foot')#

Assemble force plates with the model for dynamic trials.

This filter associates force plates with specified segments of the model during dynamic trials. It calculates ground reaction forces and moments and appends them to the acquisition instance. The association is based on mapped force plate letters indicating the body side in contact with the force plates.

Parameters:
  • iMod (Model) – A model instance.

  • btkAcq (btk.btkAcquisition) – An acquisition instance of a dynamic trial.

  • mappedForcePlateLetters (str) – String indicating body side of the segment in contact with the force plate.

  • leftSegmentLabel (str, optional) – Left segment label to assemble with force plates. Defaults to “Left Foot”.

  • rightSegmentLabel (str, optional) – Right segment label to assemble with force plates. Defaults to “Right Foot”.

__init__(iMod: Model, btkAcq: btkAcquisition, mappedForcePlateLetters: str, leftSegmentLabel: str = 'Left Foot', rightSegmentLabel: str = 'Right Foot')#

Methods

__init__(iMod, btkAcq, mappedForcePlateLetters)

compute([pointLabelSuffix])

Run the filter to associate force plates with model segments.

compute(pointLabelSuffix: str | None = None)#

Run the filter to associate force plates with model segments.

Calculates ground reaction forces and moments and appends them to the acquisition instance.

Parameters:

pointLabelSuffix (Optional[str], optional) – Suffix to append to the ground reaction force and moment labels.