small_gicp
Classes | Namespaces | Functions
traits.hpp File Reference
#include <type_traits>
#include <Eigen/Core>
Include dependency graph for traits.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  small_gicp::traits::has_nearest_neighbor_search< T >
 Check if T has nearest_neighbor_search method. More...
 

Namespaces

 small_gicp
 
 small_gicp::traits
 

Functions

template<typename T >
size_t small_gicp::traits::knn_search (const T &tree, const Eigen::Vector4d &point, size_t k, size_t *k_indices, double *k_sq_dists)
 Find k-nearest neighbors. More...
 
template<typename T , std::enable_if_t< has_nearest_neighbor_search< T >::value, bool > = true>
size_t small_gicp::traits::nearest_neighbor_search (const T &tree, const Eigen::Vector4d &point, size_t *k_index, double *k_sq_dist)
 Find the nearest neighbor. If Traits<T>::nearest_neighbor_search is not defined, fallback to knn_search with k=1. More...