octomap 1.5.0
|
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 ¢er_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) |
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 | ||
) |
Referenced by getLeafNodesRecurs(), and getVoxelsRecurs().
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
References octomap::OcTreeDataNode< T >::childExists(), computeChildCenter(), octomap::OcTreeNode::getChild(), octomap::OcTreeBaseImpl< NODE, INTERFACE >::getResolution(), and octomap::OcTreeDataNode< T >::hasChildren().
Referenced by main().
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
References octomap::OcTreeDataNode< T >::childExists(), computeChildCenter(), octomap::OcTreeNode::getChild(), and octomap::OcTreeDataNode< T >::hasChildren().
Referenced by main().
int main | ( | int | argc, |
char ** | argv | ||
) |
get number of nodes:
get all occupied leafs
get all free leafs
get all volumes
bounding box tests
References octomap::OcTreeBaseImpl< NODE, INTERFACE >::begin(), octomap::OcTreeBaseImpl< NODE, INTERFACE >::begin_leafs(), compareResults(), octomap::OcTreeBaseImpl< NODE, INTERFACE >::end(), octomap::OcTreeBaseImpl< NODE, INTERFACE >::end_leafs(), EXPECT_EQ, EXPECT_FALSE, EXPECT_TRUE, getLeafNodesRecurs(), octomap::OcTreeBaseImpl< NODE, INTERFACE >::getNumLeafNodes(), octomap::OcTreeBaseImpl< NODE, INTERFACE >::getResolution(), octomap::OcTreeBaseImpl< NODE, INTERFACE >::getRoot(), getVoxelsRecurs(), OcTreeVolumeSortPredicate(), printUsage(), octomap::OcTreeBaseImpl< NODE, INTERFACE >::size(), timediff(), and octomap::OccupancyOcTreeBase< NODE >::updateNode().
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().