Public Member Functions | Private Types | Private Attributes | List of all members
rtflann::RadiusUniqueResultSet< DistanceType > Class Template Reference

#include <result_set.h>

Inheritance diagram for rtflann::RadiusUniqueResultSet< DistanceType >:
Inheritance graph
[legend]

Public Member Functions

void addPoint (DistanceType dist, size_t index)
 
void clear ()
 
bool full () const
 
 RadiusUniqueResultSet (DistanceType radius)
 
DistanceType worstDist () const
 
- Public Member Functions inherited from rtflann::UniqueResultSet< DistanceType >
void copy (size_t *indices, DistanceType *dist, int n_neighbors, bool sorted=true)
 
size_t size () const
 
 UniqueResultSet ()
 
- Public Member Functions inherited from rtflann::ResultSet< DistanceType >
virtual ~ResultSet ()
 

Private Types

typedef UniqueResultSet< DistanceType >::DistIndex DistIndex
 

Private Attributes

DistanceType radius_
 

Additional Inherited Members

- Protected Attributes inherited from rtflann::UniqueResultSet< DistanceType >
std::set< DistIndexdist_indices_
 
bool is_full_
 
DistanceType worst_distance_
 

Detailed Description

template<typename DistanceType>
class rtflann::RadiusUniqueResultSet< DistanceType >

Class that holds the radius nearest neighbors It is more accurate than RadiusResult as it is not limited in the number of neighbors

Definition at line 844 of file result_set.h.

Member Typedef Documentation

template<typename DistanceType >
typedef UniqueResultSet<DistanceType>::DistIndex rtflann::RadiusUniqueResultSet< DistanceType >::DistIndex
private

Definition at line 890 of file result_set.h.

Constructor & Destructor Documentation

template<typename DistanceType >
rtflann::RadiusUniqueResultSet< DistanceType >::RadiusUniqueResultSet ( DistanceType  radius)
inline

Constructor

Parameters
capacitythe number of neighbors to store at max

Definition at line 850 of file result_set.h.

Member Function Documentation

template<typename DistanceType >
void rtflann::RadiusUniqueResultSet< DistanceType >::addPoint ( DistanceType  dist,
size_t  index 
)
inlinevirtual

Add a possible candidate to the best neighbors

Parameters
distdistance for that neighbor
indexindex of that neighbor

Implements rtflann::ResultSet< DistanceType >.

Definition at line 860 of file result_set.h.

template<typename DistanceType >
void rtflann::RadiusUniqueResultSet< DistanceType >::clear ( )
inline

Remove all elements in the set

Definition at line 867 of file result_set.h.

template<typename DistanceType >
bool rtflann::RadiusUniqueResultSet< DistanceType >::full ( ) const
inlinevirtual

Check the status of the set

Returns
alwys false

Reimplemented from rtflann::UniqueResultSet< DistanceType >.

Definition at line 876 of file result_set.h.

template<typename DistanceType >
DistanceType rtflann::RadiusUniqueResultSet< DistanceType >::worstDist ( ) const
inlinevirtual

The distance of the furthest neighbor If we don't have enough neighbors, it returns the max possible value

Returns

Reimplemented from rtflann::UniqueResultSet< DistanceType >.

Definition at line 885 of file result_set.h.

Member Data Documentation

template<typename DistanceType >
DistanceType rtflann::RadiusUniqueResultSet< DistanceType >::radius_
private

The furthest distance a neighbor can be

Definition at line 895 of file result_set.h.


The documentation for this class was generated from the following file:


rtabmap
Author(s): Mathieu Labbe
autogenerated on Mon Dec 14 2020 03:37:09