Apollo 11.0
自动驾驶开放平台
mlf_base_filter.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"
25
26namespace apollo {
27namespace perception {
28namespace lidar {
29
31
33
35
37 public:
38 MlfBaseFilter() = default;
39 virtual ~MlfBaseFilter() = default;
47 virtual bool Init(
48 const MlfFilterInitOptions& options = MlfFilterInitOptions()) = 0;
49
57 virtual void UpdateWithObject(const MlfFilterOptions& options,
58 const MlfTrackDataConstPtr& track_data,
59 TrackedObjectPtr new_object) = 0;
60
68 virtual void UpdateWithoutObject(const MlfFilterOptions& options,
69 double timestamp,
70 MlfTrackDataPtr track_data) = 0;
76 virtual std::string Name() const = 0;
77
78 private:
80}; // class MlfBaseFilter
81
83#define PERCEPTION_REGISTER_MLFFILTER(name) \
84 PERCEPTION_REGISTER_CLASS(MlfBaseFilter, name)
85
86} // namespace lidar
87} // namespace perception
88} // namespace apollo
virtual std::string Name() const =0
Get class name
virtual bool Init(const MlfFilterInitOptions &options=MlfFilterInitOptions())=0
Init mlf fitler
virtual void UpdateWithoutObject(const MlfFilterOptions &options, double timestamp, MlfTrackDataPtr track_data)=0
Interface for updating filter without object
virtual void UpdateWithObject(const MlfFilterOptions &options, const MlfTrackDataConstPtr &track_data, TrackedObjectPtr new_object)=0
Interface for updating filter with object
#define DISALLOW_COPY_AND_ASSIGN(classname)
Definition macros.h:48
std::shared_ptr< const MlfTrackData > MlfTrackDataConstPtr
std::shared_ptr< MlfTrackData > MlfTrackDataPtr
std::shared_ptr< TrackedObject > TrackedObjectPtr
class register implement
Definition arena_queue.h:37
#define PERCEPTION_REGISTER_REGISTERER(base_class)
Definition registerer.h:92