UFO 1.0.0
An Efficient Probabilistic 3D Mapping Framework That Embraces the Unknown
Loading...
Searching...
No Matches
sensor_error.hpp
1
42#ifndef UFO_MAP_INTEGRATOR_SENSOR_ERROR_HPP
43#define UFO_MAP_INTEGRATOR_SENSOR_ERROR_HPP
44
45// STL
46#include <cmath>
47
48namespace ufo
49{
51 float error_distance{};
52
53 [[nodiscard]] float operator()(float /* distance */) const { return error_distance; }
54};
55
57 float factor{};
58
59 [[nodiscard]] float operator()(float distance) const { return factor * distance; }
60};
61
63 float a = 0.002797f;
64 float b = -0.004249f;
65 float c = 0.007311f;
66
67 [[nodiscard]] float operator()(float distance) const
68 {
69 return a + b * distance + c * distance * distance;
70 }
71};
72
74 float a = 0.0005877f;
75 float b = 0.9925f;
76
77 [[nodiscard]] float operator()(float distance) const
78 {
79 return a * std::exp(b * distance);
80 }
81};
82
83static constexpr PolynomialSensorError const KinectV1ErrorFunction{0.002797f, -0.004249f,
84 0.007311};
85static constexpr ExponentialSensorError const KinectV2ErrorFunction{0.0005877f, 0.9925f};
86static constexpr ExponentialSensorError const ZEDErrorFunction{0.007437f, 0.3855f};
87} // namespace ufo
88
89#endif // UFO_MAP_INTEGRATOR_SENSOR_ERROR_HPP
All vision-related classes and functions.
Definition cloud.hpp:49
constexpr T b(Lab< T, Flags > color) noexcept
Returns the un-weighted blue–yellow axis value.
Definition lab.hpp:326
constexpr T a(Lab< T, Flags > color) noexcept
Returns the un-weighted green–red axis value.
Definition lab.hpp:310
constexpr auto distance(A const &a, B const &b)
Computes the minimum distance between two shapes.
Definition distance.hpp:61