Apollo 11.0
自动驾驶开放平台
radar_obstacle_perception.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#pragma once
17
18#include <memory>
19#include <string>
20#include <vector>
21
23
24namespace apollo {
25namespace perception {
26namespace radar {
27
29 public:
35 virtual ~RadarObstaclePerception() = default;
36
45 bool Init(const PerceptionInitOptions &options) override;
46
57 bool Perceive(const drivers::ContiRadar& corrected_obstacles,
58 const RadarPerceptionOptions& options,
59 std::vector<base::ObjectPtr>* objects) override;
60
66 std::string Name() const override;
67
68 private:
69 std::shared_ptr<BaseDetector> detector_;
70 std::shared_ptr<BaseRoiFilter> roi_filter_;
71 std::shared_ptr<BaseTracker> tracker_;
72};
73
74} // namespace radar
75} // namespace perception
76} // namespace apollo
bool Perceive(const drivers::ContiRadar &corrected_obstacles, const RadarPerceptionOptions &options, std::vector< base::ObjectPtr > *objects) override
Process the radar raw data obtained from radar driver, and get targets after tracking.
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...
std::string Name() const override
The name of the radar object detection processor
class register implement
Definition arena_queue.h:37