modules/perception/pointcloud_map_based_roi/README.md
Filter the point cloud outside the ROI.
The Region of Interest (ROI) specifies the drivable area that includes road surfaces and junctions that are retrieved from the HD (high-resolution) map. The HDMap ROI filter processes LiDAR points that are outside the ROI, removing background objects, e.g., buildings and trees around the road. What remains is the point cloud in the ROI for subsequent processing.
Given an HDMap, the affiliation of each LiDAR point indicates whether it is inside or outside the ROI. Each LiDAR point can be queried with a lookup table (LUT) of 2D quantization of the region around the car. The input and output of the HDMap ROI filter module are summarized in the table below.
├── pointcloud_map_based_roi
├── conf // component config file
├── dag // component dag file
├── data // config of map_manager and roi_filter
├── map_manager // Set the ROI based on the hdmap
├── roi_filter // filter point cloud outside the ROI
├── interface // definition of BaseROIFilter
├── proto // definition of data structure
├── pointcloud_map_based_roi_component.cc // omponent inference
├── pointcloud_map_based_roi_component.h
├── cyberfile.xml // package configs
├── README.md
└── BUILD
apollo::perception::lidar::PointCloudMapROIComponent
| Name | Type | Description | Input channal |
|---|---|---|---|
frame | apollo::perception::onboard::LidarFrameMessage | lidar frame message | /perception/lidar/pointcloud_preprocess |
Note: The input channel is structure type data. The default trigger channel is
/perception/lidar/pointcloud_preprocess. The detailed input channel information is inmodules/perception/pointcloud_map_based_roi/dag/pointcloud_map_based_roi.dagfile. By default, the upstream components of the messages received by the component includepointcloud_preprocess.
| Name | Type | Description | Output channal |
|---|---|---|---|
frame | apollo::perception::onboard::LidarFrameMessage | LidarFrame's roi_indices: save the indices of point inside the ROI | /perception/lidar/pointcloud_map_based_roi |
Note: The output channel is structure type data. The message is defined in the
modules/perception/common/onboard/inner_component_messages/lidar_inner_component_messages.hfile. The output channel message data can be subscribed by components in the same process. The detailed output channel information is inmodules/perception/pointcloud_map_based_roi/conf/pointcloud_map_based_roi_config.pb.txtfile.
modules/perception/data/params,keep frame_id and sensor_name consistent, start the
tfcyber_launch start modules/transform/launch/static_transform.launch
modules/perception/data/models using amodel
tool.amodel install https://xxx.zip
modules/perception/pointcloud_map_based_roi/dag/pointcloud_map_based_roi.dagmodules/perception/pointcloud_map_based_roi/conf/pointcloud_map_based_roi_config.pb.txtcyber_launch start modules/perception/launch/perception_lidar.launch