Apollo 11.0
自动驾驶开放平台
base_detector.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
20#include "Eigen/Core"
21
22#include "modules/common_msgs/sensor_msgs/oculii_radar.pb.h"
25
26#include "cyber/common/macros.h"
31
32namespace apollo {
33namespace perception {
34namespace radar4d {
35
37 // reserved
38};
39
41 Eigen::Matrix4d* radar2world_pose = nullptr;
42 Eigen::Matrix4d* radar2novatel_trans = nullptr;
43 Eigen::Vector3f car_linear_speed = Eigen::Vector3f::Zero();
44 Eigen::Vector3f car_angular_speed = Eigen::Vector3f::Zero();
46
47 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
48};
49
51 public:
56 BaseDetector() = default;
57 virtual ~BaseDetector() = default;
58
66 virtual bool Init(const DetectorInitOptions& options) = 0;
67
76 virtual bool Detect(RadarFrame* frame,
77 const DetectorOptions& options) = 0;
78
84 virtual std::string Name() const = 0;
85
86 private:
88};
89
91#define PERCEPTION_REGISTER_DETECTOR(name) \
92 PERCEPTION_REGISTER_CLASS(BaseDetector, name)
93
94} // namespace radar4d
95} // namespace perception
96} // namespace apollo
virtual std::string Name() const =0
The name of the radar base Detector
virtual bool Init(const DetectorInitOptions &options)=0
Init base detector object configs.
virtual bool Detect(RadarFrame *frame, const DetectorOptions &options)=0
Detect the objects from the radar point cloud
BaseDetector()=default
Construct a new Base Detector object
#define DISALLOW_COPY_AND_ASSIGN(classname)
Definition macros.h:48
std::shared_ptr< HdmapStruct > HdmapStructPtr
class register implement
Definition arena_queue.h:37
#define PERCEPTION_REGISTER_REGISTERER(base_class)
Definition registerer.h:92