Apollo  6.0
Open source self driving car software
conti_ars_detector.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"
21 
24 
25 namespace apollo {
26 namespace perception {
27 namespace radar {
28 
30  public:
32  virtual ~ContiArsDetector() {}
33 
34  bool Init() override;
35 
36  bool Detect(const drivers::ContiRadar& corrected_obstacles,
37  const DetectorOptions& options,
38  base::FramePtr detected_frame) override;
39 
40  std::string Name() const override;
41 
42  private:
43  void RawObs2Frame(const drivers::ContiRadar& corrected_obstacles,
44  const DetectorOptions& options, base::FramePtr radar_frame);
45 
46  DISALLOW_COPY_AND_ASSIGN(ContiArsDetector);
47 };
48 
49 } // namespace radar
50 } // namespace perception
51 } // namespace apollo
Definition: base_detector.h:72
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
ContiArsDetector()
Definition: conti_ars_detector.h:31
virtual ~ContiArsDetector()
Definition: conti_ars_detector.h:32
Definition: conti_ars_detector.h:29
bool Detect(const drivers::ContiRadar &corrected_obstacles, const DetectorOptions &options, base::FramePtr detected_frame) override
Definition: base_detector.h:80
std::string Name() const override