Apollo  6.0
Open source self driving car software
dummy_roi_filter.h
Go to the documentation of this file.
1 /******************************************************************************
2  * Copyright 2018 The Apollo Authors. All Rights Reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *****************************************************************************/
16 
17 #pragma once
18 
19 #include <string>
20 
22 
23 namespace apollo {
24 namespace perception {
25 namespace lidar {
26 
27 class DummyROIFilter : public BaseROIFilter {
28  public:
29  DummyROIFilter() = default;
30 
31  virtual ~DummyROIFilter() = default;
32 
33  bool Init(
34  const ROIFilterInitOptions& options = ROIFilterInitOptions()) override;
35 
36  // @brief: filter roi points from point cloud
37  // @param [in]: options
38  // @param [in/out]: frame
39  // lidar2world_pose and hdmap_struct should be valid,
40  // roi_indices should be filled, required
41  // label field of point cloud can be filled, optional
42  bool Filter(const ROIFilterOptions& options, LidarFrame* frame) override;
43 
44  std::string Name() const override { return "DummyROIFilter"; }
45 }; // class DummyROIFilter
46 
47 } // namespace lidar
48 } // namespace perception
49 } // namespace apollo
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
Definition: base_roi_filter.h:32
bool Filter(const ROIFilterOptions &options, LidarFrame *frame) override
std::string Name() const override
Definition: dummy_roi_filter.h:44
Definition: base_roi_filter.h:30
bool Init(const ROIFilterInitOptions &options=ROIFilterInitOptions()) override
Definition: dummy_roi_filter.h:27
Definition: lidar_frame.h:33
Definition: base_roi_filter.h:28