foot-pressure.h File Reference

Header file to define data type for foot pressure sensor. More...

#include <time.h>
#include <string>
#include <vector>
Include dependency graph for foot-pressure.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  foot_sens
 Structure containing foot pressure sensor data. More...

Functions

int get_month_no (string month)
int read_foot_pres_movie (char *filename, struct foot_sens &foot_movie)
 Read in-shoe pressure data from sensors, pressure distribution for all frames.
double press_frame_timestamp (int frameno, double sec_per_frame, struct tm readtime)
 Returns the timestamp when frame was recorded.
int read_foot_press_head (ifstream &infile, struct foot_sens &foot_movie)
int read_foot_press_cof (char *filename, struct foot_sens &footcof)
 Read in-shoe pressure data - center of force coordinates in pixel location.
int read_foot_pressures (char *filename, struct foot_sens &footpres)
 Read contact pressure values exported from Graph Objects.
int read_foot_forces (char *filename, struct foot_sens &footfor)
 Read force values exported from Graph Objects.

Detailed Description

Header file to define data type for foot pressure sensor.


Function Documentation

int get_month_no ( string  month)

Referenced by read_foot_press_head().

Here is the caller graph for this function:

double press_frame_timestamp ( int  frameno,
double  sec_per_frame,
struct tm  readtime 
)

Returns the timestamp when frame was recorded.

Since the frames are recorded at known frequency, and the timestamp of the first frame is recorded, this function outputs the timestamp (as seconds passed since Epoch) based on the frame number.

Parameters:
[in]framenoThe index number of the frame. ie Actual Frame number-1 (since Frame one is stored as mdata[0][][] and so on).
[in]secs_per_frameThe seconds per frame. It is obtained from the specific member of the foot_sens structure.
[in]readtimeThe tm structure that holds timestamp data.
Returns:
The seconds passed since Epoch until the particular frame
int read_foot_forces ( char *  filename,
struct foot_sens footfor 
)

Read force values exported from Graph Objects.

References foot_sens::for_data, read_foot_press_head(), and foot_sens::tot_frames.

Here is the call graph for this function:

int read_foot_pres_movie ( char *  filename,
struct foot_sens foot_movie 
)

Read in-shoe pressure data from sensors, pressure distribution for all frames.

Reads files of type *.asf. Loads pressure distribution over all sensels.

References foot_sens::mdata, foot_sens::num_cols, foot_sens::num_rows, read_foot_press_head(), and foot_sens::tot_frames.

Here is the call graph for this function:

int read_foot_press_cof ( char *  filename,
struct foot_sens footcof 
)

Read in-shoe pressure data - center of force coordinates in pixel location.

The function reads files of type *.asc, which contain the location of the center of force on the foot. The co-ordinates of the center of force are expressed as the row and column number of the sensels. The exact physical location can be calculation using the row spacing and column spacing information that is contained in the file.

Returns:
0 on success.

References foot_sens::cof_data, read_foot_press_head(), and foot_sens::tot_frames.

Here is the call graph for this function:

int read_foot_press_head ( ifstream &  infile,
struct foot_sens foot_movie 
)

Referenced by read_foot_forces(), read_foot_pres_movie(), read_foot_press_cof(), and read_foot_pressures().

Here is the caller graph for this function:

int read_foot_pressures ( char *  filename,
struct foot_sens footpres 
)

Read contact pressure values exported from Graph Objects.

References foot_sens::pres_data, read_foot_press_head(), and foot_sens::tot_frames.

Here is the call graph for this function:

 All Data Structures Files Functions Variables Typedefs Defines