TypeDefs.hpp
Go to the documentation of this file.
1 /*
2  * TypeDefs.hpp
3  *
4  * Created on: March 18, 2014
5  * Author: Péter Fankhauser
6  * Institute: ETH Zurich, ANYbotics
7  */
8 
9 // Eigen
10 #pragma once
11 
12 #include <Eigen/Core>
13 
14 namespace grid_map {
15 
16  using Matrix = Eigen::MatrixXf;
17  using DataType = Matrix::Scalar;
18  using Position = Eigen::Vector2d;
19  using Vector = Eigen::Vector2d;
20  using Position3 = Eigen::Vector3d;
21  using Vector3 = Eigen::Vector3d;
22  using Index = Eigen::Array2i;
23  using Size = Eigen::Array2i;
24  using Length = Eigen::Array2d;
25  using Time = uint64_t;
26 
27  /*
28  * Interpolations are ordered in the order
29  * of increasing accuracy and computational complexity.
30  * INTER_NEAREST - fastest, but least accurate,
31  * INTER_CUBIC - slowest, but the most accurate.
32  * see:
33  * https://en.wikipedia.org/wiki/Bicubic_interpolation
34  * https://web.archive.org/web/20051024202307/http://www.geovista.psu.edu/sites/geocomp99/Gc99/082/gc_082.htm
35  * for more info. Cubic convolution algorithm is also known as piecewise cubic
36  * interpolation and in general does not guarantee continuous
37  * first derivatives.
38  */
40  INTER_NEAREST, // nearest neighbor interpolation
41  INTER_LINEAR, // bilinear interpolation
42  INTER_CUBIC_CONVOLUTION, //piecewise bicubic interpolation using convolution algorithm
43  INTER_CUBIC // standard bicubic interpolation
44  };
45 
46 } // namespace grid_map
47 
Eigen::Vector3d Vector3
Definition: TypeDefs.hpp:21
uint64_t Time
Definition: TypeDefs.hpp:25
InterpolationMethods
Definition: TypeDefs.hpp:39
Eigen::Vector2d Position
Definition: TypeDefs.hpp:18
Eigen::Array2i Index
Definition: TypeDefs.hpp:22
Eigen::Array2i Size
Definition: TypeDefs.hpp:23
Eigen::MatrixXf Matrix
Definition: TypeDefs.hpp:16
Eigen::Array2d Length
Definition: TypeDefs.hpp:24
Eigen::Vector3d Position3
Definition: TypeDefs.hpp:20
Matrix::Scalar DataType
Definition: TypeDefs.hpp:17
Eigen::Vector2d Vector
Definition: TypeDefs.hpp:19


grid_map_core
Author(s): Péter Fankhauser
autogenerated on Wed Jul 5 2023 02:23:35