17 #ifndef SDF_MAGNETOMETER_HH_
18 #define SDF_MAGNETOMETER_HH_
20 #include <gz/utils/ImplPtr.hh>
29 inline namespace SDF_VERSION_NAMESPACE {
96 GZ_UTILS_IMPL_PTR(dataPtr)
Magnetometer contains information about a magnetometer sensor.
Definition: Magnetometer.hh:35
sdf::ElementPtr ToElement() const
Create and return an SDF element filled with data from this magnetometer.
bool operator==(const Magnetometer &_mag) const
Return true if both Magnetometer objects contain the same values.
bool operator!=(const Magnetometer &_mag) const
Return true this Magnetometer object does not contain the same values as the passed in parameter.
Errors Load(ElementPtr _sdf)
Load the magnetometer based on an element pointer.
void SetZNoise(const Noise &_noise)
Set the noise values related to the body-frame z axis.
const Noise & YNoise() const
Get the noise values related to the body-frame y axis.
const Noise & ZNoise() const
Get the noise values related to the body-frame z axis.
void SetYNoise(const Noise &_noise)
Set the noise values related to the body-frame y axis.
sdf::ElementPtr Element() const
Get a pointer to the SDF element that was used during load.
Magnetometer()
Default constructor.
void SetXNoise(const Noise &_noise)
Set the noise values related to the body-frame x axis.
const Noise & XNoise() const
Get the noise values related to the body-frame x axis.
The Noise class contains information about a noise model, such as a Gaussian distribution.
Definition: Noise.hh:48
std::vector< Error > Errors
A vector of Error.
Definition: Types.hh:95
std::shared_ptr< Element > ElementPtr
Definition: Element.hh:55
namespace for Simulation Description Format parser
Definition: Actor.hh:35
#define SDFORMAT_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system_util.hh:25