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