59 bool Init(
int width,
int height,
float resolution,
float height_threshold);
61 bool Init(
float xmin,
float xmax,
float ymin,
float ymax,
float resolution,
float height_threshold);
69 bool Reset(
size_t point_number);
102 void GetNodeCoord(
float x,
float y,
int* grid_x,
int* grid_y);
109 return valid_node_number_;
123 size_t point_number_;
127 float height_threshold_;
128 size_t valid_node_number_;
bool UpdateMask(LidarFrame *frame)
Update point mask and point index
bool UpdateMap(LidarFrame *frame)
Update map, update mask and node
std::vector< size_t > point_idx_
int id()
Get valid node number
bool UpdateNodes(LidarFrame *frame)
Update node feature based on points
bool Init(int width, int height, float resolution, float height_threshold)
Init background map
std::vector< size_t > point_importance_
bool Reset(size_t point_number)
Reset all data
void GetNodeCoord(float x, float y, int *grid_x, int *grid_y)
Get Node Coordinate based on point
std::vector< BgNode > bg_nodes_
std::vector< bool > point_mask_
std::vector< int > pc_semantic_types
std::vector< int > pc_motion_types