MCPcopy Create free account
hub / github.com/chengwei0427/Lidar_IMU_Localization / InitTreeNode

Method InitTreeNode

include/ikd-Tree/ikd_Tree.cpp:41–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39
40template <typename PointType>
41void KD_TREE<PointType>::InitTreeNode(KD_TREE_NODE *root)
42{
43 root->point.x = 0.0f;
44 root->point.y = 0.0f;
45 root->point.z = 0.0f;
46 root->node_range_x[0] = 0.0f;
47 root->node_range_x[1] = 0.0f;
48 root->node_range_y[0] = 0.0f;
49 root->node_range_y[1] = 0.0f;
50 root->node_range_z[0] = 0.0f;
51 root->node_range_z[1] = 0.0f;
52 root->radius_sq = 0.0f;
53 root->division_axis = 0;
54 root->father_ptr = nullptr;
55 root->left_son_ptr = nullptr;
56 root->right_son_ptr = nullptr;
57 root->TreeSize = 0;
58 root->invalid_point_num = 0;
59 root->down_del_num = 0;
60 root->point_deleted = false;
61 root->tree_deleted = false;
62 root->need_push_down_to_left = false;
63 root->need_push_down_to_right = false;
64 root->point_downsample_deleted = false;
65 root->working_flag = false;
66 pthread_mutex_init(&(root->push_down_mutex_lock), NULL);
67}
68
69template <typename PointType>
70int KD_TREE<PointType>::size()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected