Apollo
11.0
自动驾驶开放平台
base_obstacle_perception.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
#include <vector>
20
#include "
modules/perception/common/base/radar_point_cloud.h
"
21
#include "
modules/perception/common/radar/common/radar_frame.h
"
22
23
#include "
modules/perception/common/lib/interface/base_init_options.h
"
24
#include "
modules/perception/radar4d_detection/interface/base_detector.h
"
25
#include "
modules/perception/radar4d_detection/interface/base_roi_filter.h
"
26
27
namespace
apollo
{
28
namespace
perception {
29
namespace
radar4d {
30
31
struct
PerceptionInitOptions
:
public
BaseInitOptions
{
32
// reserved
33
};
34
35
struct
RadarPerceptionOptions
{
36
DetectorOptions
detector_options
;
37
RoiFilterOptions
roi_filter_options
;
38
std::string
sensor_name
;
39
};
40
41
class
BaseRadarObstaclePerception
{
42
public
:
47
BaseRadarObstaclePerception
() =
default
;
48
virtual
~BaseRadarObstaclePerception
() =
default
;
49
57
virtual
bool
Init
(
const
PerceptionInitOptions
& options) = 0;
58
69
virtual
bool
Perceive
(
RadarFrame
* frame,
70
const
RadarPerceptionOptions
& options,
71
std::vector<base::ObjectPtr>* objects) = 0;
72
78
virtual
std::string
Name
()
const
= 0;
79
};
80
81
PERCEPTION_REGISTER_REGISTERER
(
BaseRadarObstaclePerception
);
82
#define PERCEPTION_REGISTER_RADAR_OBSTACLE_PERCEPTION(name) \
83
PERCEPTION_REGISTER_CLASS(BaseRadarObstaclePerception, name)
84
85
}
// namespace radar4d
86
}
// namespace perception
87
}
// namespace apollo
base_init_options.h
apollo::perception::radar4d::BaseRadarObstaclePerception
Definition
base_obstacle_perception.h:41
apollo::perception::radar4d::BaseRadarObstaclePerception::BaseRadarObstaclePerception
BaseRadarObstaclePerception()=default
Construct a new Base Radar Obstacle Perception object
apollo::perception::radar4d::BaseRadarObstaclePerception::Init
virtual bool Init(const PerceptionInitOptions &options)=0
Init radar object detection processor
apollo::perception::radar4d::BaseRadarObstaclePerception::Perceive
virtual bool Perceive(RadarFrame *frame, const RadarPerceptionOptions &options, std::vector< base::ObjectPtr > *objects)=0
Process radar frame with preprocessed point cloud, and get targets after detection and tracking.
apollo::perception::radar4d::BaseRadarObstaclePerception::Name
virtual std::string Name() const =0
The name of the radar object detection processor
apollo::perception::radar4d::BaseRadarObstaclePerception::~BaseRadarObstaclePerception
virtual ~BaseRadarObstaclePerception()=default
apollo
class register implement
Definition
arena_queue.h:37
base_detector.h
base_roi_filter.h
radar_frame.h
radar_point_cloud.h
PERCEPTION_REGISTER_REGISTERER
#define PERCEPTION_REGISTER_REGISTERER(base_class)
Definition
registerer.h:92
apollo::perception::BaseInitOptions
Definition
base_init_options.h:23
apollo::perception::radar4d::DetectorOptions
Definition
base_detector.h:40
apollo::perception::radar4d::PerceptionInitOptions
Definition
base_obstacle_perception.h:31
apollo::perception::radar4d::RadarFrame
Definition
radar_frame.h:32
apollo::perception::radar4d::RadarPerceptionOptions
Definition
base_obstacle_perception.h:35
apollo::perception::radar4d::RadarPerceptionOptions::detector_options
DetectorOptions detector_options
Definition
base_obstacle_perception.h:36
apollo::perception::radar4d::RadarPerceptionOptions::sensor_name
std::string sensor_name
Definition
base_obstacle_perception.h:38
apollo::perception::radar4d::RadarPerceptionOptions::roi_filter_options
RoiFilterOptions roi_filter_options
Definition
base_obstacle_perception.h:37
apollo::perception::radar4d::RoiFilterOptions
Definition
base_roi_filter.h:32
modules
perception
radar4d_detection
interface
base_obstacle_perception.h