18 #ifndef _GAZEBO_NOISE_HH_
19 #define _GAZEBO_NOISE_HH_
24 #include <boost/function.hpp>
49 public:
static NoisePtr NewNoiseModel(sdf::ElementPtr _sdf,
50 const std::string &_sensorType =
"");
70 public:
explicit Noise(NoiseType _type);
73 public:
virtual ~
Noise();
78 public:
virtual void Load(sdf::ElementPtr _sdf);
83 public:
double Apply(
double _in);
89 public:
virtual double ApplyImpl(
double _in);
92 public:
virtual void Fini();
96 public: NoiseType GetNoiseType()
const;
102 public:
virtual void SetCustomNoiseCallback(
103 boost::function<
double (
double)> _cb);
113 public:
virtual void Print(std::ostream &_out)
const;
116 private: NoiseType type;
119 private: sdf::ElementPtr sdf;
122 private: boost::function<double (double)> customNoiseCallback;
std::shared_ptr< Noise > NoisePtr
Definition: SensorTypes.hh:119
Use this noise manager for creating and loading noise models.
Definition: Noise.hh:40
Forward declarations and typedefs for sensors.
NoiseType
Which noise types we support.
Definition: Noise.hh:58
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:59
boost::shared_ptr< Camera > CameraPtr
Definition: RenderTypes.hh:88
Noise models for sensor output signals.
Definition: Noise.hh:55