Gazebo Sensors
API Reference
10.1.1
insert_drive_file
Tutorials
library_books
Classes
toc
Namespaces
insert_drive_file
Files
launch
Gazebo Website
Index
List
Hierarchy
Members: All
Members: Functions
Members: Variables
Members: Typedefs
Members: Enumerations
Members: Enumerator
List
Members
Functions
Typedefs
Variables
Enumerations
Enumerator
src
gz-sensors
include
gz
sensors
SensorTypes.hh
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2018 Open Source Robotics Foundation
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
*/
17
#ifndef GZ_SENSORS_SENSORTYPES_HH_
18
#define GZ_SENSORS_SENSORTYPES_HH_
19
20
#include <vector>
21
#include <memory>
22
23
#include <gz/common/EnumIface.hh>
24
#include <gz/sensors/config.hh>
25
#include <gz/sensors/Export.hh>
26
29
namespace
gz
30
{
32
namespace
sensors
33
{
34
// Inline bracket to help doxygen filtering.
35
inline
namespace
GZ_SENSORS_VERSION_NAMESPACE {
36
// Forward declarations.
37
class
AltimeterSensor;
38
class
CameraSensor;
39
class
GpuLidarSensor;
40
class
GaussianNoiseModel;
41
class
ImageGaussianNoiseModel;
42
class
Noise;
43
class
Distortion;
44
class
BrownDistortionModel;
45
class
ImageBrownDistortionModel;
46
class
Sensor;
47
50
typedef
std::shared_ptr<Sensor>
SensorPtr
;
51
54
typedef
std::shared_ptr<CameraSensor>
CameraSensorPtr
;
55
58
typedef
std::shared_ptr<GpuLidarSensor>
GpuLidarSensorPtr
;
59
62
typedef
std::shared_ptr<Noise>
NoisePtr
;
63
66
typedef
std::shared_ptr<GaussianNoiseModel>
GaussianNoiseModelPtr
;
67
69
typedef
std::shared_ptr<ImageGaussianNoiseModel>
70
ImageGaussianNoiseModelPtr
;
71
74
typedef
std::shared_ptr<Distortion>
DistortionPtr
;
75
78
typedef
std::shared_ptr<BrownDistortionModel>
BrownDistortionModelPtr
;
79
82
typedef
std::shared_ptr<ImageBrownDistortionModel>
83
ImageBrownDistortionModelPtr
;
84
87
typedef
std::vector<SensorPtr>
Sensor_V
;
88
91
typedef
std::vector<CameraSensorPtr>
CameraSensor_V
;
92
95
typedef
std::vector<GpuLidarSensorPtr>
GpuLidarSensor_V
;
96
99
enum
SensorNoiseType
100
{
104
SENSOR_NOISE_TYPE_BEGIN
= 0,
105
108
NO_NOISE
=
SENSOR_NOISE_TYPE_BEGIN
,
109
112
CAMERA_NOISE
= 1,
113
116
MAGNETOMETER_X_NOISE_TESLA
= 2,
117
120
MAGNETOMETER_Y_NOISE_TESLA
= 3,
121
124
MAGNETOMETER_Z_NOISE_TESLA
= 4,
125
128
ALTIMETER_VERTICAL_POSITION_NOISE_METERS
= 5,
129
132
ALTIMETER_VERTICAL_VELOCITY_NOISE_METERS_PER_S
= 6,
133
136
AIR_PRESSURE_NOISE_PASCALS
= 7,
137
140
ACCELEROMETER_X_NOISE_M_S_S
= 8,
141
144
ACCELEROMETER_Y_NOISE_M_S_S
= 9,
145
148
ACCELEROMETER_Z_NOISE_M_S_S
= 10,
149
152
GYROSCOPE_X_NOISE_RAD_S
= 11,
153
156
GYROSCOPE_Y_NOISE_RAD_S
= 12,
157
160
GYROSCOPE_Z_NOISE_RAD_S
= 13,
161
164
LIDAR_NOISE
= 14,
165
168
FORCE_X_NOISE_N
= 15,
169
172
FORCE_Y_NOISE_N
= 16,
173
176
FORCE_Z_NOISE_N
= 17,
177
180
TORQUE_X_NOISE_N_M
= 18,
181
184
TORQUE_Y_NOISE_N_M
= 19,
185
188
TORQUE_Z_NOISE_N_M
= 20,
189
192
NAVSAT_HORIZONTAL_POSITION_NOISE
= 21,
193
196
NAVSAT_VERTICAL_POSITION_NOISE
= 22,
197
200
NAVSAT_HORIZONTAL_VELOCITY_NOISE
= 23,
201
204
NAVSAT_VERTICAL_VELOCITY_NOISE
= 24,
205
208
AIR_SPEED_NOISE_PASCALS
= 25,
209
213
SENSOR_NOISE_TYPE_END
214
};
215
216
219
enum
SensorDistortionType
220
{
224
SENSOR_DISTORTION_TYPE_BEGIN
= 0,
225
228
NO_DISTORTION
=
SENSOR_DISTORTION_TYPE_BEGIN
,
229
232
CAMERA_DISTORTION
= 1,
233
237
SENSOR_DISTORTION_TYPE_END
238
};
239
242
enum
SensorCategory
243
{
244
// IMAGE must be the first element, and it must start with 0. Do not
245
// change this! See SensorManager::sensorContainers for reference.
248
IMAGE
= 0,
249
251
RAY
= 1,
252
254
OTHER
= 2,
255
257
CATEGORY_COUNT
= 3
258
};
259
}
260
}
261
}
262
#endif