Apollo 10.0
自动驾驶开放平台
base_camera_perception.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"
24
25namespace apollo {
26namespace perception {
27namespace camera {
28
30 // TODO(Xun): modified to be configurable
31 std::string lane_calibration_working_sensor_name = "front_6mm";
32 std::string calibrator_method = "LaneLineCalibrator";
33};
34
36
38 public:
40 virtual ~BaseCameraPerception() = default;
41
42 virtual bool Init(const CameraPerceptionInitOptions &init_options) = 0;
43 virtual bool Perception(const CameraPerceptionOptions &options,
44 CameraFrame *frame) = 0;
45
46 virtual std::string Name() const = 0;
47
49};
50
52#define PERCEPTION_REGISTER_CAMERA_PERCEPTION(name) \
53 PERCEPTION_REGISTER_CLASS(BaseCameraPerception, name)
54
55} // namespace camera
56} // namespace perception
57} // namespace apollo
virtual bool Init(const CameraPerceptionInitOptions &init_options)=0
virtual bool Perception(const CameraPerceptionOptions &options, CameraFrame *frame)=0
class register implement
Definition arena_queue.h:37
#define PERCEPTION_REGISTER_REGISTERER(base_class)
Definition registerer.h:92