Public Member Functions | Private Attributes
lslgeneric::CellVector< PointT > Class Template Reference

A spatial index represented as a grid map. More...

#include <cell_vector.h>

Inheritance diagram for lslgeneric::CellVector< PointT >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void addCell (Cell< PointT > *cell)
void addCellPoints (pcl::PointCloud< PointT > pc, const std::vector< size_t > &indices)
void addNDTCell (NDTCell< PointT > *cell)
virtual Cell< PointT > * addPoint (const PointT &point)
 add a point and get back the pointer to the cell in which it ended up
virtual SpatialIndex< PointT >
::CellVectorItr 
begin ()
 iterator through all cells in index, points at the begining
 CellVector ()
 CellVector (Cell< PointT > *cellPrototype)
 CellVector (const CellVector< PointT > &other)
void cleanCellsAboveSize (double size)
virtual SpatialIndex< PointT > * clone () const
 clone - create an empty object with same type
virtual SpatialIndex< PointT > * copy () const
 copy - create the same object as a new instance
virtual SpatialIndex< PointT >
::CellVectorItr 
end ()
 iterator through all cells in index, points at the end
virtual Cell< PointT > * getCellForPoint (const PointT &point)
NDTCell< PointT > * getCellIdx (unsigned int idx) const
NDTCell< PointT > * getClosestNDTCell (const PointT &pt)
std::vector< NDTCell< PointT > * > getClosestNDTCells (const PointT &point, double &radius)
virtual void getNeighbors (const PointT &point, const double &radius, std::vector< Cell< PointT > * > &cells)
 method to return all cells within a certain radius from a point
void initKDTree ()
int loadFromJFF (FILE *jffin)
virtual void setCellType (Cell< PointT > *type)
 sets the cell factory type
virtual int size ()
virtual ~CellVector ()

Private Attributes

std::vector< Cell< PointT > * > activeCells
pcl::KdTreeFLANN< PointTmeansTree
pcl::KdTree< PointT >
::PointCloudPtr 
mp
Cell< PointT > * protoType
bool treeUpdated

Detailed Description

template<typename PointT>
class lslgeneric::CellVector< PointT >

A spatial index represented as a grid map.

A grid map with delayed allocation of cells.

Definition at line 49 of file cell_vector.h.


Constructor & Destructor Documentation

template<typename PointT >
lslgeneric::CellVector< PointT >::CellVector ( )

Definition at line 5 of file cell_vector.hpp.

template<typename PointT >
lslgeneric::CellVector< PointT >::CellVector ( Cell< PointT > *  cellPrototype)

Definition at line 12 of file cell_vector.hpp.

template<typename PointT>
lslgeneric::CellVector< PointT >::CellVector ( const CellVector< PointT > &  other) [inline]

Definition at line 54 of file cell_vector.h.

template<typename PointT >
lslgeneric::CellVector< PointT >::~CellVector ( ) [virtual]

Definition at line 19 of file cell_vector.hpp.


Member Function Documentation

template<typename PointT >
void lslgeneric::CellVector< PointT >::addCell ( Cell< PointT > *  cell)

Definition at line 84 of file cell_vector.hpp.

template<typename PointT >
void lslgeneric::CellVector< PointT >::addCellPoints ( pcl::PointCloud< PointT pc,
const std::vector< size_t > &  indices 
)

Definition at line 74 of file cell_vector.hpp.

template<typename PointT >
void lslgeneric::CellVector< PointT >::addNDTCell ( NDTCell< PointT > *  cell)

Definition at line 90 of file cell_vector.hpp.

template<typename PointT >
Cell< PointT > * lslgeneric::CellVector< PointT >::addPoint ( const PointT point) [virtual]

add a point and get back the pointer to the cell in which it ended up

Implements lslgeneric::SpatialIndex< PointT >.

Definition at line 67 of file cell_vector.hpp.

template<typename PointT >
SpatialIndex< PointT >::CellVectorItr lslgeneric::CellVector< PointT >::begin ( ) [virtual]

iterator through all cells in index, points at the begining

Implements lslgeneric::SpatialIndex< PointT >.

Definition at line 96 of file cell_vector.hpp.

template<typename PointT >
void lslgeneric::CellVector< PointT >::cleanCellsAboveSize ( double  size)

Definition at line 256 of file cell_vector.hpp.

template<typename PointT >
SpatialIndex< PointT > * lslgeneric::CellVector< PointT >::clone ( ) const [virtual]

clone - create an empty object with same type

Implements lslgeneric::SpatialIndex< PointT >.

Definition at line 115 of file cell_vector.hpp.

template<typename PointT >
SpatialIndex< PointT > * lslgeneric::CellVector< PointT >::copy ( ) const [virtual]

copy - create the same object as a new instance

Implements lslgeneric::SpatialIndex< PointT >.

Definition at line 121 of file cell_vector.hpp.

template<typename PointT >
SpatialIndex< PointT >::CellVectorItr lslgeneric::CellVector< PointT >::end ( ) [virtual]

iterator through all cells in index, points at the end

Implements lslgeneric::SpatialIndex< PointT >.

Definition at line 103 of file cell_vector.hpp.

template<typename PointT >
Cell< PointT > * lslgeneric::CellVector< PointT >::getCellForPoint ( const PointT point) [virtual]

Implements lslgeneric::SpatialIndex< PointT >.

Definition at line 32 of file cell_vector.hpp.

template<typename PointT >
NDTCell< PointT > * lslgeneric::CellVector< PointT >::getCellIdx ( unsigned int  idx) const

Definition at line 243 of file cell_vector.hpp.

template<typename PointT >
NDTCell< PointT > * lslgeneric::CellVector< PointT >::getClosestNDTCell ( const PointT pt)

Definition at line 215 of file cell_vector.hpp.

template<typename PointT >
std::vector< NDTCell< PointT > * > lslgeneric::CellVector< PointT >::getClosestNDTCells ( const PointT point,
double &  radius 
)

Definition at line 224 of file cell_vector.hpp.

template<typename PointT >
void lslgeneric::CellVector< PointT >::getNeighbors ( const PointT point,
const double &  radius,
std::vector< Cell< PointT > * > &  cells 
) [virtual]

method to return all cells within a certain radius from a point

Implements lslgeneric::SpatialIndex< PointT >.

Definition at line 139 of file cell_vector.hpp.

template<typename PointT >
void lslgeneric::CellVector< PointT >::initKDTree ( )

Definition at line 176 of file cell_vector.hpp.

template<typename PointT >
int lslgeneric::CellVector< PointT >::loadFromJFF ( FILE *  jffin)

Definition at line 290 of file cell_vector.hpp.

template<typename PointT >
void lslgeneric::CellVector< PointT >::setCellType ( Cell< PointT > *  type) [virtual]

sets the cell factory type

Implements lslgeneric::SpatialIndex< PointT >.

Definition at line 206 of file cell_vector.hpp.

template<typename PointT >
int lslgeneric::CellVector< PointT >::size ( void  ) [virtual]

Definition at line 109 of file cell_vector.hpp.


Member Data Documentation

template<typename PointT>
std::vector<Cell<PointT>*> lslgeneric::CellVector< PointT >::activeCells [private]

Definition at line 92 of file cell_vector.h.

template<typename PointT>
pcl::KdTreeFLANN<PointT> lslgeneric::CellVector< PointT >::meansTree [private]

Definition at line 94 of file cell_vector.h.

template<typename PointT>
pcl::KdTree<PointT>::PointCloudPtr lslgeneric::CellVector< PointT >::mp [private]

Definition at line 95 of file cell_vector.h.

template<typename PointT>
Cell<PointT>* lslgeneric::CellVector< PointT >::protoType [private]

Definition at line 93 of file cell_vector.h.

template<typename PointT>
bool lslgeneric::CellVector< PointT >::treeUpdated [private]

Definition at line 96 of file cell_vector.h.


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


ndt_map
Author(s): Todor Stoyanov, Jari Saarinen, Henrik Andreasson
autogenerated on Mon Oct 6 2014 03:18:54