Apollo 11.0
自动驾驶开放平台
pointcloud_map_based_roi_component.h
浏览该文件的文档.
1/******************************************************************************
2 * Copyright 2023 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 <memory>
20#include <numeric>
21#include <string>
22
23#include "modules/perception/pointcloud_map_based_roi/proto/pointcloud_map_based_roi_component_config.pb.h"
24
25#include "cyber/common/log.h"
31
32namespace apollo {
33namespace perception {
34namespace lidar {
35
36using onboard::LidarFrameMessage;
37
39 : public cyber::Component<LidarFrameMessage> {
40 public:
46
51 virtual ~PointCloudMapROIComponent() = default;
52
59 bool Init() override;
60
68 bool Proc(const std::shared_ptr<LidarFrameMessage>& message) override;
69
70 private:
71 bool InternalProc(const std::shared_ptr<LidarFrameMessage>& message);
72
73 private:
74 std::shared_ptr<cyber::Writer<LidarFrameMessage>> writer_;
75 std::string output_channel_name_;
76
77 bool use_map_manager_;
78 MapManager map_manager_;
79 std::shared_ptr<BaseROIFilter> roi_filter_;
80};
81
83
84} // namespace lidar
85} // namespace perception
86} // namespace apollo
PointCloudMapROIComponent()=default
Construct a new Point Cloud Map ROI Component object
virtual ~PointCloudMapROIComponent()=default
Destroy the Point Cloud Map ROI Component object
bool Proc(const std::shared_ptr< LidarFrameMessage > &message) override
Process of Point Cloud Map ROI Component object
bool Init() override
Init of Point Cloud Map ROI Component object
#define CYBER_REGISTER_COMPONENT(name)
Definition component.h:657
class register implement
Definition arena_queue.h:37