run_analysis.C File Reference

#include <iostream>
#include <vector>
#include <cmath>
#include <cstdlib>
#include "route.H"
#include "util.H"
#include "conf.H"

Classes

struct  data_instance_t
class  heading_error_analysis_t
class  xtrack_error_analysis_t

Defines

#define R2D   (180 / M_PI)
#define D2R   (M_PI/ 180)

Typedefs

typedef vector< data_instance_trun_data_t

Functions

bool read_conf (conf_t &conf_)
double interp (double prev_tstamp, double next_tstamp, double tstamp, double prev_value, double next_value)
int closest (double prev_tstamp, double next_tstamp, double tstamp, int prev_value, int next_value)
void read_heading_data (run_data_t &run_data, const char *heading_file_)
void read_sog_data (run_data_t &run_data, const char *sog_file_)
void read_waypoint_data (run_data_t &run_data, const char *waypt_file_)
void read_run_data (run_data_t &run_data, const char *nav_file_, const char *heading_file_, const char *waypt_file_, const char *sog_file_)
void print_run_data (const run_data_t &run_data)
double convert_steering_command (unsigned value_)
double convert_steering_angle (unsigned value_)
void read_aevit_data (const char *aevit_file_, const char *steering_file_)
void print_route_heading (route_t const &route)
void print_usage ()
int main (int argc, char **argv)

Variables

double stop_speed = 0.1
unsigned steering_min
unsigned steering_max
unsigned throttle_min
unsigned throttle_max
double min_wheel_angle
double max_wheel_angle

Define Documentation

#define D2R   (M_PI/ 180)

Referenced by read_heading_data().

#define R2D   (180 / M_PI)

Typedef Documentation

typedef vector<data_instance_t> run_data_t

Function Documentation

int closest ( double  prev_tstamp,
double  next_tstamp,
double  tstamp,
int  prev_value,
int  next_value 
)

Referenced by read_waypoint_data().

double convert_steering_angle ( unsigned  value_  ) 
double convert_steering_command ( unsigned  value_  ) 

References steering_max, and steering_min.

double interp ( double  prev_tstamp,
double  next_tstamp,
double  tstamp,
double  prev_value,
double  next_value 
)

Referenced by read_heading_data(), and read_sog_data().

int main ( int  argc,
char **  argv 
)
void print_route_heading ( route_t const &  route  ) 

References R2D.

Referenced by main().

void print_run_data ( const run_data_t run_data  ) 
void print_usage (  ) 

Referenced by main().

void read_aevit_data ( const char *  aevit_file_,
const char *  steering_file_ 
)

References convert_steering_angle().

Referenced by main().

bool read_conf ( conf_t &  conf_  ) 
void read_heading_data ( run_data_t run_data,
const char *  heading_file_ 
)

References D2R, and interp().

Referenced by read_run_data().

void read_run_data ( run_data_t run_data,
const char *  nav_file_,
const char *  heading_file_,
const char *  waypt_file_,
const char *  sog_file_ 
)
void read_sog_data ( run_data_t run_data,
const char *  sog_file_ 
)

References interp().

Referenced by read_run_data().

void read_waypoint_data ( run_data_t run_data,
const char *  waypt_file_ 
)

References closest().

Referenced by read_run_data().


Variable Documentation

unsigned steering_max
unsigned steering_min
double stop_speed = 0.1

Referenced by main().

unsigned throttle_max

Referenced by read_conf().

unsigned throttle_min

Referenced by read_conf().


Generated on Fri Apr 9 10:45:12 2010 for Loganalysis by  doxygen 1.6.1