gz/sensors/AirPressureSensor.hh
Go to the documentation of this file.
AirPressure Sensor Class.
Definition: gz/sensors/AirPressureSensor.hh:46
virtual bool Load(sdf::ElementPtr _sdf) override
Load the sensor with SDF parameters.
virtual bool Load(const sdf::Sensor &_sdf) override
Load the sensor based on data from an sdf::Sensor object.
virtual bool Update(const std::chrono::steady_clock::duration &_now) override
Update the sensor and generate data.
double ReferenceAltitude() const
Get the vertical reference altitude.
void SetReferenceAltitude(double _reference)
Set the reference altitude.
virtual bool Init() override
Initialize values in the sensor.
bool HasConnections() const
Check if there are any subscribers.
Definition: gz/sensors/AirPressureSensor.hh:32