Gazebo Sensors

API Reference

8.2.1
NoiseFactory Class Reference

Use this noise manager for creating and loading noise models. More...

#include <gz/sensors/Noise.hh>

Static Public Member Functions

static NoisePtr NewNoiseModel (const sdf::Noise &_sdf, const std::string &_sensorType="")
 Load a noise model based on the input sdf parameters and sensor type. More...
 
static NoisePtr NewNoiseModel (sdf::ElementPtr _sdf, const std::string &_sensorType="")
 Load a noise model based on the input sdf parameters and sensor type. More...
 

Detailed Description

Use this noise manager for creating and loading noise models.

Member Function Documentation

◆ NewNoiseModel() [1/2]

static NoisePtr NewNoiseModel ( const sdf::Noise &  _sdf,
const std::string _sensorType = "" 
)
static

Load a noise model based on the input sdf parameters and sensor type.

Parameters
[in]_sdfNoise sdf parameters.
[in]_sensorTypeType of sensor. This is currently used to distinguish between image and non image sensors in order to create the appropriate noise model.
Returns
Pointer to the noise model created.

◆ NewNoiseModel() [2/2]

static NoisePtr NewNoiseModel ( sdf::ElementPtr  _sdf,
const std::string _sensorType = "" 
)
static

Load a noise model based on the input sdf parameters and sensor type.

Parameters
[in]_sdfNoise sdf parameters.
[in]_sensorTypeType of sensor. This is currently used to distinguish between image and non image sensors in order to create the appropriate noise model.
Returns
Pointer to the noise model created.

The documentation for this class was generated from the following file: