selfdriving
basic_types.h
Go to the documentation of this file.
1 /* -------------------------------------------------------------------------
2  * SelfDriving C++ library based on PTGs and mrpt-nav
3  * Copyright (C) 2019-2022 Jose Luis Blanco, University of Almeria
4  * See LICENSE for license information.
5  * ------------------------------------------------------------------------- */
6 
7 #pragma once
8 
9 #include <cstdint> // uint32_t
10 #include <cstdlib> // size_t
11 
12 namespace mpp
13 {
14 /** Distances measured by PoseDistanceMetric, or "pseudodistances" of PTGs, that
15  * is, distances along SE(2), including a weighted distance for rotations */
16 using distance_t = double;
17 
18 /** TPS normalized distances in range [0,1] */
19 using normalized_distance_t = double;
20 
21 /** TPS discrete time steps */
22 using ptg_step_t = uint32_t;
23 
24 /** Cost of a given trajectory or trajectory segment */
25 using cost_t = double;
26 
27 /** Index of a trajectory in a PTG */
28 using trajectory_index_t = int;
29 
30 using ptg_index_t = size_t;
31 
32 /** Normalized (or relative) speed in range [0,1] */
33 using normalized_speed_t = double;
34 
35 /** Time duration in seconds */
36 using duration_seconds_t = double;
37 
38 } // namespace mpp
double cost_t
Definition: basic_types.h:25
Definition: bestTrajectory.h:15
double duration_seconds_t
Definition: basic_types.h:36
double distance_t
Definition: basic_types.h:16
double normalized_speed_t
Definition: basic_types.h:33
size_t ptg_index_t
Definition: basic_types.h:30
int trajectory_index_t
Definition: basic_types.h:28
double normalized_distance_t
Definition: basic_types.h:19
uint32_t ptg_step_t
Definition: basic_types.h:22