octomap  1.9.7
test_iterators.cpp File Reference
+ Include dependency graph for test_iterators.cpp:

Functions

void boundingBoxTest (OcTree *tree)
 
void compareResults (const std::list< OcTreeVolume > &list_iterator, const std::list< OcTreeVolume > &list_depr)
 compare two lists of octree nodes on equality More...
 
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 More...
 
void getVoxelsRecurs (std::list< OcTreeVolume > &voxels, unsigned int max_depth, OcTreeNode *node, unsigned int depth, const point3d &parent_center, const point3d &tree_center, OcTree *tree)
 mimics old deprecated behavior to compare against More...
 
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

◆ boundingBoxTest()

◆ compareResults()

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().

◆ computeChildCenter()

void computeChildCenter ( const unsigned int &  pos,
const float &  center_offset,
const point3d parent_center,
point3d child_center 
)

◆ getLeafNodesRecurs()

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 
)

◆ getVoxelsRecurs()

void getVoxelsRecurs ( std::list< OcTreeVolume > &  voxels,
unsigned int  max_depth,
OcTreeNode node,
unsigned int  depth,
const point3d parent_center,
const point3d tree_center,
OcTree tree 
)

◆ main()

◆ OcTreeVolumeSortPredicate()

bool OcTreeVolumeSortPredicate ( const OcTreeVolume lhs,
const OcTreeVolume rhs 
)

Referenced by main().

◆ printUsage()

void printUsage ( char *  self)

Referenced by main().

◆ timediff()

double timediff ( const timeval &  start,
const timeval &  stop 
)

Referenced by main().