Apollo 11.0
自动驾驶开放平台
pointcloud_semantic_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 <string>
20#include <memory>
21
22#include "cyber/common/file.h"
23#include "cyber/common/log.h"
26#include "modules/perception/pointcloud_semantics/proto/pointcloud_semantic_component_config.pb.h"
28
29namespace apollo {
30namespace perception {
31namespace lidar {
32
33using onboard::LidarFrameMessage;
34
35class PointCloudSemanticComponent final : public cyber::Component<LidarFrameMessage> {
36public:
45 bool Init() override;
53 bool Proc(const std::shared_ptr<LidarFrameMessage>& message) override;
54
55private:
61 bool InternalProc(const std::shared_ptr<LidarFrameMessage>& in_message);
62
63private:
64 std::string output_channel_name_;
65 std::shared_ptr<apollo::cyber::Writer<LidarFrameMessage>> writer_;
66 std::shared_ptr<BasePointCloudParser> parser_;
67};
68
70
71} // namespace lidar
72} // namespace perception
73} // namespace apollo
bool Proc(const std::shared_ptr< LidarFrameMessage > &message) override
Process of pointcloud semantic component
bool Init() override
Init pointcloud semantic component
#define CYBER_REGISTER_COMPONENT(name)
Definition component.h:657
class register implement
Definition arena_queue.h:37