applyRotation#

pyCGM2.Tools.btkTools.applyRotation(acq: btkAcquisition, markers: List[str], globalFrameOrientation: str, forwardProgression: bool)#

Applies a rotation to the specified markers in the acquisition based on the global frame orientation.

Parameters:
  • acq (btk.btkAcquisition) – BTK acquisition instance.

  • markers (List[str]) – List of marker names to apply rotation to.

  • globalFrameOrientation (str) – Orientation of the global frame (e.g., ‘XYZ’ for X:longitudinal, Y:transversal, Z:vertical).

  • forwardProgression (bool) – Indicates if progression is along the positive axis of the frame.

Returns:

None – The function directly modifies the acquisition object.