UFO 1.0.0
An Efficient Probabilistic 3D Mapping Framework That Embraces the Unknown
Loading...
Searching...
No Matches
node.hpp
1#ifndef UFO_PLAN_NODE_HPP
2#define UFO_PLAN_NODE_HPP
3
4// UFO
5#include <ufo/numeric/vec.hpp>
6#include <ufo/plan/edge.hpp>
7
8// STL
9#include <cstddef>
10#include <cstdint>
11
12namespace ufo
13{
14template <std::size_t Dim, class T>
15struct PlanNode : public Vec<Dim, T> {
16 T cost{};
17 std::uint32_t first_edge{};
18 std::uint32_t last_edge{};
19
20 PlanNode() = default;
21
22 PlanNode(Vec<Dim, T> const& position, T const& cost) : Vec<Dim, T>(position), cost(cost)
23 {
24 }
25};
26} // namespace ufo
27
28#endif // UFO_PLAN_NODE_HPP
All vision-related classes and functions.
Definition cloud.hpp:49
A fixed-size arithmetic vector of up to 4 dimensions.
Definition vec.hpp:76