Apollo 11.0
自动驾驶开放平台
base_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 <string>
19#include <vector>
20
25
26namespace apollo {
27namespace perception {
28namespace radar {
29
31
38
40 public:
46 virtual ~BaseRadarObstaclePerception() = default;
47
55 virtual bool Init(const PerceptionInitOptions& options) = 0;
56
67 virtual bool Perceive(const drivers::ContiRadar& corrected_obstacles,
68 const RadarPerceptionOptions& options,
69 std::vector<base::ObjectPtr>* objects) = 0;
70
76 virtual std::string Name() const = 0;
77};
78
80#define PERCEPTION_REGISTER_RADAR_OBSTACLE_PERCEPTION(name) \
81 PERCEPTION_REGISTER_CLASS(BaseRadarObstaclePerception, name)
82
83} // namespace radar
84} // namespace perception
85} // namespace apollo
BaseRadarObstaclePerception()=default
Construct a new Base Radar Obstacle Perception object
virtual std::string Name() const =0
The name of the radar object detection processor
virtual bool Init(const PerceptionInitOptions &options)=0
Init radar object detection processor
virtual bool Perceive(const drivers::ContiRadar &corrected_obstacles, const RadarPerceptionOptions &options, std::vector< base::ObjectPtr > *objects)=0
Process the radar raw data obtained from radar driver, and get targets after tracking.
class register implement
Definition arena_queue.h:37
#define PERCEPTION_REGISTER_REGISTERER(base_class)
Definition registerer.h:92