Auxiliary functions header for the mtt tracking. More...
#include "mtt_common.h"

Go to the source code of this file.
Defines | |
| #define | mtic my_tictoc(1) |
| #define | mtoc my_tictoc(0) |
| #define | TIC 1 |
| #define | TOC 0 |
Functions | |
| void | ConvertEstimatedToMeasurment (double vl, double dir, float *dx, float *dy, float *dtheta, double dt, double l, double bwa) |
| void | CreateMeasurementFromDisplacement (double dx, double dy, double dtheta, double z[2], double dt, double l, double bwa) |
| double | get_fps (double dt, t_fps *acc) |
| void | init_config (t_config *config) |
| Init configuration. | |
| void | init_flags (t_flag *flags) |
| Init flags. | |
| 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. | |
| double | point2point_algebric_distance (double xi, double yi, double xf, double yf) |
| Calculates the algebric distante between two points. | |
| double | point2point_distance (double xi, double yi, double xf, double yf) |
| Calculates the distante between two points. | |
| int | timediff (struct timeval t1, struct timeval t2) |
| Calculates timediff. | |
Auxiliary functions header for the mtt tracking.
Definition in file mtt_auxiliar.h.
| #define mtic my_tictoc(1) |
Definition at line 35 of file mtt_auxiliar.h.
| #define mtoc my_tictoc(0) |
Definition at line 36 of file mtt_auxiliar.h.
| #define TIC 1 |
Definition at line 37 of file mtt_auxiliar.h.
| #define TOC 0 |
Definition at line 38 of file mtt_auxiliar.h.
| void ConvertEstimatedToMeasurment | ( | double | vl, | |
| double | dir, | |||
| float * | dx, | |||
| float * | dy, | |||
| float * | dtheta, | |||
| double | dt, | |||
| double | l, | |||
| double | bwa | |||
| ) |
| void CreateMeasurementFromDisplacement | ( | double | dx, | |
| double | dy, | |||
| double | dtheta, | |||
| double | z[2], | |||
| double | dt, | |||
| double | l, | |||
| double | bwa | |||
| ) |
| double get_fps | ( | double | dt, | |
| t_fps * | acc | |||
| ) |
Definition at line 115 of file mtt_auxiliar.cpp.
| void init_config | ( | t_config * | config | ) |
Init configuration.
| config | general configuration structure |
Definition at line 34 of file mtt_auxiliar.cpp.
| void init_flags | ( | t_flag * | flags | ) |
Init flags.
| flags | general flags structure |
Definition at line 109 of file mtt_auxiliar.cpp.
| int my_tictoc | ( | int | status | ) |
TIC TOC implementation functions.
| status | TIC or TOC |
Definition at line 148 of file mtt_auxiliar.cpp.
| double point2line_distance | ( | double | alpha, | |
| double | ro, | |||
| double | x, | |||
| double | y | |||
| ) |
Calculates the line to point distance.
| alpha | polar coordinates of the line | |
| ro | polar coordinates of the line | |
| x | cartesian coordinates of the point | |
| y |
Definition at line 65 of file line_fitting.cpp.
| double point2point_algebric_distance | ( | double | xi, | |
| double | yi, | |||
| double | xf, | |||
| double | yf | |||
| ) |
Calculates the algebric distante between two points.
| xi | ||
| yi | ||
| xf | ||
| yf |
Definition at line 174 of file mtt_auxiliar.cpp.
| double point2point_distance | ( | double | xi, | |
| double | yi, | |||
| double | xf, | |||
| double | yf | |||
| ) |
Calculates the distante between two points.
| xi | ||
| yi | ||
| xf | ||
| yf |
Definition at line 62 of file line_fitting.cpp.
| int timediff | ( | struct timeval | t1, | |
| struct timeval | t2 | |||
| ) |
Calculates timediff.
| t1 | first time | |
| t2 | second time |
Definition at line 166 of file mtt_auxiliar.cpp.