octomap 1.5.0
src/testing/test_iterators.cpp File Reference
Include dependency graph for test_iterators.cpp:

Functions

void compareResults (const std::list< OcTreeVolume > &list_iterator, const std::list< OcTreeVolume > &list_depr)
 compare two lists of octree nodes on equality
void computeChildCenter (const unsigned int &pos, const float &center_offset, const point3d &parent_center, point3d &child_center)
void getLeafNodesRecurs (std::list< OcTreeVolume > &voxels, unsigned int max_depth, OcTreeNode *node, unsigned int depth, const point3d &parent_center, const point3d &tree_center, OcTree *tree, bool occupied)
 mimics old deprecated behavior to compare against
void getVoxelsRecurs (std::list< OcTreeVolume > &voxels, unsigned int max_depth, OcTreeNode *node, unsigned int depth, const point3d &parent_center, const point3d &tree_center, double resolution)
 mimics old deprecated behavior to compare against
int main (int argc, char **argv)
bool OcTreeVolumeSortPredicate (const OcTreeVolume &lhs, const OcTreeVolume &rhs)
void printUsage (char *self)
double timediff (const timeval &start, const timeval &stop)

Function Documentation

void compareResults ( const std::list< OcTreeVolume > &  list_iterator,
const std::list< OcTreeVolume > &  list_depr 
)

compare two lists of octree nodes on equality

References EXPECT_EQ, and EXPECT_NEAR.

Referenced by main().

void computeChildCenter ( const unsigned int &  pos,
const float &  center_offset,
const point3d parent_center,
point3d child_center 
)
void getLeafNodesRecurs ( std::list< OcTreeVolume > &  voxels,
unsigned int  max_depth,
OcTreeNode node,
unsigned int  depth,
const point3d parent_center,
const point3d tree_center,
OcTree tree,
bool  occupied 
)
void getVoxelsRecurs ( std::list< OcTreeVolume > &  voxels,
unsigned int  max_depth,
OcTreeNode node,
unsigned int  depth,
const point3d parent_center,
const point3d tree_center,
double  resolution 
)
bool OcTreeVolumeSortPredicate ( const OcTreeVolume lhs,
const OcTreeVolume rhs 
)

Referenced by main().

void printUsage ( char *  self)
double timediff ( const timeval &  start,
const timeval &  stop 
)

Referenced by main().