Gazebo Sensors
API Reference
8.2.2
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
30
namespace
gz
31
{
34
namespace
sensors
35
{
36
// Inline bracket to help doxygen filtering.
37
inline
namespace
GZ_SENSORS_VERSION_NAMESPACE {
38
// Forward declarations.
39
class
AltimeterSensor;
40
class
CameraSensor;
41
class
GpuLidarSensor;
42
class
GaussianNoiseModel;
43
class
ImageGaussianNoiseModel;
44
class
Noise;
45
class
Distortion;
46
class
BrownDistortionModel;
47
class
ImageBrownDistortionModel;
48
class
Sensor;
49
52
typedef
std::shared_ptr<Sensor>
SensorPtr
;
53
56
typedef
std::shared_ptr<CameraSensor>
CameraSensorPtr
;
57
60
typedef
std::shared_ptr<GpuLidarSensor>
GpuLidarSensorPtr
;
61
64
typedef
std::shared_ptr<Noise>
NoisePtr
;
65
68
typedef
std::shared_ptr<GaussianNoiseModel>
GaussianNoiseModelPtr
;
69
71
typedef
std::shared_ptr<ImageGaussianNoiseModel>
72
ImageGaussianNoiseModelPtr
;
73
76
typedef
std::shared_ptr<Distortion>
DistortionPtr
;
77
80
typedef
std::shared_ptr<BrownDistortionModel>
BrownDistortionModelPtr
;
81
84
typedef
std::shared_ptr<ImageBrownDistortionModel>
85
ImageBrownDistortionModelPtr
;
86
89
typedef
std::vector<SensorPtr>
Sensor_V
;
90
93
typedef
std::vector<CameraSensorPtr>
CameraSensor_V
;
94
97
typedef
std::vector<GpuLidarSensorPtr>
GpuLidarSensor_V
;
98
101
enum
SensorNoiseType
102
{
106
SENSOR_NOISE_TYPE_BEGIN
= 0,
107
110
NO_NOISE
=
SENSOR_NOISE_TYPE_BEGIN
,
111
114
CAMERA_NOISE
= 1,
115
118
MAGNETOMETER_X_NOISE_TESLA
= 2,
119
122
MAGNETOMETER_Y_NOISE_TESLA
= 3,
123
126
MAGNETOMETER_Z_NOISE_TESLA
= 4,
127
130
ALTIMETER_VERTICAL_POSITION_NOISE_METERS
= 5,
131
134
ALTIMETER_VERTICAL_VELOCITY_NOISE_METERS_PER_S
= 6,
135
138
AIR_PRESSURE_NOISE_PASCALS
= 7,
139
142
ACCELEROMETER_X_NOISE_M_S_S
= 8,
143
146
ACCELEROMETER_Y_NOISE_M_S_S
= 9,
147
150
ACCELEROMETER_Z_NOISE_M_S_S
= 10,
151
154
GYROSCOPE_X_NOISE_RAD_S
= 11,
155
158
GYROSCOPE_Y_NOISE_RAD_S
= 12,
159
162
GYROSCOPE_Z_NOISE_RAD_S
= 13,
163
166
LIDAR_NOISE
= 14,
167
170
FORCE_X_NOISE_N
= 15,
171
174
FORCE_Y_NOISE_N
= 16,
175
178
FORCE_Z_NOISE_N
= 17,
179
182
TORQUE_X_NOISE_N_M
= 18,
183
186
TORQUE_Y_NOISE_N_M
= 19,
187
190
TORQUE_Z_NOISE_N_M
= 20,
191
194
NAVSAT_HORIZONTAL_POSITION_NOISE
= 21,
195
198
NAVSAT_VERTICAL_POSITION_NOISE
= 22,
199
202
NAVSAT_HORIZONTAL_VELOCITY_NOISE
= 23,
203
206
NAVSAT_VERTICAL_VELOCITY_NOISE
= 24,
207
210
AIR_SPEED_NOISE_PASCALS
= 25,
211
215
SENSOR_NOISE_TYPE_END
216
};
217
218
221
enum
SensorDistortionType
222
{
226
SENSOR_DISTORTION_TYPE_BEGIN
= 0,
227
230
NO_DISTORTION
=
SENSOR_DISTORTION_TYPE_BEGIN
,
231
234
CAMERA_DISTORTION
= 1,
235
239
SENSOR_DISTORTION_TYPE_END
240
};
241
244
enum
SensorCategory
245
{
246
// IMAGE must be the first element, and it must start with 0. Do not
247
// change this! See SensorManager::sensorContainers for reference.
250
IMAGE
= 0,
251
253
RAY
= 1,
254
256
OTHER
= 2,
257
259
CATEGORY_COUNT
= 3
260
};
261
}
262
}
263
}
264
#endif