gz/sensors/Noise.hh
Go to the documentation of this file.
Use this noise manager for creating and loading noise models.
Definition: gz/sensors/Noise.hh:43
static NoisePtr NewNoiseModel(const sdf::Noise &_sdf, const std::string &_sensorType="")
Load a noise model based on the input sdf parameters and sensor type.
static NoisePtr NewNoiseModel(sdf::ElementPtr _sdf, const std::string &_sensorType="")
Load a noise model based on the input sdf parameters and sensor type.
Noise(NoiseType _type)
Constructor. This should not be called directly unless creating an empty noise model....
virtual void Load(const sdf::Noise &_sdf)
Load noise parameters from sdf.
virtual double ApplyImpl(double _in, double _dt)
Apply noise to input data value. This gets overriden by derived classes, and called by Apply.
virtual void SetCustomNoiseCallback(std::function< double(double, double)> _cb)
Register a custom noise callback.
double Apply(double _in, double _dt=0.0)
Apply noise to input data value.
virtual void Print(std::ostream &_out) const
Output information about the noise model.
Forward declarations and typedefs for sensors.
NoiseType
Which noise types we support.
Definition: gz/sensors/Noise.hh:67
@ GAUSSIAN
Definition: gz/sensors/AirPressureSensor.hh:32