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>
22
27
28namespace apollo {
29namespace perception {
30namespace radar4d {
31
33 public:
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
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.
std::string Name() const override
The name of the radar object detection processor
bool Init(const PerceptionInitOptions &options) override
Init the radar object detection processor includes config, create classes, etc.
RadarObstaclePerception()=default
Radar object detection processor, which include 3 steps: object detection, ROI filtering and tracking...
class register implement
Definition arena_queue.h:37