mikael-s-persson / ReaK

Software platform and algorithms for multi-body dynamics simulation, control, estimation, and path-planning. Intended for robotics software development and testing.
GNU General Public License v3.0
40 stars 11 forks source link

multi_dvp_tree_search missing K nearest-neighbor operator() #3

Closed daviddoria closed 12 years ago

daviddoria commented 12 years ago

It seems that the DVP tree does not have an operator() with the same signature as the linear k-nn:

Linear:

template <typename Graph, typename Topology, typename PositionMap, typename OutputContainer>
void operator()(const typename boost::property_traits<PositionMap>::value_type& p, OutputContainer& output, 
        Graph& g, const Topology& space, PositionMap position, unsigned int max_neighbors = 1, double radius = std::numeric_limits<double>::infinity())

Maybe multi_dvp_tree_search just needs another operator() overload that calls the knn find_nearest instead of the one parameter find_nearest()?

mikael-s-persson commented 12 years ago

Fixed.