Apollo 11.0
自动驾驶开放平台
camera_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#pragma once
17
18#include <memory>
19#include <string>
20
22#include "cyber/cyber.h"
23
24#include "modules/perception/camera_tracking/proto/omt.pb.h"
29
30namespace apollo {
31namespace perception {
32namespace camera {
33
35 : public apollo::cyber::Component<onboard::CameraFrame> {
36 public:
39
40 bool Init() override;
41 bool Proc(
42 const std::shared_ptr<onboard::CameraFrame>& message) override;
43
44 private:
45 bool InternalProc(
46 const std::shared_ptr<const onboard::CameraFrame>& in_message,
47 std::shared_ptr<onboard::SensorFrameMessage> out_message);
48
49 std::string output_channel_name_;
50 std::shared_ptr<BaseObstacleTracker> camera_obstacle_tracker_;
51 std::shared_ptr<apollo::cyber::Writer<onboard::SensorFrameMessage>> writer_;
52 algorithm::SensorManager* sensor_manager_ = nullptr;
53 OmtParam camera_tracker_config_;
54};
55
57
58} // namespace camera
59} // namespace perception
60} // namespace apollo
bool Proc(const std::shared_ptr< onboard::CameraFrame > &message) override
#define CYBER_REGISTER_COMPONENT(name)
Definition component.h:657
class register implement
Definition arena_queue.h:37