#include <MapCollection.h>
Public Types | |
typedef std::vector< MAPNODE * > ::const_iterator | const_iterator |
typedef std::vector< MAPNODE * > ::iterator | iterator |
Public Member Functions | |
void | addNode (MAPNODE *node) |
MAPNODE * | addNode (const Pointcloud &cloud, point3d sensor_origin) |
iterator | begin () |
const_iterator | begin () const |
bool | castRay (const point3d &origin, const point3d &direction, point3d &end, bool ignoreUnknownCells=false, double maxRange=-1.0) const |
iterator | end () |
const_iterator | end () const |
float | getOccupancy (const point3d &p) |
void | insertScan (const Pointcloud &scan, const octomap::point3d &sensor_origin, double maxrange=-1., bool pruning=true, bool lazy_eval=false) |
bool | isOccupied (const point3d &p) const |
bool | isOccupied (float x, float y, float z) const |
MapCollection () | |
MapCollection (std::string filename) | |
MAPNODE * | queryNode (const point3d &p) |
MAPNODE * | queryNode (std::string id) |
bool | removeNode (const MAPNODE *n) |
size_t | size () const |
bool | write (std::string filename) |
bool | writePointcloud (std::string filename) |
~MapCollection () | |
Protected Member Functions | |
MAPNODE * | associate (const Pointcloud &scan) |
void | clear () |
bool | read (std::string filename) |
std::vector< Pointcloud * > | segment (const Pointcloud &scan) const |
Static Protected Member Functions | |
static std::string | combinePathAndFilename (std::string path, std::string filename) |
static bool | readTagValue (std::string tag, std::ifstream &infile, std::string *value) |
static void | splitPathAndFilename (std::string &filenamefullpath, std::string *path, std::string *filename) |
Protected Attributes | |
std::vector< MAPNODE * > | nodes |
Definition at line 45 of file MapCollection.h.
typedef std::vector<MAPNODE*>::const_iterator octomap::MapCollection< MAPNODE >::const_iterator |
Definition at line 74 of file MapCollection.h.
typedef std::vector<MAPNODE*>::iterator octomap::MapCollection< MAPNODE >::iterator |
Definition at line 73 of file MapCollection.h.
octomap::MapCollection< MAPNODE >::MapCollection | ( | ) |
octomap::MapCollection< MAPNODE >::MapCollection | ( | std::string | filename | ) |
octomap::MapCollection< MAPNODE >::~MapCollection | ( | ) |
void octomap::MapCollection< MAPNODE >::addNode | ( | MAPNODE * | node | ) |
MAPNODE* octomap::MapCollection< MAPNODE >::addNode | ( | const Pointcloud & | cloud, |
point3d | sensor_origin | ||
) |
MAPNODE* octomap::MapCollection< MAPNODE >::associate | ( | const Pointcloud & | scan | ) | [protected] |
iterator octomap::MapCollection< MAPNODE >::begin | ( | ) | [inline] |
Definition at line 75 of file MapCollection.h.
const_iterator octomap::MapCollection< MAPNODE >::begin | ( | ) | const [inline] |
Definition at line 77 of file MapCollection.h.
bool octomap::MapCollection< MAPNODE >::castRay | ( | const point3d & | origin, |
const point3d & | direction, | ||
point3d & | end, | ||
bool | ignoreUnknownCells = false , |
||
double | maxRange = -1.0 |
||
) | const |
void octomap::MapCollection< MAPNODE >::clear | ( | ) | [protected] |
static std::string octomap::MapCollection< MAPNODE >::combinePathAndFilename | ( | std::string | path, |
std::string | filename | ||
) | [static, protected] |
iterator octomap::MapCollection< MAPNODE >::end | ( | ) | [inline] |
Definition at line 76 of file MapCollection.h.
const_iterator octomap::MapCollection< MAPNODE >::end | ( | ) | const [inline] |
Definition at line 78 of file MapCollection.h.
float octomap::MapCollection< MAPNODE >::getOccupancy | ( | const point3d & | p | ) |
void octomap::MapCollection< MAPNODE >::insertScan | ( | const Pointcloud & | scan, |
const octomap::point3d & | sensor_origin, | ||
double | maxrange = -1. , |
||
bool | pruning = true , |
||
bool | lazy_eval = false |
||
) |
bool octomap::MapCollection< MAPNODE >::isOccupied | ( | const point3d & | p | ) | const |
bool octomap::MapCollection< MAPNODE >::isOccupied | ( | float | x, |
float | y, | ||
float | z | ||
) | const |
MAPNODE* octomap::MapCollection< MAPNODE >::queryNode | ( | const point3d & | p | ) |
MAPNODE* octomap::MapCollection< MAPNODE >::queryNode | ( | std::string | id | ) |
bool octomap::MapCollection< MAPNODE >::read | ( | std::string | filename | ) | [protected] |
static bool octomap::MapCollection< MAPNODE >::readTagValue | ( | std::string | tag, |
std::ifstream & | infile, | ||
std::string * | value | ||
) | [static, protected] |
bool octomap::MapCollection< MAPNODE >::removeNode | ( | const MAPNODE * | n | ) |
std::vector<Pointcloud*> octomap::MapCollection< MAPNODE >::segment | ( | const Pointcloud & | scan | ) | const [protected] |
size_t octomap::MapCollection< MAPNODE >::size | ( | ) | const [inline] |
Definition at line 79 of file MapCollection.h.
static void octomap::MapCollection< MAPNODE >::splitPathAndFilename | ( | std::string & | filenamefullpath, |
std::string * | path, | ||
std::string * | filename | ||
) | [static, protected] |
bool octomap::MapCollection< MAPNODE >::write | ( | std::string | filename | ) |
bool octomap::MapCollection< MAPNODE >::writePointcloud | ( | std::string | filename | ) |
std::vector<MAPNODE*> octomap::MapCollection< MAPNODE >::nodes [protected] |
Definition at line 96 of file MapCollection.h.