gz/sensors/MagnetometerSensor.hh
Go to the documentation of this file.
Magnetometer Sensor Class.
Definition: gz/sensors/MagnetometerSensor.hh:47
void SetWorldMagneticField(const math::Vector3d &_field)
Set the magnetic field vector in world frame.
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.
math::Vector3d MagneticField() const
Get the magnetic field vector in body frame.
virtual bool Update(const std::chrono::steady_clock::duration &_now) override
Update the sensor and generate data.
void SetWorldPose(const math::Pose3d _pose)
Set the world pose of the sensor.
math::Pose3d WorldPose() const
Get the world pose of the sensor.
virtual bool Init() override
Initialize values in the sensor.
math::Vector3d WorldMagneticField() const
Get the magnetic field vector in world frame.
bool HasConnections() const
Check if there are any subscribers.
Definition: gz/sensors/AirPressureSensor.hh:32