Apollo  6.0
Open source self driving car software
sensor_meta.h
Go to the documentation of this file.
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 namespace apollo {
21 namespace perception {
22 namespace base {
23 
29 enum class SensorType {
31  VELODYNE_64 = 0,
32  VELODYNE_32 = 1,
33  VELODYNE_16 = 2,
34  LDLIDAR_4 = 3,
35  LDLIDAR_1 = 4,
37  LONG_RANGE_RADAR = 6,
38  MONOCULAR_CAMERA = 7,
39  STEREO_CAMERA = 8,
40  ULTRASONIC = 9,
41  VELODYNE_128 = 10,
43 };
44 
45 enum class SensorOrientation {
46  FRONT = 0,
47  LEFT_FORWARD = 1,
48  LEFT = 2,
49  LEFT_BACKWARD = 3,
50  REAR = 4,
51  RIGHT_BACKWARD = 5,
52  RIGHT = 6,
53  RIGHT_FORWARD = 7,
54  PANORAMIC = 8
55 };
56 
57 struct SensorInfo {
58  std::string name = "UNKNONW_SENSOR";
61  std::string frame_id = "UNKNOWN_FRAME_ID";
62  void Reset() {
63  name = "UNKNONW_SENSOR";
65  orientation = SensorOrientation::FRONT;
66  frame_id = "UNKNOWN_FRAME_ID";
67  }
68 };
69 
70 // TODO(All): remove
71 // typedef std::shared_ptr<SensorInfo> SensorInfoPtr;
72 
73 } // namespace base
74 } // namespace perception
75 } // namespace apollo
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
Definition: sensor_meta.h:57
SensorOrientation
Definition: sensor_meta.h:45
SensorType
Sensor types are set in the order of lidar, radar, camera, ultrasonic Please make sure SensorType has...
Definition: sensor_meta.h:29
void Reset()
Definition: sensor_meta.h:62