Apollo
6.0
Open source self driving car software
modules
perception
base
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
{
30
UNKNOWN_SENSOR_TYPE
= -1,
31
VELODYNE_64
= 0,
32
VELODYNE_32
= 1,
33
VELODYNE_16
= 2,
34
LDLIDAR_4
= 3,
35
LDLIDAR_1
= 4,
36
SHORT_RANGE_RADAR
= 5,
37
LONG_RANGE_RADAR
= 6,
38
MONOCULAR_CAMERA
= 7,
39
STEREO_CAMERA
= 8,
40
ULTRASONIC
= 9,
41
VELODYNE_128
= 10,
42
SENSOR_TYPE_NUM
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"
;
59
SensorType
type =
SensorType::UNKNOWN_SENSOR_TYPE
;
60
SensorOrientation
orientation =
SensorOrientation::FRONT
;
61
std::string frame_id =
"UNKNOWN_FRAME_ID"
;
62
void
Reset
() {
63
name =
"UNKNONW_SENSOR"
;
64
type =
SensorType::UNKNOWN_SENSOR_TYPE
;
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
apollo::perception::base::SensorType::MONOCULAR_CAMERA
apollo
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition:
atomic_hash_map.h:25
apollo::perception::base::SensorType::LDLIDAR_4
apollo::perception::base::SensorOrientation::RIGHT_FORWARD
apollo::perception::base::SensorType::VELODYNE_16
apollo::perception::base::SensorType::VELODYNE_64
apollo::perception::base::SensorOrientation::REAR
apollo::perception::base::SensorOrientation::FRONT
apollo::perception::base::SensorType::SENSOR_TYPE_NUM
apollo::perception::base::SensorType::SHORT_RANGE_RADAR
apollo::perception::base::SensorOrientation::LEFT_FORWARD
apollo::perception::base::SensorType::VELODYNE_128
apollo::perception::base::SensorOrientation::PANORAMIC
apollo::perception::base::SensorType::STEREO_CAMERA
apollo::perception::base::SensorInfo
Definition:
sensor_meta.h:57
apollo::perception::base::SensorType::LDLIDAR_1
apollo::perception::base::SensorOrientation::LEFT
apollo::perception::base::SensorOrientation::RIGHT_BACKWARD
apollo::perception::base::SensorType::UNKNOWN_SENSOR_TYPE
apollo::perception::base::SensorOrientation::RIGHT
apollo::perception::base::SensorOrientation::LEFT_BACKWARD
apollo::perception::base::SensorOrientation
SensorOrientation
Definition:
sensor_meta.h:45
apollo::perception::base::SensorType
SensorType
Sensor types are set in the order of lidar, radar, camera, ultrasonic Please make sure SensorType has...
Definition:
sensor_meta.h:29
apollo::perception::base::SensorType::LONG_RANGE_RADAR
apollo::perception::base::SensorType::VELODYNE_32
apollo::perception::base::SensorType::ULTRASONIC
apollo::perception::base::SensorInfo::Reset
void Reset()
Definition:
sensor_meta.h:62
Generated by
1.8.13