Apollo
11.0
自动驾驶开放平台
base_roi_filter.h
浏览该文件的文档.
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
21
#include "
cyber/common/macros.h
"
22
#include "
cyber/plugin_manager/plugin_manager.h
"
23
#include "
modules/perception/common/lidar/common/lidar_frame.h
"
24
#include "
modules/perception/common/lib/interface/base_init_options.h
"
25
26
namespace
apollo
{
27
namespace
perception {
28
namespace
lidar {
29
30
using
apollo::perception::BaseInitOptions
;
31
32
struct
ROIFilterInitOptions
:
public
BaseInitOptions
{
33
};
34
35
struct
ROIFilterOptions
{};
36
37
class
BaseROIFilter
{
38
public
:
43
BaseROIFilter
() =
default
;
44
49
virtual
~BaseROIFilter
() =
default
;
50
58
virtual
bool
Init
(
59
const
ROIFilterInitOptions
& options =
ROIFilterInitOptions
()) = 0;
60
69
virtual
bool
Filter
(
const
ROIFilterOptions
& options,
LidarFrame
* frame) = 0;
70
76
virtual
std::string
Name
()
const
= 0;
77
78
private
:
79
DISALLOW_COPY_AND_ASSIGN
(
BaseROIFilter
);
80
};
// class BaseROIFilter
81
82
}
// namespace lidar
83
}
// namespace perception
84
}
// namespace apollo
base_init_options.h
apollo::perception::lidar::BaseROIFilter
Definition
base_roi_filter.h:37
apollo::perception::lidar::BaseROIFilter::Init
virtual bool Init(const ROIFilterInitOptions &options=ROIFilterInitOptions())=0
Init of Base ROI Filter
apollo::perception::lidar::BaseROIFilter::~BaseROIFilter
virtual ~BaseROIFilter()=default
Destroy the Base ROI Filter object
apollo::perception::lidar::BaseROIFilter::BaseROIFilter
BaseROIFilter()=default
Construct a new Base ROI Filter object
apollo::perception::lidar::BaseROIFilter::Filter
virtual bool Filter(const ROIFilterOptions &options, LidarFrame *frame)=0
Filter roi points from point cloud
apollo::perception::lidar::BaseROIFilter::Name
virtual std::string Name() const =0
Name of Base ROI Filter
macros.h
DISALLOW_COPY_AND_ASSIGN
#define DISALLOW_COPY_AND_ASSIGN(classname)
Definition
macros.h:48
plugin_manager.h
lidar_frame.h
apollo
class register implement
Definition
arena_queue.h:37
apollo::perception::BaseInitOptions
Definition
base_init_options.h:23
apollo::perception::lidar::LidarFrame
Definition
lidar_frame.h:33
apollo::perception::lidar::ROIFilterInitOptions
Definition
base_roi_filter.h:32
apollo::perception::lidar::ROIFilterOptions
Definition
base_roi_filter.h:35
modules
perception
pointcloud_map_based_roi
interface
base_roi_filter.h