Apollo 11.0
自动驾驶开放平台
barrier_recognition_bank.h
浏览该文件的文档.
1/******************************************************************************
2 * Copyright 2024 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
17#pragma once
18
19#include <string>
20#include <map>
21
22#include "cyber/common/log.h"
23#include "cyber/common/file.h"
24
27
28namespace apollo {
29namespace perception {
30namespace lidar {
31
33public:
35 virtual ~BarrierRecognizerBank() = default;
36
45
56 bool Recognize(const BarrierRecognizerOptions& options,
57 LidarFrame *frame, float& open_percent);
58
64 std::string Name() const { return "BarrierRecognizer"; }
65
71 std::size_t Size() const { return barrier_bank_map_.size(); }
72
73private:
74 std::map<std::string, std::shared_ptr<BaseBarrierRecognizer>>
75 barrier_bank_map_;
76
78};
79
80} // namespace lidar
81} // namespace perception
82} // namespace apollo
bool Init(const BarrierRecognizerInitOptions &options=BarrierRecognizerInitOptions())
Init of BarrierRecognizerBank object
std::size_t Size() const
Number of recognizer banks
bool Recognize(const BarrierRecognizerOptions &options, LidarFrame *frame, float &open_percent)
calculate the relative position of the vehicle based on the reflector
#define DISALLOW_COPY_AND_ASSIGN(classname)
Definition macros.h:48
class register implement
Definition arena_queue.h:37