Apollo
11.0
自动驾驶开放平台
radar_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 <memory>
19
#include <string>
20
#include <vector>
21
#include "
modules/perception/common/base/radar_point_cloud.h
"
22
23
#include "
modules/perception/radar4d_detection/interface/base_obstacle_perception.h
"
24
#include "
modules/perception/radar4d_detection/lib/object_builder/object_builder.h
"
25
#include "
modules/perception/radar4d_detection/lib/classifier/fused_classifier.h
"
26
#include "
modules/perception/radar4d_detection/lib/tracker/multi_radar_fusion/mrf_engine.h
"
27
28
namespace
apollo
{
29
namespace
perception {
30
namespace
radar4d {
31
32
class
RadarObstaclePerception
:
public
BaseRadarObstaclePerception
{
33
public
:
38
RadarObstaclePerception
() =
default
;
39
virtual
~RadarObstaclePerception
() =
default
;
40
49
bool
Init
(
const
PerceptionInitOptions
&options)
override
;
50
61
bool
Perceive
(
RadarFrame
* frame,
62
const
RadarPerceptionOptions
& options,
63
std::vector<base::ObjectPtr>* objects)
override
;
64
70
std::string
Name
()
const override
;
71
72
private
:
73
std::shared_ptr<BaseDetector> detector_;
74
ObjectBuilder
builder_;
75
std::shared_ptr<BaseRoiFilter> roi_filter_;
76
BaseMultiTargetTracker
* multi_target_tracker_;
77
BaseClassifier
* fusion_classifier_;
78
bool
enable_roi_filter_ =
false
;
79
};
80
81
}
// namespace radar4d
82
}
// namespace perception
83
}
// namespace apollo
base_obstacle_perception.h
apollo::perception::radar4d::BaseClassifier
Definition
base_classifier.h:36
apollo::perception::radar4d::BaseMultiTargetTracker
Definition
base_multi_target_tracker.h:36
apollo::perception::radar4d::BaseRadarObstaclePerception
Definition
base_obstacle_perception.h:41
apollo::perception::radar4d::ObjectBuilder
Definition
object_builder.h:36
apollo::perception::radar4d::RadarObstaclePerception
Definition
radar_obstacle_perception.h:32
apollo::perception::radar4d::RadarObstaclePerception::Perceive
bool Perceive(RadarFrame *frame, const RadarPerceptionOptions &options, std::vector< base::ObjectPtr > *objects) override
Process radar frame with preprocessed point cloud, and get targets after detection and tracking.
Definition
radar_obstacle_perception.cc:95
apollo::perception::radar4d::RadarObstaclePerception::Name
std::string Name() const override
The name of the radar object detection processor
Definition
radar_obstacle_perception.cc:149
apollo::perception::radar4d::RadarObstaclePerception::Init
bool Init(const PerceptionInitOptions &options) override
Init the radar object detection processor includes config, create classes, etc.
Definition
radar_obstacle_perception.cc:30
apollo::perception::radar4d::RadarObstaclePerception::RadarObstaclePerception
RadarObstaclePerception()=default
Radar object detection processor, which include 3 steps: object detection, ROI filtering and tracking...
apollo::perception::radar4d::RadarObstaclePerception::~RadarObstaclePerception
virtual ~RadarObstaclePerception()=default
mrf_engine.h
apollo
class register implement
Definition
arena_queue.h:37
fused_classifier.h
object_builder.h
radar_point_cloud.h
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
modules
perception
radar4d_detection
app
radar_obstacle_perception.h