gz/sensors/AltimeterSensor.hh
Go to the documentation of this file.
Altimeter Sensor Class.
Definition: gz/sensors/AltimeterSensor.hh:46
virtual bool Load(sdf::ElementPtr _sdf) override
Load the sensor with SDF parameters.
void SetPosition(double _pos)
Set the current z position of the altimeter.
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 VerticalPosition() const
Get the vertical position of the altimeter relative to the reference position.
void SetVerticalVelocity(double _vel)
Set the vertical velocity of the altimeter.
void SetVerticalReference(double _reference)
Set the vertical reference position of the altimeter.
double VerticalVelocity() const
Get the vertical velocity of the altimeter.
double VerticalReference() const
Get the vertical reference position of the altimeter.
virtual bool Init() override
Initialize values in the sensor.
bool HasConnections() const
Check if there are any subscribers.
Definition: gz/sensors/AirPressureSensor.hh:32