Apollo 11.0
自动驾驶开放平台
lidar_tracking_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 <string>
21
22#include "modules/perception/lidar_tracking/proto/lidar_tracking_component_config.pb.h"
23
24#include "cyber/common/log.h"
29
30namespace apollo {
31namespace perception {
32namespace lidar {
33
34using onboard::LidarFrameMessage;
35using onboard::SensorFrameMessage;
36
37class LidarTrackingComponent : public cyber::Component<LidarFrameMessage> {
38 public:
46 virtual ~LidarTrackingComponent() = default;
47
54 bool Init() override;
62 bool Proc(const std::shared_ptr<LidarFrameMessage>& message) override;
63
64 private:
71 bool InternalProc(const std::shared_ptr<const LidarFrameMessage>& in_message,
72 const std::shared_ptr<SensorFrameMessage>& out_message);
73
74 private:
75 BaseMultiTargetTracker* multi_target_tracker_;
76 BaseClassifier* fusion_classifier_;
77
78 std::shared_ptr<apollo::cyber::Writer<SensorFrameMessage>> writer_;
79};
80
82
83} // namespace lidar
84} // namespace perception
85} // namespace apollo
virtual ~LidarTrackingComponent()=default
Destructor
bool Proc(const std::shared_ptr< LidarFrameMessage > &message) override
Data callback upon receiving a LidarFrameMessage.
#define CYBER_REGISTER_COMPONENT(name)
Definition component.h:657
class register implement
Definition arena_queue.h:37