Clean and improve KDTreePCLAdaptor
- Templatize
KDTreePCLAdaptorto be used with any PCL Point type - Replace
KDTreePCLAdaptor::query()method byknnSearch()for more intuitive use - Use
metric_L2_Simpleinstead ofmetric_L2as it is more suitable to 2D or 3D datasets such as pointclouds - Add optional leaf size setting
- Use float representation instead of double as PCL point coordinates only supports
floatprecision