gaitmap.utils.consts: Global constants#
Common constants used in the library.
- gaitmap.utils.consts.SF_GYR = ['gyr_x', 'gyr_y', 'gyr_z']#
The default names of the Gyroscope columns in the sensor frame
- gaitmap.utils.consts.SF_ACC = ['acc_x', 'acc_y', 'acc_z']#
The default names of the Accelerometer columns in the sensor frame
- gaitmap.utils.consts.SF_COLS = ['acc_x', 'acc_y', 'acc_z', 'gyr_x', 'gyr_y', 'gyr_z']#
The default names of all columns in the sensor frame
- gaitmap.utils.consts.BF_GYR = ['gyr_pa', 'gyr_ml', 'gyr_si']#
The default names of the Gyroscope columns in the body frame
- gaitmap.utils.consts.BF_ACC = ['acc_pa', 'acc_ml', 'acc_si']#
The default names of the Accelerometer columns in the body frame
- gaitmap.utils.consts.BF_COLS = ['acc_pa', 'acc_ml', 'acc_si', 'gyr_pa', 'gyr_ml', 'gyr_si']#
The default names of all columns in the body frame
- gaitmap.utils.consts.SL_COLS = ['start', 'end']#
The minimal required columns for a stride list
- gaitmap.utils.consts.SL_INDEX = ['s_id']#
Expected index cols for a stride list
- gaitmap.utils.consts.SL_ADDITIONAL_COLS = {'ic': ['ic', 'min_vel', 'tc'], 'min_vel': ['pre_ic', 'ic', 'min_vel', 'tc'], 'segmented': ['ic', 'min_vel', 'tc']}#
Additional Columns of a stride list depending on its type
- gaitmap.utils.consts.SL_EVENT_ORDER = {'ic': ['ic', 'min_vel', 'tc'], 'min_vel': ['pre_ic', 'min_vel', 'tc', 'ic'], 'segmented': ['tc', 'ic', 'min_vel']}#
Expected Order of events based on the stride type
- gaitmap.utils.consts.ROI_ID_COLS = {'gs': 'gs_id', 'roi': 'roi_id'}#
The allowed index columns for a regions-of-interest list
- gaitmap.utils.consts.TRAJ_TYPE_COLS = {'gs': 'gs_id', 'roi': 'roi_id', 'stride': 's_id'}#
The allowed index columns for vel, ori, and pos lists
- gaitmap.utils.consts.GF_VEL = ['vel_x', 'vel_y', 'vel_z']#
The default names of the Velocity columns in the global frame
- gaitmap.utils.consts.GF_POS = ['pos_x', 'pos_y', 'pos_z']#
The default names of the Position columns in the global frame
- gaitmap.utils.consts.GF_ORI = ['q_x', 'q_y', 'q_z', 'q_w']#
The default names of the Orientation columns in the global frame
- gaitmap.utils.consts.GF_INDEX = ['s_id', 'sample']#
The default index names for all global frame spatial paras
- gaitmap.utils.consts.GRAV = 9.81#
Gravity in m/s^2
- gaitmap.utils.consts.GRAV_VEC = array([0. , 0. , 9.81])#
The gravity vector in m/s^2 in the FSF
- gaitmap.utils.consts.FSF_FBF_CONVERSION_LEFT = {'acc_x': (1, 'acc_pa'), 'acc_y': (1, 'acc_ml'), 'acc_z': (-1, 'acc_si'), 'gyr_x': (-1, 'gyr_pa'), 'gyr_y': (-1, 'gyr_ml'), 'gyr_z': (-1, 'gyr_si')}#
Sensor to body frame conversion for the left foot
- gaitmap.utils.consts.FSF_FBF_CONVERSION_RIGHT = {'acc_x': (1, 'acc_pa'), 'acc_y': (-1, 'acc_ml'), 'acc_z': (-1, 'acc_si'), 'gyr_x': (1, 'gyr_pa'), 'gyr_y': (-1, 'gyr_ml'), 'gyr_z': (1, 'gyr_si')}#
Sensor to body frame conversion for the right foot