pyCGM_Single.pycgmStatic.getStatic¶
-
pyCGM_Single.pycgmStatic.
getStatic
(motionData, vsk, flat_foot=False, GCS=None)¶ Get Static Offset function
Calculate the static offset angle values and return the values in radians
- Parameters
- motionDatadict
Dictionary of marker lists.
- vskdict, optional
Dictionary of various attributes of the skeleton.
- flat_footboolean, optional
A boolean indicating if the feet are flat or not. The default value is False.
- GCSarray, optional
An array containing the Global Coordinate System. If not provided, the default will be set to: [[1, 0, 0], [0, 1, 0], [0, 0, 1]].
- Returns
- calSMdict
Dictionary containing various marker lists of offsets.
Examples
>>> from .pycgmIO import loadC3D, loadVSK >>> from .pycgmStatic import getStatic >>> import os >>> from .pyCGM_Helpers import getfilenames >>> fileNames=getfilenames(2) >>> c3dFile = fileNames[1] >>> vskFile = fileNames[2] >>> result = loadC3D(c3dFile) >>> data = result[0] >>> vskData = loadVSK(vskFile, False) >>> result = getStatic(data,vskData,flat_foot=False) >>> result['Bodymass'] 75.0 >>> result['RightKneeWidth'] 105.0 >>> result['LeftTibialTorsion'] 0.0