Master Thesis Code
by Simon Moser
Loading...
Searching...
No Matches
process_participant.m File Reference

Go to the source code of this file.

Functions

function process_participant (in basepath, in ptp, in options)
 preprocess and filter the data of a single participant
 

Function Documentation

◆ process_participant()

function process_participant ( in basepath,
in ptp,
in options )

preprocess and filter the data of a single participant

this function preprocesses the data of a single participant. is is written in specific for the SonEMS study participants. the following steps are executed:

  • load the VICON data
  • load the Zurich Move data
  • load the gait summary data
  • create ground truth positions from the VICON data, i.e. estimate the position of the JUMP sensor based on the VICON markers
  • determine the walking axes
  • determine the walking speed
  • accumulate the distance based on the walking speed
  • align the IMU data with the VICON data
  • find the yaw of the IMU data
  • filter the data
Parameters
basepath(string) the basepath of the data, e.g. "D:/ETH_Data/"
ptp(string) the participant to process, e.g. "SonE_01"
optionsthe options for the processing:
  • GT_POS: (logical) create ground truth positions from the VICON data
  • FIND_WALKING_AXES: (logical) determine the walking axes
  • FIND_WALKING_SPEED: (logical) determine the walking speed
  • ACCUMULATE_DIST: (logical) accumulate the distance based on the walking speed
  • ALIGN_IMU_VICON: (logical) align the IMU data with the VICON data
  • FIND_YAW: (logical) find the yaw of the IMU data
  • FILTER: (logical) filter the data
  • ekf_tuning_file: (string) the file with the tuning parameters for the EKF, see EKF1::importTuning()
Return values
none
Note
the tasks to do which can be set in the options are used to ensure that a task is redone, even if it has been done before, e.g. if filter parameters were changed. if a task is not done yet, it will be executed regardless of the options.