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
20
namespace
apollo
{
21
namespace
perception {
22
namespace
base {
23
29
enum class
SensorType
{
30
UNKNOWN_SENSOR_TYPE
= -1,
31
VELODYNE_128
= 0,
32
VELODYNE_64
= 1,
33
VELODYNE_32
= 2,
34
VELODYNE_16
= 3,
35
LDLIDAR_4
= 4,
36
LDLIDAR_1
= 5,
37
SHORT_RANGE_RADAR
= 6,
38
LONG_RANGE_RADAR
= 7,
39
MONOCULAR_CAMERA
= 8,
40
STEREO_CAMERA
= 9,
41
ULTRASONIC
= 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
bool
is_main_sensor
=
false
;
63
64
void
Reset
() {
65
name
=
"UNKNONW_SENSOR"
;
66
type
=
SensorType::UNKNOWN_SENSOR_TYPE
;
67
orientation
=
SensorOrientation::FRONT
;
68
frame_id
=
"UNKNOWN_FRAME_ID"
;
69
is_main_sensor
=
false
;
70
}
71
};
72
73
}
// namespace base
74
}
// namespace perception
75
}
// namespace apollo
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::VELODYNE_128
@ VELODYNE_128
apollo::perception::base::SensorType::LONG_RANGE_RADAR
@ LONG_RANGE_RADAR
apollo::perception::base::SensorType::ULTRASONIC
@ ULTRASONIC
apollo::perception::base::SensorType::VELODYNE_64
@ VELODYNE_64
apollo::perception::base::SensorType::MONOCULAR_CAMERA
@ MONOCULAR_CAMERA
apollo::perception::base::SensorType::UNKNOWN_SENSOR_TYPE
@ UNKNOWN_SENSOR_TYPE
apollo::perception::base::SensorType::VELODYNE_16
@ VELODYNE_16
apollo::perception::base::SensorType::SHORT_RANGE_RADAR
@ SHORT_RANGE_RADAR
apollo::perception::base::SensorType::VELODYNE_32
@ VELODYNE_32
apollo::perception::base::SensorType::LDLIDAR_1
@ LDLIDAR_1
apollo::perception::base::SensorType::STEREO_CAMERA
@ STEREO_CAMERA
apollo::perception::base::SensorType::SENSOR_TYPE_NUM
@ SENSOR_TYPE_NUM
apollo::perception::base::SensorType::LDLIDAR_4
@ LDLIDAR_4
apollo::perception::base::SensorOrientation
SensorOrientation
Definition
sensor_meta.h:45
apollo::perception::base::SensorOrientation::LEFT_FORWARD
@ LEFT_FORWARD
apollo::perception::base::SensorOrientation::LEFT_BACKWARD
@ LEFT_BACKWARD
apollo::perception::base::SensorOrientation::RIGHT
@ RIGHT
apollo::perception::base::SensorOrientation::RIGHT_FORWARD
@ RIGHT_FORWARD
apollo::perception::base::SensorOrientation::REAR
@ REAR
apollo::perception::base::SensorOrientation::LEFT
@ LEFT
apollo::perception::base::SensorOrientation::PANORAMIC
@ PANORAMIC
apollo::perception::base::SensorOrientation::FRONT
@ FRONT
apollo::perception::base::SensorOrientation::RIGHT_BACKWARD
@ RIGHT_BACKWARD
apollo
class register implement
Definition
arena_queue.h:37
apollo::perception::base::SensorInfo
Definition
sensor_meta.h:57
apollo::perception::base::SensorInfo::is_main_sensor
bool is_main_sensor
Definition
sensor_meta.h:62
apollo::perception::base::SensorInfo::type
SensorType type
Definition
sensor_meta.h:59
apollo::perception::base::SensorInfo::orientation
SensorOrientation orientation
Definition
sensor_meta.h:60
apollo::perception::base::SensorInfo::frame_id
std::string frame_id
Definition
sensor_meta.h:61
apollo::perception::base::SensorInfo::name
std::string name
Definition
sensor_meta.h:58
apollo::perception::base::SensorInfo::Reset
void Reset()
Definition
sensor_meta.h:64
modules
perception
common
base
sensor_meta.h