32 #ifndef _MTT_AUXILIAR_H_
33 #define _MTT_AUXILIAR_H_
35 #define mtic my_tictoc(1)
36 #define mtoc my_tictoc(0)
75 int timediff(
struct timeval t1,
struct timeval t2);
int timediff(struct timeval t1, struct timeval t2)
Calculates timediff.
int my_tictoc(int status)
TIC TOC implementation functions.
double point2line_distance(double alpha, double ro, double x, double y)
Calculates the line to point distance.
void init_flags(t_flag *flags)
Init flags.
void CreateMeasurementFromDisplacement(double dx, double dy, double dtheta, double z[2], double dt, double l, double bwa)
double point2point_algebric_distance(double xi, double yi, double xf, double yf)
Calculates the algebric distante between two points.
void ConvertEstimatedToMeasurment(double vl, double dir, float *dx, float *dy, float *dtheta, double dt, double l, double bwa)
Iterations per second structure.
double get_fps(double dt, t_fps *acc)
double point2point_distance(double xi, double yi, double xf, double yf)
Calculates the distante between two points.
This structure contains global configurations parameters.
void init_config(t_config *config)
Init configuration.
Header with common structures and includes.
This structure contains global flags parameters.