UFO 1.0.0
An Efficient Probabilistic 3D Mapping Framework That Embraces the Unknown
Loading...
Searching...
No Matches
utility.hpp
1
42#ifndef UFO_MAP_UTILITY_HPP
43#define UFO_MAP_UTILITY_HPP
44
45// UFO
46#include <ufo/utility/enum.hpp>
47
48// STL
49#include <cstdint>
50
51namespace ufo
52{
53enum class MapUtility : std::uint64_t {
54 NONE = std::uint64_t(0),
55 WITH_CENTER = std::uint64_t(1) << 0,
56 // MANUAL_MODIFIED = std::uint64_t(1) << 1,
57 // MANUAL_LOCKING = std::uint64_t(1) << 2,
58 // SNAPSHOT = std::uint64_t(1) << 3,
59};
60
61[[nodiscard]] constexpr MapUtility operator|(MapUtility a, MapUtility b) noexcept
62{
63 return MapUtility(to_underlying(a) | to_underlying(b));
64}
65
66[[nodiscard]] constexpr MapUtility operator&(MapUtility a, MapUtility b) noexcept
67{
68 return MapUtility(to_underlying(a) & to_underlying(b));
69}
70} // namespace ufo
71
72#endif // UFO_MAP_TREE_MAP_UTILITY_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