Apollo 11.0
自动驾驶开放平台
base_preprocessor.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
20#include "modules/common_msgs/sensor_msgs/conti_radar.pb.h"
21
22#include "cyber/common/macros.h"
26
27namespace apollo {
28namespace perception {
29namespace radar {
30
32 // reserved
33};
34
36 // reserved
37};
38
40 public:
45 BasePreprocessor() = default;
46 virtual ~BasePreprocessor() = default;
47
55 virtual bool Init(const PreprocessorInitOptions& options) = 0;
56
66 virtual bool Preprocess(const drivers::ContiRadar& raw_obstacles,
67 const PreprocessorOptions& options,
68 drivers::ContiRadar* corrected_obstacles) = 0;
69
75 virtual std::string Name() const = 0;
76
77 private:
79};
80
82#define PERCEPTION_REGISTER_PREPROCESSOR(name) \
83 PERCEPTION_REGISTER_CLASS(BasePreprocessor, name)
84
85} // namespace radar
86} // namespace perception
87} // namespace apollo
virtual std::string Name() const =0
The name of the radar base Preprocessor
BasePreprocessor()=default
Construct a new Base Preprocessor object
virtual bool Init(const PreprocessorInitOptions &options)=0
Init base preprocessor config
virtual bool Preprocess(const drivers::ContiRadar &raw_obstacles, const PreprocessorOptions &options, drivers::ContiRadar *corrected_obstacles)=0
Correct radar raw obstacles.
#define DISALLOW_COPY_AND_ASSIGN(classname)
Definition macros.h:48
class register implement
Definition arena_queue.h:37
#define PERCEPTION_REGISTER_REGISTERER(base_class)
Definition registerer.h:92