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>
22
26
27namespace apollo {
28namespace perception {
29namespace radar4d {
30
32 // reserved
33};
34
40
42 public:
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
82#define PERCEPTION_REGISTER_RADAR_OBSTACLE_PERCEPTION(name) \
83 PERCEPTION_REGISTER_CLASS(BaseRadarObstaclePerception, name)
84
85} // namespace radar4d
86} // namespace perception
87} // namespace apollo
BaseRadarObstaclePerception()=default
Construct a new Base Radar Obstacle Perception object
virtual bool Init(const PerceptionInitOptions &options)=0
Init radar object detection processor
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.
virtual std::string Name() const =0
The name of the radar object detection processor
class register implement
Definition arena_queue.h:37
#define PERCEPTION_REGISTER_REGISTERER(base_class)
Definition registerer.h:92