load_all_measures.cpp File Reference

Functions to load all sensor data. More...

#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <curses.h>
#include <iostream>
#include <fstream>
#include "c3d.h"
#include "lowerleg_func.h"
#include "postprocess.h"
Include dependency graph for load_all_measures.cpp:
This graph shows which files directly or indirectly include this file:

Defines

#define MAXCOL   10
#define MAX_OPTI_SIZE   50
#define MAX_OPTI_LABEL   50

Functions

int load_all_measures (tibia &tib, femur &fem, vector< vector< double > > &frame_refs)
 Load all sensor data into leg structure.

Detailed Description

Functions to load all sensor data.


Define Documentation

#define MAX_OPTI_LABEL   50
#define MAX_OPTI_SIZE   50
#define MAXCOL   10

Function Documentation

int load_all_measures ( tibia tib,
femur fem,
vector< vector< double > > &  frame_refs 
)

Load all sensor data into leg structure.

load_all_measures function loads all sensor data recorded during experiments into the leg structures: tibia and femur. This function calls other postprocess functions that load respective sensor datas into the structures.

Parameters:
[in,out]tibTibia structure that contains tibial collar data and that will hold data for sensors fixed on tibia.
[in,out]femFemur structure containing femur collar data and that will hold data for sensors fixed on femur.
[in]Framereference vector (in MARIONET fixed reference system) The function will ask for the filenames containing sensor data from the user. The tib and fem structures already contain all config data.
Todo:
Adjust loading data for correct timestamp alignment.. or write a separate function to achieve that

vector containing coordinates of 3 frame reference points in optical frame of ref.

References tibia::accelerometers, tibia::accl_count, tibia::act_wire_count, calc_mario_frame_opti(), clean_opti_data(), convert_opti_to_mario(), filter_sync_passive_active(), load_active_data(), load_collar_accl_data(), load_collar_active_data(), load_collar_opti_data(), load_collar_passive_data(), load_mario_frame_opti_data(), load_opti_data(), load_passive_data(), sensor::mdata, tibia::opti_count, tibia::pass_wire_count, and sync_opti_active().

Here is the call graph for this function:

 All Data Structures Files Functions Variables Typedefs Defines