Apollo  v5.5.0
Open source self driving car software
roi_service_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 
23 
24 namespace apollo {
25 namespace perception {
26 namespace lidar {
27 
29  public:
31  ~ROIServiceFilter() = default;
32 
33  bool Init(const ROIFilterInitOptions& options) override;
34 
35  std::string Name() const override { return "ROIServiceFilter"; }
36 
37  bool Filter(const ROIFilterOptions& options, LidarFrame* frame) override;
38 
39  private:
40  ROIServicePtr roi_service_ = nullptr;
41  ROIServiceContent roi_service_content_;
42 };
43 
44 } // namespace lidar
45 } // namespace perception
46 } // namespace apollo
std::string Name() const override
Definition: roi_service_filter.h:35
bool Init(const ROIFilterInitOptions &options) override
Definition: blob.h:72
Definition: base_roi_filter.h:32
Definition: base_roi_filter.h:30
bool Filter(const ROIFilterOptions &options, LidarFrame *frame) override
std::shared_ptr< ROIService > ROIServicePtr
Definition: roi_service.h:92
ROIServiceFilter()
Definition: roi_service_filter.h:30
Definition: lidar_frame.h:33
Definition: base_roi_filter.h:28
Definition: roi_service_filter.h:28