Skip to content

Commit 6330ee4

Browse files
authored
Add IndexType definition for Nanoflann KDTree in node_spatial_tree. (#5420)
* fix: Add KDTree type definition to include unsigned int for IndexType Signed-off-by: Ericsii <ericfengx@foxmail.com> * code format Signed-off-by: Ericsii <ericfengx@foxmail.com> --------- Signed-off-by: Ericsii <ericfengx@foxmail.com>
1 parent d93c129 commit 6330ee4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

nav2_route/include/nav2_route/node_spatial_tree.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ struct GraphAdaptor
5555
};
5656

5757
typedef nanoflann::KDTreeSingleIndexAdaptor<
58-
nanoflann::L2_Simple_Adaptor<double, GraphAdaptor>, GraphAdaptor, DIMENSION> kd_tree_t;
58+
nanoflann::L2_Simple_Adaptor<double, GraphAdaptor>, GraphAdaptor, DIMENSION,
59+
unsigned int>
60+
kd_tree_t;
5961

6062
/**
6163
* @class nav2_route::NodeSpatialTree

0 commit comments

Comments
 (0)