Apollo 11.0
自动驾驶开放平台
dummy_algorithms.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 "cyber/common/macros.h"
24
25namespace apollo {
26namespace perception {
27namespace radar {
28
30 public:
31 DummyPreprocessor() = default;
32 virtual ~DummyPreprocessor() = default;
33
41 bool Init(const PreprocessorInitOptions& options) override;
42
52 bool Preprocess(const drivers::ContiRadar& raw_obstacles,
53 const PreprocessorOptions& options,
54 drivers::ContiRadar* corrected_obstacles) override;
55
61 std::string Name() const override;
62
63 private:
65};
66
68 public:
69 DummyDetector() = default;
70 virtual ~DummyDetector() = default;
71
79 bool Init(const DetectorInitOptions& options) override;
80
90 bool Detect(const drivers::ContiRadar& corrected_obstacles,
91 const DetectorOptions& options,
92 base::FramePtr detected_frame) override;
93
99 std::string Name() const override;
100
101 private:
102 void ContiObs2Frame(const drivers::ContiRadar& corrected_obstacles,
103 base::FramePtr radar_frame);
104
106};
107
109 public:
110 DummyRoiFilter() = default;
111 virtual ~DummyRoiFilter() = default;
112
120 bool Init(const RoiFilterInitOptions &options) override;
121
130 bool RoiFilter(const RoiFilterOptions& options,
131 base::FramePtr radar_frame) override;
132
138 std::string Name() const override;
139
140 private:
142};
143
144} // namespace radar
145} // namespace perception
146} // namespace apollo
bool Init(const DetectorInitOptions &options) override
Dummy Init
bool Detect(const drivers::ContiRadar &corrected_obstacles, const DetectorOptions &options, base::FramePtr detected_frame) override
Dummy detect
std::string Name() const override
The name of the DummyDetector
std::string Name() const override
The name of the DummyPreprocessor
bool Init(const PreprocessorInitOptions &options) override
Dummy Init
bool Preprocess(const drivers::ContiRadar &raw_obstacles, const PreprocessorOptions &options, drivers::ContiRadar *corrected_obstacles) override
Dummy preprocess
std::string Name() const override
The name of the DummyRoiFilter
bool RoiFilter(const RoiFilterOptions &options, base::FramePtr radar_frame) override
Dummy roi filter
bool Init(const RoiFilterInitOptions &options) override
Dummy Init
#define DISALLOW_COPY_AND_ASSIGN(classname)
Definition macros.h:48
std::shared_ptr< Frame > FramePtr
Definition frame.h:60
class register implement
Definition arena_queue.h:37