UFO 1.0.0
An Efficient Probabilistic 3D Mapping Framework That Embraces the Unknown
Loading...
Searching...
No Matches
edge.hpp
1#ifndef UFO_PLAN_EDGE_HPP
2#define UFO_PLAN_EDGE_HPP
3
4// UFO
5#include <ufo/numeric/vec.hpp>
6
7// STL
8#include <cstddef>
9#include <cstdint>
10
11namespace ufo
12{
13template <std::size_t Dim, class T>
14struct PlanEdge {
15 T cost{};
16 T distance{};
17
18 std::uint32_t start;
19 std::uint32_t end;
20
21 PlanEdge() = default;
22
23 PlanEdge(unsigned from, unsigned to, T const& cost, T const& distance)
24 : from_(from), to_(to), cost(cost), distance(distance)
25 {
26 }
27
28 private:
29 unsigned from_;
30 unsigned to_;
31};
32} // namespace ufo
33
34#endif // UFO_PLAN_EDGE_HPP
All vision-related classes and functions.
Definition cloud.hpp:49
constexpr auto distance(A const &a, B const &b)
Computes the minimum distance between two shapes.
Definition distance.hpp:61