21#ifndef NAVMAP_CORE__NAVMAP_HPP
22#define NAVMAP_CORE__NAVMAP_HPP
43#include <unordered_map>
85 inline size_t size()
const {
return x.size();}
95 return {
x[id],
y[id],
z[id]};
106 std::vector<uint8_t>
r;
107 std::vector<uint8_t>
g;
108 std::vector<uint8_t>
b;
109 std::vector<uint8_t>
a;
136 virtual const std::string &
name()
const = 0;
139 virtual size_t size()
const = 0;
175 const std::string &
name()
const override {
return name_;}
203inline std::uint64_t fnv1a64_bytes(
204 const void * data, std::size_t n,
205 std::uint64_t seed = 1469598103934665603ULL)
207 const auto * p =
static_cast<const std::uint8_t *
>(data);
208 std::uint64_t h = seed;
209 for (std::size_t i = 0; i < n; ++i) {
210 h ^= p[i]; h *= 1099511628211ULL;
221 const std::size_t n =
data_.size();
222 std::uint64_t h = navmap::detail::fnv1a64_bytes(&n,
sizeof(n));
224 static_assert(std::is_trivially_copyable<T>::value,
225 "LayerView<T> requires trivially copyable T.");
226 h = navmap::detail::fnv1a64_bytes(
data_.data(), n *
sizeof(T), h);
256 const std::string & name,
260 auto it = layers_.find(name);
261 if (it != layers_.end()) {
262 return std::dynamic_pointer_cast<LayerView<T>>(it->second);
264 auto view = std::make_shared<LayerView<T>>(name, nitems, type);
265 layers_[name] = view;
274 std::shared_ptr<LayerViewBase>
get(
const std::string & name)
const
276 auto it = layers_.find(name);
277 return it == layers_.end() ? nullptr : it->second;
284 std::vector<std::string>
list()
const
286 std::vector<std::string> out;
287 out.reserve(layers_.size());
288 for (
const auto & kv : layers_) {
289 out.push_back(kv.first);
300 return layers_.erase(name) > 0;
312 for (
auto & kv : layers_) {
314 v->data_.resize(nitems);
315 kv.second->mark_dirty();
319 v->data_.resize(nitems);
320 kv.second->mark_dirty();
324 v->data_.resize(nitems);
325 kv.second->mark_dirty();
332 std::unordered_map<std::string, std::shared_ptr<LayerViewBase>> layers_;
363 Eigen::Vector3f
normal{0.0f, 0.0f, 1.0f};
366 std::numeric_limits<uint32_t>::max(),
367 std::numeric_limits<uint32_t>::max(),
368 std::numeric_limits<uint32_t>::max()
528 return {
navcels[cid].neighbor[0],
543 const Eigen::Vector3f & o,
544 const Eigen::Vector3f & d,
547 Eigen::Vector3f & hit_pt)
const;
556 const std::vector<Ray> & rays,
557 std::vector<RayHit> & out,
558 bool first_hit_only =
true)
const;
606 const Eigen::Vector3f & p_world,
607 size_t & surface_idx,
609 Eigen::Vector3f & bary,
610 Eigen::Vector3f * hit_pt)
const;
629 const Eigen::Vector3f & p_world,
630 size_t & surface_idx,
632 Eigen::Vector3f & bary,
633 Eigen::Vector3f * hit_pt,
651 const Eigen::Vector3f & p_world,
652 size_t & surface_idx,
654 Eigen::Vector3f & closest_point,
656 int restrict_surface = -1)
const;
682 uint32_t
add_vertex(
const Eigen::Vector3f & p);
717 const std::string & name,
718 const std::string & description = {},
719 const std::string & unit = {},
720 T default_value = T{})
723 if (v->data().size() !=
navcels.size()) {
724 v->data().assign(
navcels.size(), default_value);
726 layer_meta[name] = LayerMeta{description, unit,
true};
731 bool has_layer(
const std::string & name)
const;
734 std::size_t
layer_size(
const std::string & name)
const;
750 if (
static_cast<size_t>(cid) < view->data().size()) {
751 view->data()[cid] = value;
775 if (
auto view = std::dynamic_pointer_cast<
LayerView<T>>(base)) {
776 const auto & buf = view->data();
777 if (
static_cast<size_t>(cid) < buf.size()) {
785 if (
auto base =
layers.get(name)) {
786 if (
auto v8 = std::dynamic_pointer_cast<LayerView<uint8_t>>(base)) {
787 const auto & buf = v8->data();
788 if (
static_cast<size_t>(cid) >= buf.size()) {
return def;}
789 v =
static_cast<double>(buf[cid]);
790 }
else if (
auto vf = std::dynamic_pointer_cast<LayerView<float>>(base)) {
791 const auto & buf = vf->data();
792 if (
static_cast<size_t>(cid) >= buf.size()) {
return def;}
793 v =
static_cast<double>(buf[cid]);
794 }
else if (
auto vd = std::dynamic_pointer_cast<LayerView<double>>(base)) {
795 const auto & buf = vd->data();
796 if (
static_cast<size_t>(cid) >= buf.size()) {
return def;}
805 if constexpr (std::is_floating_point_v<T>) {
806 return static_cast<T
>(v);
807 }
else if constexpr (std::is_integral_v<T>) {
809 double hi =
static_cast<double>(std::numeric_limits<T>::max());
810 double vv = v < lo ? lo : (v > hi ? hi : v);
811 return static_cast<T
>(std::llround(vv));
813 static_assert(
sizeof(T) == 0,
"Unsupported layer type");
822 std::optional<LayerMeta>
get_layer_meta(
const std::string & name)
const;
840 const std::string & name,
841 const Eigen::Vector3f & p_world,
842 double def = std::numeric_limits<double>::quiet_NaN())
const;
855 std::fill(view->data().begin(), view->data().end(), value);
870 bool layer_copy(
const std::string & src,
const std::string & dst)
878 auto src_base =
layers.get(src);
879 auto src_view = std::dynamic_pointer_cast<LayerView<T>>(src_base);
892 if (src_view->data().size() != dst_view->data().size()) {
897 if (!src_view->data().empty() &&
898 src_view->data().data() == dst_view->data().data())
904 const bool same_hash = (src_view->content_hash() == dst_view->content_hash());
910 dst_view->set_data(src_view->data());
932 const std::string & name,
933 const std::string & description,
934 const std::string & unit,
935 const std::string & src_layer)
938 if (dst->data().size() !=
navcels.size()) {
939 dst->data().assign(
navcels.size(), T{});
951 const std::size_t n = dst->size();
952 for (
NavCelId cid = 0; cid < n; ++cid) {
953 double v =
layer_get<double>(src_layer, cid, std::numeric_limits<double>::quiet_NaN());
954 if (std::isnan(v)) {v = 0.0;}
956 if constexpr (std::is_floating_point_v<T>) {
957 dst->data()[cid] =
static_cast<T
>(v);
958 }
else if constexpr (std::is_integral_v<T>) {
960 double hi =
static_cast<double>(std::numeric_limits<T>::max());
961 if (v < lo) {v = lo;}
962 if (v > hi) {v = hi;}
963 dst->data()[cid] =
static_cast<T
>(std::llround(v));
965 static_assert(
sizeof(T) == 0,
"Unsupported layer type");
979 const Eigen::Vector3f & p_world,
980 std::size_t & surface_idx,
982 Eigen::Vector3f & bary,
983 Eigen::Vector3f * hit_pt,
984 const LocateOpts & opts)
const;
1003 template<
typename T>
1005 const Eigen::Vector3f & p_world,
1007 const std::string & layer_name,
1015 std::size_t surface_idx = 0;
1017 Eigen::Vector3f bary{};
1018 Eigen::Vector3f hit_pt{};
1019 if (!
locate_navcel(p_world, surface_idx, start_cid, bary, &hit_pt)) {
1023 const float cx = hit_pt.x();
1024 const float cy = hit_pt.y();
1027 auto existing =
layers.get(layer_name);
1036 if (layer->data().size() !=
navcels.size()) {
1037 const_cast<std::vector<T> &
>(layer->data()).resize(
navcels.size(), T{});
1041 const float minx = cx - half, maxx = cx + half;
1042 const float miny = cy - half, maxy = cy + half;
1045 auto tri_aabb_intersects_box = [&](
NavCelId cid) ->
bool {
1046 const auto & tri =
navcels[
static_cast<std::size_t
>(cid)];
1053 const float tminx = std::min({p0.x(), p1.x(), p2.x()});
1054 const float tmaxx = std::max({p0.x(), p1.x(), p2.x()});
1055 const float tminy = std::min({p0.y(), p1.y(), p2.y()});
1056 const float tmaxy = std::max({p0.y(), p1.y(), p2.y()});
1057 if (tmaxx < minx || tminx > maxx || tmaxy < miny || tminy > maxy) {
1063 auto inside_area = [&](
const Eigen::Vector3f & c) ->
bool {
1064 const float dx = c.x() - cx;
1065 const float dy = c.y() - cy;
1067 return (dx * dx + dy * dy) <= r2;
1069 return (std::abs(dx) <= half) && (std::abs(dy) <= half);
1073 std::vector<char> visited(
navcels.size(), 0);
1074 std::deque<NavCelId> q;
1075 q.push_back(start_cid);
1076 visited[
static_cast<std::size_t
>(start_cid)] = 1;
1078 auto & data = layer->mutable_data();
1080 while (!q.empty()) {
1081 const NavCelId cid = q.front(); q.pop_front();
1083 if (!tri_aabb_intersects_box(cid)) {
1088 if (inside_area(c)) {
1089 data[
static_cast<std::size_t
>(cid)] = value;
1093 const std::size_t nidx =
static_cast<std::size_t
>(ncid);
1094 if (nidx <
navcels.size() && !visited[nidx] && tri_aabb_intersects_box(ncid)) {
1106 void ensure_geometry_fingerprint_()
const;
1107 static std::uint64_t hash_geometry_bytes_(
1108 const float *x, std::size_t nx,
1109 const float *y, std::size_t ny,
1110 const float *z, std::size_t nz,
1111 const std::uint32_t *v0, std::size_t nv0,
1112 const std::uint32_t *v1, std::size_t nv1,
1113 const std::uint32_t *v2, std::size_t nv2);
1115 mutable bool geometry_dirty_{
true};
1116 mutable std::uint64_t geometry_fp_{0};
1124 void build_surface_bvh(Surface & s);
1136 bool surface_raycast(
1138 const Eigen::Vector3f & o,
1139 const Eigen::Vector3f & d,
1142 Eigen::Vector3f & hit_pt)
const;
1154 bool locate_by_walking(
1156 const Eigen::Vector3f & p,
1158 Eigen::Vector3f & bary,
1159 Eigen::Vector3f * hit_pt,
1160 float planar_eps)
const;
1172 bool surface_closest_navcel(
1174 const Eigen::Vector3f & p,
1176 Eigen::Vector3f & q,
1177 float & best_sq)
const;
1182 const Eigen::Vector3f & p_world,
1183 size_t & surface_idx,
1185 Eigen::Vector3f & bary,
1186 Eigen::Vector3f * hit_pt)
const
Low-level geometry utilities for NavMap cells (triangles), AABB and basic queries such as ray-triangl...
NavMap()
Copy constructor: deep copy of geometry, surfaces, layers and metadata.
Definition NavMap.cpp:47
Registry of named layers (per-NavCel).
Definition NavMap.hpp:240
bool remove(const std::string &name)
Remove a layer by name.
Definition NavMap.hpp:298
void resize_all(size_t nitems)
Resize all known typed layers to nitems.
Definition NavMap.hpp:310
std::shared_ptr< LayerViewBase > get(const std::string &name) const
Get an existing layer by name (untyped view).
Definition NavMap.hpp:274
std::vector< std::string > list() const
List layer names currently in the registry.
Definition NavMap.hpp:284
std::shared_ptr< LayerView< T > > add_or_get(const std::string &name, size_t nitems, LayerType type)
Add a new typed layer or return an existing one with the same name.
Definition NavMap.hpp:255
std::array< NavCelId, 3 > get_neighbors(NavCelId cid) const
Return the three neighbor NavCel ids of triangle cid.
Definition NavMap.hpp:526
Surface create_surface_obj(const std::string &frame_id) const
Create a standalone Surface object (not yet added to the map).
Definition NavMap.cpp:843
void raycast_many(const std::vector< Ray > &rays, std::vector< RayHit > &out, bool first_hit_only=true) const
Batched raycast.
Definition NavMap.cpp:468
void add_navcel_to_surface(std::size_t surface_index, NavCelId cid)
Add an existing nav cell id to a surface.
Definition NavMap.cpp:884
Eigen::Vector3f navcel_centroid(NavCelId cid) const
Triangle centroid (computed on the fly).
Definition NavMap.cpp:891
bool layer_copy(const std::string &src, const std::string &dst)
Copy values from one layer into another.
Definition NavMap.hpp:870
LayerRegistry layers
Per-NavCel layers (runtime registry)
Definition NavMap.hpp:471
std::vector< NavCel > navcels
All triangles (global indexing)
Definition NavMap.hpp:469
NavCelId add_navcel(uint32_t v0, uint32_t v1, uint32_t v2)
Append a triangle (NavCel) and return its id.
Definition NavMap.cpp:877
bool remove_surface(std::size_t surface_index)
Remove a Surface by index.
Definition NavMap.cpp:862
bool locate_navcel_core(const Eigen::Vector3f &p_world, std::size_t &surface_idx, NavCelId &cid, Eigen::Vector3f &bary, Eigen::Vector3f *hit_pt, const LocateOpts &opts) const
Forward to the existing low-level locator (implemented in .cpp).
Definition NavMap.cpp:595
std::optional< Colors > colors
Optional per-vertex colors.
Definition NavMap.hpp:468
std::shared_ptr< LayerView< T > > add_layer(const std::string &name, const std::string &description, const std::string &unit, const std::string &src_layer)
Create (or get) a typed per-NavCel layer, initialized from another layer.
Definition NavMap.hpp:931
bool locate_navcel(const Eigen::Vector3f &p_world, size_t &surface_idx, NavCelId &cid, Eigen::Vector3f &bary, Eigen::Vector3f *hit_pt) const
Locate the triangle under / near a world point (convenience).
Definition NavMap.hpp:1181
std::string layer_type_name(const std::string &name) const
Human-readable type name for a layer ("float", "double", "uint8", ...).
Definition NavMap.cpp:1024
std::size_t add_surface(const Surface &s)
Append an existing Surface (by value).
Definition NavMap.cpp:850
bool has_same_geometry(const NavMap &other) const
Fast check for identical geometry (vertices and NavCel indices).
Definition NavMap.cpp:105
double sample_layer_at(const std::string &name, const Eigen::Vector3f &p_world, double def=std::numeric_limits< double >::quiet_NaN()) const
Sample a per-NavCel layer at a world position.
Definition NavMap.cpp:1049
void layer_clear(const std::string &name, T value=T{})
Reset all values in a layer to a given value.
Definition NavMap.hpp:852
std::vector< NavCelId > navcel_neighbors(NavCelId cid) const
Return up to 3 neighbor cell ids (skips invalid entries).
Definition NavMap.cpp:900
bool set_area(const Eigen::Vector3f &p_world, T value, const std::string &layer_name, AreaShape shape, float size)
Set a per-NavCel layer to a constant value over a 2D area.
Definition NavMap.hpp:1004
uint32_t add_vertex(const Eigen::Vector3f &p)
Append a vertex and return its index.
Definition NavMap.cpp:869
std::vector< Surface > surfaces
Surfaces (partitions of navcels)
Definition NavMap.hpp:470
std::shared_ptr< LayerView< T > > add_layer(const std::string &name, const std::string &description={}, const std::string &unit={}, T default_value=T{})
Create (or get) a typed per-NavCel layer with a default value.
Definition NavMap.hpp:716
bool closest_navcel(const Eigen::Vector3f &p_world, size_t &surface_idx, NavCelId &cid, Eigen::Vector3f &closest_point, float &sqdist, int restrict_surface=-1) const
Find the closest triangle to a point.
Definition NavMap.cpp:777
void mark_vertex_updated(PointId)
Mark a vertex as updated (reserved for future cache invalidation).
Definition NavMap.hpp:519
T navcel_value(NavCelId cid, const LayerView< T > &layer) const
Read the value of a typed per-NavCel layer at triangle cid.
Definition NavMap.hpp:570
std::vector< std::string > list_layers() const
List all layer names currently stored.
Definition NavMap.cpp:1044
std::optional< LayerMeta > get_layer_meta(const std::string &name) const
Return metadata for a layer if present (implementation-defined).
Definition NavMap.cpp:1037
NavMap & operator=(const NavMap &other)
Copy assignment optimized to avoid geometry duplication.
Definition NavMap.cpp:121
bool locate_navcel(const Eigen::Vector3f &p_world, size_t &surface_idx, NavCelId &cid, Eigen::Vector3f &bary, Eigen::Vector3f *hit_pt, const LocateOpts &opts) const
Locate the triangle under / near a world point.
Positions positions
Vertex positions (SoA)
Definition NavMap.hpp:467
void layer_set(const std::string &name, NavCelId cid, T value)
Set a per-cell value (creates/retypes the layer if needed).
Definition NavMap.hpp:747
std::size_t create_surface(std::string frame_id)
Create a new empty Surface and append it to the map.
Definition NavMap.cpp:836
void build_adjacency()
Build topological adjacency between neighboring NavCels.
Definition NavMap.cpp:227
bool has_layer(const std::string &name) const
Check whether a layer named name exists.
Definition NavMap.cpp:1013
NavMap()
Copy constructor: deep copy of geometry, surfaces, layers and metadata.
Definition NavMap.cpp:47
std::size_t layer_size(const std::string &name) const
Number of entries in a layer (should equal navcels.size()).
Definition NavMap.cpp:1018
bool raycast(const Eigen::Vector3f &o, const Eigen::Vector3f &d, NavCelId &hit_cid, float &t, Eigen::Vector3f &hit_pt) const
Raycast against all surfaces to find the closest hit.
Definition NavMap.cpp:434
void rebuild_geometry_accels()
Recompute derived geometry and acceleration structures.
Definition NavMap.cpp:354
T layer_get(const std::string &name, NavCelId cid, T def=T{}) const
Get a per-cell value as the requested type.
Definition NavMap.hpp:772
std::unordered_map< std::string, LayerMeta > layer_meta
Optional metadata per layer.
Definition NavMap.hpp:472
Definition Geometry.hpp:39
constexpr LayerType layer_type_tag< double >()
Definition NavMap.hpp:440
constexpr LayerType layer_type_tag< uint8_t >()
Definition NavMap.hpp:438
LayerType
Runtime type tag for a layer's scalar storage.
Definition NavMap.hpp:121
@ F64
Definition NavMap.hpp:121
@ F32
Definition NavMap.hpp:121
@ U8
Definition NavMap.hpp:121
AreaShape
Shape selector for area-writing APIs.
Definition NavMap.hpp:445
@ RECTANGULAR
Definition NavMap.hpp:445
@ CIRCULAR
Definition NavMap.hpp:445
constexpr LayerType layer_type_tag()
Helper to map C++ scalar type to navmap::LayerType tag.
uint32_t NavCelId
Index of a triangle (NavCel) within the global mesh.
Definition NavMap.hpp:63
uint32_t PointId
Index into the per-vertex position arrays (SoA).
Definition NavMap.hpp:61
constexpr LayerType layer_type_tag< float >()
Definition NavMap.hpp:439
LayerView(std::string name, size_t nitems, LayerType t)
Construct a typed view.
Definition NavMap.hpp:171
Options for the locate functions.
Definition NavMap.hpp:585
Axis-aligned bounding box.
Definition Geometry.hpp:151
Node in a per-surface bounding volume hierarchy (BVH).
Definition NavMap.hpp:379
int right
Right child index (or -1 for leaf)
Definition NavMap.hpp:382
int start
Start index in primitive array (leaf only)
Definition NavMap.hpp:383
bool is_leaf() const
Definition NavMap.hpp:385
int count
Number of primitives in leaf (0 for inner nodes)
Definition NavMap.hpp:384
int left
Left child index (or -1 for leaf)
Definition NavMap.hpp:381
AABB box
Bounding box of this node (world coordinates)
Definition NavMap.hpp:380
Optional per-vertex colors (RGBA, 8-bit per channel).
Definition NavMap.hpp:105
std::vector< uint8_t > r
Red channel.
Definition NavMap.hpp:106
std::vector< uint8_t > a
Alpha channel.
Definition NavMap.hpp:109
std::vector< uint8_t > g
Green channel.
Definition NavMap.hpp:107
std::vector< uint8_t > b
Blue channel.
Definition NavMap.hpp:108
Non-templated base for runtime layer handling.
Definition NavMap.hpp:129
virtual LayerType type() const =0
virtual const std::string & name() const =0
virtual std::uint64_t content_hash() const =0
Return 64-bit content hash (cached; recomputed lazily).
std::uint64_t hash_cache_
Definition NavMap.hpp:149
void mark_dirty() const noexcept
Mark content dirty (forces hash recompute on next query).
Definition NavMap.hpp:145
virtual size_t size() const =0
virtual ~LayerViewBase()=default
bool hash_dirty_
Definition NavMap.hpp:148
Typed layer view storing one T value per NavCel.
Definition NavMap.hpp:160
std::uint64_t content_hash() const override
Return 64-bit content hash (cached; recomputed lazily).
Definition NavMap.hpp:218
const std::vector< T > & data() const
Definition NavMap.hpp:187
void set_data(const std::vector< T > &v)
Definition NavMap.hpp:195
std::string name_
Layer name (key in the registry)
Definition NavMap.hpp:161
std::vector< T > data_
Values, one per NavCel.
Definition NavMap.hpp:162
LayerType type_
Runtime type tag (must match T)
Definition NavMap.hpp:163
LayerType type() const override
Definition NavMap.hpp:174
const std::string & name() const override
Definition NavMap.hpp:175
const T & operator[](NavCelId cid) const
Definition NavMap.hpp:181
std::vector< T > & mutable_data() const
Definition NavMap.hpp:191
T & operator[](NavCelId cid)
Definition NavMap.hpp:180
size_t size() const override
Definition NavMap.hpp:176
LayerView(std::string name, size_t nitems, LayerType t)
Construct a typed view.
Definition NavMap.hpp:171
std::vector< T > & data()
Definition NavMap.hpp:185
Navigation cell (triangle) with geometry and adjacency.
Definition NavMap.hpp:361
uint32_t layer_dirty_mask
Reserved for future per-layer flags.
Definition NavMap.hpp:370
Eigen::Vector3f normal
Unit normal of the triangle.
Definition NavMap.hpp:363
NavCelId neighbor[3]
Neighbor cids across edges 0,1,2.
Definition NavMap.hpp:365
float area
Triangle area (m²)
Definition NavMap.hpp:364
PointId v[3]
Indices into navmap::Positions.
Definition NavMap.hpp:362
Options for the locate functions.
Definition NavMap.hpp:585
std::optional< NavCelId > hint_cid
Optional triangle hint for walking.
Definition NavMap.hpp:586
std::optional< size_t > hint_surface
Optional surface hint.
Definition NavMap.hpp:587
bool use_downward_ray
Downward ray on fallback (else upward)
Definition NavMap.hpp:590
float height_eps
Z tolerance for vertical fallback (meters)
Definition NavMap.hpp:589
float planar_eps
In-plane barycentric tolerance.
Definition NavMap.hpp:588
Structure-of-arrays for storing 3D vertex positions.
Definition NavMap.hpp:79
Eigen::Vector3f at(PointId id) const
Returns vertex id as a 3D vector.
Definition NavMap.hpp:93
size_t size() const
Definition NavMap.hpp:85
std::vector< float > x
X coordinates (meters)
Definition NavMap.hpp:80
std::vector< float > z
Z coordinates (meters)
Definition NavMap.hpp:82
std::vector< float > y
Y coordinates (meters)
Definition NavMap.hpp:81
Result of a raycast against the NavMap.
Definition NavMap.hpp:424
Eigen::Vector3f p
World coordinates of intersection.
Definition NavMap.hpp:429
bool hit
True if the ray hit any triangle.
Definition NavMap.hpp:425
size_t surface
Index of surface hit.
Definition NavMap.hpp:426
NavCelId cid
Id of the NavCel hit.
Definition NavMap.hpp:427
float t
Distance along the ray (units of d)
Definition NavMap.hpp:428
Simple ray (origin + direction).
Definition NavMap.hpp:413
Eigen::Vector3f o
Origin of the ray (world)
Definition NavMap.hpp:414
Eigen::Vector3f d
Direction of the ray (unit length recommended)
Definition NavMap.hpp:415
A connected set of NavCels in a common reference frame.
Definition NavMap.hpp:395
std::vector< BVHNode > bvh
BVH nodes for this surface.
Definition NavMap.hpp:400
AABB aabb
Bounds of the surface geometry.
Definition NavMap.hpp:398
std::vector< NavCelId > navcels
NavCels belonging to this surface (global ids)
Definition NavMap.hpp:397
std::string frame_id
Frame id of this surface.
Definition NavMap.hpp:396
std::vector< int > prim_indices
Compact list of cids used by BVH leaves.
Definition NavMap.hpp:399