AirPressure contains information about a general purpose fluid pressure sensor. More...
#include <AirPressure.hh>
Public Member Functions | |
AirPressure () | |
Default constructor. More... | |
sdf::ElementPtr | Element () const |
Get a pointer to the SDF element that was used during load. More... | |
Errors | Load (ElementPtr _sdf) |
Load the airPressure based on an element pointer. More... | |
bool | operator!= (const AirPressure &_air) const |
Return true this AirPressure object does not contain the same values as the passed in parameter. More... | |
bool | operator== (const AirPressure &_air) const |
Return true if both AirPressure objects contain the same values. More... | |
const Noise & | PressureNoise () const |
Get the noise values. More... | |
double | ReferenceAltitude () const |
Get the reference altitude of the sensor in meters. More... | |
void | SetPressureNoise (const Noise &_noise) |
Set the noise values related to the pressure data. More... | |
void | SetReferenceAltitude (double _ref) |
Set the reference altitude of the sensor in meters. More... | |
AirPressure contains information about a general purpose fluid pressure sensor.
This sensor can be attached to a link.
sdf::v11::AirPressure::AirPressure | ( | ) |
Default constructor.
sdf::ElementPtr sdf::v11::AirPressure::Element | ( | ) | const |
Errors sdf::v11::AirPressure::Load | ( | ElementPtr | _sdf | ) |
bool sdf::v11::AirPressure::operator!= | ( | const AirPressure & | _air | ) | const |
Return true this AirPressure object does not contain the same values as the passed in parameter.
bool sdf::v11::AirPressure::operator== | ( | const AirPressure & | _air | ) | const |
Return true if both AirPressure objects contain the same values.
const Noise& sdf::v11::AirPressure::PressureNoise | ( | ) | const |
Get the noise values.
double sdf::v11::AirPressure::ReferenceAltitude | ( | ) | const |
Get the reference altitude of the sensor in meters.
This value can be used by a sensor implementation to augment the altitude of the sensor. For example, if you are using simulation instead of creating a 1000 m mountain model on which to place your sensor, you could instead set this value to 1000 and place your model on a ground plane with a Z height of zero.
void sdf::v11::AirPressure::SetPressureNoise | ( | const Noise & | _noise | ) |
Set the noise values related to the pressure data.
[in] | _noise | Noise values for the pressure data. |
void sdf::v11::AirPressure::SetReferenceAltitude | ( | double | _ref | ) |
Set the reference altitude of the sensor in meters.
[in] | _ref | Reference altitude in meters. |