Main MRPT website > C++ reference for MRPT 1.3.2
List of all members | Public Types | Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes
octomap::MapCollection< MAPNODE > Class Template Reference

Detailed Description

template<class MAPNODE>
class octomap::MapCollection< MAPNODE >

Definition at line 58 of file MapCollection.h.

#include <mrpt/otherlibs/octomap/MapCollection.h>

Public Types

typedef std::vector< MAPNODE * >::iterator iterator
 
typedef std::vector< MAPNODE * >::const_iterator const_iterator
 

Public Member Functions

 MapCollection ()
 
 MapCollection (std::string filename)
 
 ~MapCollection ()
 
void addNode (MAPNODE *node)
 
MAPNODE * addNode (const Pointcloud &cloud, point3d sensor_origin)
 
bool removeNode (const MAPNODE *n)
 
MAPNODE * queryNode (const point3d &p)
 
bool isOccupied (const point3d &p) const
 
bool isOccupied (float x, float y, float z) const
 
float getOccupancy (const point3d &p)
 
bool castRay (const point3d &origin, const point3d &direction, point3d &end, bool ignoreUnknownCells=false, double maxRange=-1.0) const
 
bool writePointcloud (std::string filename)
 
bool write (std::string filename)
 
void insertScan (const Pointcloud &scan, const octomap::point3d &sensor_origin, double maxrange=-1., bool pruning=true, bool lazy_eval=false)
 
MAPNODE * queryNode (std::string id)
 
iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 
size_t size () const
 

Protected Member Functions

void clear ()
 
bool read (std::string filename)
 
std::vector< Pointcloud * > segment (const Pointcloud &scan) const
 
MAPNODE * associate (const Pointcloud &scan)
 

Static Protected Member Functions

static void splitPathAndFilename (std::string &filenamefullpath, std::string *path, std::string *filename)
 
static std::string combinePathAndFilename (std::string path, std::string filename)
 
static bool readTagValue (std::string tag, std::ifstream &infile, std::string *value)
 

Protected Attributes

std::vector< MAPNODE * > nodes
 

Member Typedef Documentation

template<class MAPNODE >
typedef std::vector<MAPNODE*>::const_iterator octomap::MapCollection< MAPNODE >::const_iterator

Definition at line 87 of file MapCollection.h.

template<class MAPNODE >
typedef std::vector<MAPNODE*>::iterator octomap::MapCollection< MAPNODE >::iterator

Definition at line 86 of file MapCollection.h.

Constructor & Destructor Documentation

template<class MAPNODE >
octomap::MapCollection< MAPNODE >::MapCollection ( )
template<class MAPNODE >
octomap::MapCollection< MAPNODE >::MapCollection ( std::string  filename)
template<class MAPNODE >
octomap::MapCollection< MAPNODE >::~MapCollection ( )

Member Function Documentation

template<class MAPNODE >
void octomap::MapCollection< MAPNODE >::addNode ( MAPNODE *  node)
template<class MAPNODE >
MAPNODE* octomap::MapCollection< MAPNODE >::addNode ( const Pointcloud cloud,
point3d  sensor_origin 
)
template<class MAPNODE >
MAPNODE* octomap::MapCollection< MAPNODE >::associate ( const Pointcloud scan)
protected
template<class MAPNODE >
iterator octomap::MapCollection< MAPNODE >::begin ( )
inline

Definition at line 88 of file MapCollection.h.

References octomap::MapCollection< MAPNODE >::nodes.

template<class MAPNODE >
const_iterator octomap::MapCollection< MAPNODE >::begin ( ) const
inline

Definition at line 90 of file MapCollection.h.

References octomap::MapCollection< MAPNODE >::nodes.

template<class MAPNODE >
bool octomap::MapCollection< MAPNODE >::castRay ( const point3d origin,
const point3d direction,
point3d end,
bool  ignoreUnknownCells = false,
double  maxRange = -1.0 
) const
template<class MAPNODE >
void octomap::MapCollection< MAPNODE >::clear ( )
protected
template<class MAPNODE >
static std::string octomap::MapCollection< MAPNODE >::combinePathAndFilename ( std::string  path,
std::string  filename 
)
staticprotected
template<class MAPNODE >
iterator octomap::MapCollection< MAPNODE >::end ( )
inline

Definition at line 89 of file MapCollection.h.

References octomap::MapCollection< MAPNODE >::nodes.

template<class MAPNODE >
const_iterator octomap::MapCollection< MAPNODE >::end ( ) const
inline

Definition at line 91 of file MapCollection.h.

References octomap::MapCollection< MAPNODE >::nodes.

template<class MAPNODE >
float octomap::MapCollection< MAPNODE >::getOccupancy ( const point3d p)
template<class MAPNODE >
void octomap::MapCollection< MAPNODE >::insertScan ( const Pointcloud scan,
const octomap::point3d sensor_origin,
double  maxrange = -1.,
bool  pruning = true,
bool  lazy_eval = false 
)
template<class MAPNODE >
bool octomap::MapCollection< MAPNODE >::isOccupied ( const point3d p) const
template<class MAPNODE >
bool octomap::MapCollection< MAPNODE >::isOccupied ( float  x,
float  y,
float  z 
) const
template<class MAPNODE >
MAPNODE* octomap::MapCollection< MAPNODE >::queryNode ( const point3d p)
template<class MAPNODE >
MAPNODE* octomap::MapCollection< MAPNODE >::queryNode ( std::string  id)
template<class MAPNODE >
bool octomap::MapCollection< MAPNODE >::read ( std::string  filename)
protected
template<class MAPNODE >
static bool octomap::MapCollection< MAPNODE >::readTagValue ( std::string  tag,
std::ifstream &  infile,
std::string *  value 
)
staticprotected
template<class MAPNODE >
bool octomap::MapCollection< MAPNODE >::removeNode ( const MAPNODE *  n)
template<class MAPNODE >
std::vector<Pointcloud*> octomap::MapCollection< MAPNODE >::segment ( const Pointcloud scan) const
protected
template<class MAPNODE >
size_t octomap::MapCollection< MAPNODE >::size ( ) const
inline

Definition at line 92 of file MapCollection.h.

References octomap::MapCollection< MAPNODE >::nodes.

template<class MAPNODE >
static void octomap::MapCollection< MAPNODE >::splitPathAndFilename ( std::string &  filenamefullpath,
std::string *  path,
std::string *  filename 
)
staticprotected
template<class MAPNODE >
bool octomap::MapCollection< MAPNODE >::write ( std::string  filename)
template<class MAPNODE >
bool octomap::MapCollection< MAPNODE >::writePointcloud ( std::string  filename)

Member Data Documentation

template<class MAPNODE >
std::vector<MAPNODE*> octomap::MapCollection< MAPNODE >::nodes
protected



Page generated by Doxygen 1.8.9.1 for MRPT 1.3.2 SVN:Unversioned directory at Tue Dec 8 09:49:21 UTC 2015