Template Class KBoundedStrategy

Inheritance Relationships

Base Type

Class Documentation

template<class Milestone>
class KBoundedStrategy : public ompl::geometric::KStrategy<Milestone>

Return at most k neighbors, as long as they are also within a specified bound.

Public Functions

inline KBoundedStrategy(const unsigned int k, const double bound, const std::shared_ptr<NearestNeighbors<Milestone>> &nn)

Constructor.

Parameters:
  • k – the maximum number of nearest neighbors to return

  • bound – the maximum distance for any nearest neighbor to be returned

  • nn – the nearest neighbors datastruture to use

inline const std::vector<Milestone> &operator()(const Milestone &m)

Protected Attributes

const double bound_

The maximum distance at which nearby milestones are reported.