Apollo 11.0
自动驾驶开放平台
base_roi_filter.h
浏览该文件的文档.
1/******************************************************************************
2 * Copyright 2023 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#pragma once
17
18#include <string>
19
20#include "cyber/common/macros.h"
25
26namespace apollo {
27namespace perception {
28namespace radar4d {
29
31
35
37 public:
42 BaseRoiFilter() = default;
43 virtual ~BaseRoiFilter() = default;
44
52 virtual bool Init(const RoiFilterInitOptions& options) = 0;
53
62 virtual bool RoiFilter(const RoiFilterOptions& options,
63 RadarFrame* radar_frame) = 0;
64
70 virtual std::string Name() const = 0;
71
72 private:
74};
75
77#define PERCEPTION_REGISTER_ROI_FILTER(name) \
78 PERCEPTION_REGISTER_CLASS(BaseRoiFilter, name)
79
80} // namespace radar4d
81} // namespace perception
82} // namespace apollo
virtual bool Init(const RoiFilterInitOptions &options)=0
Init base roi filter config
virtual bool RoiFilter(const RoiFilterOptions &options, RadarFrame *radar_frame)=0
Filter the objects outside the ROI
BaseRoiFilter()=default
Construct a new Base Roi Filter object
virtual std::string Name() const =0
The name of the radar base Roi Filter
#define DISALLOW_COPY_AND_ASSIGN(classname)
Definition macros.h:48
std::shared_ptr< HdmapStruct > HdmapStructPtr
class register implement
Definition arena_queue.h:37
#define PERCEPTION_REGISTER_REGISTERER(base_class)
Definition registerer.h:92