Apollo  6.0
Open source self driving car software
dummy_algorithms.h
Go to the documentation of this file.
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 // #include "modules/perception/radar/lib/interface/base_matcher.h"
25 // #include "modules/perception/radar/lib/interface/base_filter.h"
26 // #include "modules/perception/radar/lib/interface/base_tracker.h"
27 
28 namespace apollo {
29 namespace perception {
30 namespace radar {
31 
33  public:
35  virtual ~DummyPreprocessor() = default;
36 
37  bool Init() override;
38  bool Preprocess(const drivers::ContiRadar& raw_obstacles,
39  const PreprocessorOptions& options,
40  drivers::ContiRadar* corrected_obstacles) override;
41  std::string Name() const override;
42 
43  private:
44  DISALLOW_COPY_AND_ASSIGN(DummyPreprocessor);
45 };
46 
47 class DummyDetector : public BaseDetector {
48  public:
50  virtual ~DummyDetector() = default;
51 
52  bool Init() override;
53  bool Detect(const drivers::ContiRadar& corrected_obstacles,
54  const DetectorOptions& options,
55  base::FramePtr detected_frame) override;
56  std::string Name() const override;
57 
58  private:
59  void ContiObs2Frame(const drivers::ContiRadar& corrected_obstacles,
60  base::FramePtr radar_frame);
61 
63 };
64 
65 class DummyRoiFilter : public BaseRoiFilter {
66  public:
68  virtual ~DummyRoiFilter() = default;
69 
70  bool Init() override;
71  bool RoiFilter(const RoiFilterOptions& options,
72  base::FramePtr radar_frame) override;
73  std::string Name() const override;
74 
75  private:
77 };
78 
79 } // namespace radar
80 } // namespace perception
81 } // namespace apollo
Definition: base_detector.h:72
Definition: base_roi_filter.h:69
Definition: base_preprocessor.h:75
std::shared_ptr< Frame > FramePtr
Definition: frame.h:60
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
Definition: base_preprocessor.h:71
#define DISALLOW_COPY_AND_ASSIGN(classname)
Definition: macros.h:48
Definition: base_roi_filter.h:73
DummyRoiFilter()
Definition: dummy_algorithms.h:67
DummyDetector()
Definition: dummy_algorithms.h:49
Definition: dummy_algorithms.h:65
bool Preprocess(const drivers::ContiRadar &raw_obstacles, const PreprocessorOptions &options, drivers::ContiRadar *corrected_obstacles) override
Definition: dummy_algorithms.h:47
Definition: dummy_algorithms.h:32
Definition: base_detector.h:80
DummyPreprocessor()
Definition: dummy_algorithms.h:34