- It's a lightweight head-only 3d kdtree library based on nanoflann: https://github.com/jlblancoc/nanoflann.
- Both StaticKdTree3d and DynamicKdTree3d supports for nearestKSearch and radiusSearch.
- StaticKdTree3d is similar to pcl::KdTreeFLANN<pcl::PointXYZ> but faster.
- DynamicKdTree3d supports for dynamic updating(i.e. 3d pointcloud map building) without rebuilding the whole tree.
- Both StaticKdTree3d and DynamicKdTree3d supports for float/double/etc point type.
- install the Eigen3
- install pcl if you want to build and run time_compare.cpp
- cd ~/catkin_ws/src
git clone https://github.com/G3tupup/KdTree.git
cd ..
catkin_make -DCMAKE_BUILD_TYPE=release or
you can compile dynamic_3d_tree_example.cpp/static_3d_tree_example.cpp/time_compare in anyway you like.