Apollo 11.0
自动驾驶开放平台
base_fusion_system.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#include <vector>
20
21#include "cyber/common/macros.h"
28
29namespace apollo {
30namespace perception {
31namespace fusion {
32
34
36 public:
37 BaseFusionSystem() = default;
38 virtual ~BaseFusionSystem() = default;
39
47 virtual bool Init(const FusionInitOptions& options) = 0;
48
57 virtual bool Fuse(const base::FrameConstPtr& sensor_frame,
58 std::vector<base::ObjectPtr>* fused_objects) = 0;
59
65 virtual std::string Name() const = 0;
66
67 protected:
69};
70
72#define FUSION_REGISTER_FUSIONSYSTEM(name) \
73 PERCEPTION_REGISTER_CLASS(BaseFusionSystem, name)
74
75} // namespace fusion
76} // namespace perception
77} // namespace apollo
virtual bool Fuse(const base::FrameConstPtr &sensor_frame, std::vector< base::ObjectPtr > *fused_objects)=0
fuse a sensor frame
virtual std::string Name() const =0
The name of BaseFusionSystem
virtual bool Init(const FusionInitOptions &options)=0
Init base fusion system config
std::shared_ptr< const Frame > FrameConstPtr
Definition frame.h:61
class register implement
Definition arena_queue.h:37
#define PERCEPTION_REGISTER_REGISTERER(base_class)
Definition registerer.h:92