Apollo 11.0
自动驾驶开放平台
pbf_gatekeeper.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"
22
23namespace apollo {
24namespace perception {
25namespace fusion {
26
44
46 public:
49
57 bool Init(const GatekeeperInitOptions &options) override;
58
66 bool AbleToPublish(const TrackPtr& track) override;
67
68 std::string Name() const override { return "PbfGatekeeper"; }
69
70 private:
78 bool LidarAbleToPublish(const TrackPtr& track);
79
88 bool RadarAbleToPublish(const TrackPtr& track, bool is_night);
89
98 bool CameraAbleToPublish(const TrackPtr& track, bool is_night);
99
100 PbfGatekeeperParams params_;
101
103};
104
105} // namespace fusion
106} // namespace perception
107} // namespace apollo
bool Init(const GatekeeperInitOptions &options) override
Initialize
bool AbleToPublish(const TrackPtr &track) override
whether able to publish
std::string Name() const override
The name of BaseGatekeeper
#define DISALLOW_COPY_AND_ASSIGN(classname)
Definition macros.h:48
std::shared_ptr< Track > TrackPtr
Definition track.h:397
class register implement
Definition arena_queue.h:37