Apollo 10.0
自动驾驶开放平台
sensor_meta.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
20namespace apollo {
21namespace perception {
22namespace base {
23
29enum class SensorType {
31 VELODYNE_128 = 0,
32 VELODYNE_64 = 1,
33 VELODYNE_32 = 2,
34 VELODYNE_16 = 3,
35 LDLIDAR_4 = 4,
36 LDLIDAR_1 = 5,
40 STEREO_CAMERA = 9,
41 ULTRASONIC = 10,
43};
44
46 FRONT = 0,
47 LEFT_FORWARD = 1,
48 LEFT = 2,
49 LEFT_BACKWARD = 3,
50 REAR = 4,
52 RIGHT = 6,
53 RIGHT_FORWARD = 7,
54 PANORAMIC = 8
55};
56
57struct SensorInfo {
58 std::string name = "UNKNONW_SENSOR";
61 std::string frame_id = "UNKNOWN_FRAME_ID";
62 bool is_main_sensor = false;
63
64 void Reset() {
65 name = "UNKNONW_SENSOR";
68 frame_id = "UNKNOWN_FRAME_ID";
69 is_main_sensor = false;
70 }
71};
72
73} // namespace base
74} // namespace perception
75} // namespace apollo
SensorType
Sensor types are set in the order of lidar, radar, camera, ultrasonic Please make sure SensorType has...
Definition sensor_meta.h:29
class register implement
Definition arena_queue.h:37