include
grid_map_core
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
*/
39
enum class
InterpolationMethods
{
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
grid_map::Vector3
Eigen::Vector3d Vector3
Definition:
TypeDefs.hpp:21
grid_map::InterpolationMethods::INTER_CUBIC
grid_map::Time
uint64_t Time
Definition:
TypeDefs.hpp:25
grid_map::InterpolationMethods::INTER_NEAREST
grid_map::InterpolationMethods
InterpolationMethods
Definition:
TypeDefs.hpp:39
grid_map
Definition:
BufferRegion.hpp:13
grid_map::Position
Eigen::Vector2d Position
Definition:
TypeDefs.hpp:18
grid_map::Index
Eigen::Array2i Index
Definition:
TypeDefs.hpp:22
grid_map::Size
Eigen::Array2i Size
Definition:
TypeDefs.hpp:23
grid_map::Matrix
Eigen::MatrixXf Matrix
Definition:
TypeDefs.hpp:16
grid_map::InterpolationMethods::INTER_LINEAR
grid_map::Length
Eigen::Array2d Length
Definition:
TypeDefs.hpp:24
grid_map::Position3
Eigen::Vector3d Position3
Definition:
TypeDefs.hpp:20
grid_map::DataType
Matrix::Scalar DataType
Definition:
TypeDefs.hpp:17
grid_map::InterpolationMethods::INTER_CUBIC_CONVOLUTION
grid_map::Vector
Eigen::Vector2d Vector
Definition:
TypeDefs.hpp:19
grid_map_core
Author(s): Péter Fankhauser
autogenerated on Wed Jul 5 2023 02:23:35