Loading...
Searching...
No Matches
Public Member Functions | List of all members
sdf::SDF_VERSION_NAMESPACE::Magnetometer Class Reference

Magnetometer contains information about a magnetometer sensor. More...

#include <Magnetometer.hh>

Public Member Functions

 Magnetometer ()
 Default constructor.
 
sdf::ElementPtr Element () const
 Get a pointer to the SDF element that was used during load.
 
Errors Load (ElementPtr _sdf)
 Load the magnetometer based on an element pointer.
 
bool operator!= (const Magnetometer &_mag) const
 Return true this Magnetometer object does not contain the same values as the passed in parameter.
 
bool operator== (const Magnetometer &_mag) const
 Return true if both Magnetometer objects contain the same values.
 
void SetXNoise (const Noise &_noise)
 Set the noise values related to the body-frame x axis.
 
void SetYNoise (const Noise &_noise)
 Set the noise values related to the body-frame y axis.
 
void SetZNoise (const Noise &_noise)
 Set the noise values related to the body-frame z axis.
 
sdf::ElementPtr ToElement () const
 Create and return an SDF element filled with data from this magnetometer.
 
const NoiseXNoise () const
 Get the noise values related to the body-frame x axis.
 
const NoiseYNoise () const
 Get the noise values related to the body-frame y axis.
 
const NoiseZNoise () const
 Get the noise values related to the body-frame z axis.
 

Detailed Description

Magnetometer contains information about a magnetometer sensor.

This sensor can be attached to a link.

Constructor & Destructor Documentation

◆ Magnetometer()

sdf::SDF_VERSION_NAMESPACE::Magnetometer::Magnetometer ( )

Default constructor.

Member Function Documentation

◆ Element()

sdf::ElementPtr sdf::SDF_VERSION_NAMESPACE::Magnetometer::Element ( ) const

Get a pointer to the SDF element that was used during load.

Returns
SDF element pointer. The value will be nullptr if Load has not been called.

◆ Load()

Errors sdf::SDF_VERSION_NAMESPACE::Magnetometer::Load ( ElementPtr  _sdf)

Load the magnetometer based on an element pointer.

This is not the usual entry point. Typical usage of the SDF DOM is through the Root object.

Parameters
[in]_sdfThe SDF Element pointer
Returns
Errors, which is a vector of Error objects. Each Error includes an error code and message. An empty vector indicates no error.

◆ operator!=()

bool sdf::SDF_VERSION_NAMESPACE::Magnetometer::operator!= ( const Magnetometer _mag) const

Return true this Magnetometer object does not contain the same values as the passed in parameter.

Parameters
[_in]_mag Magnetometer value to compare. \returen True if 'this' != _mag.

◆ operator==()

bool sdf::SDF_VERSION_NAMESPACE::Magnetometer::operator== ( const Magnetometer _mag) const

Return true if both Magnetometer objects contain the same values.

Parameters
[_in]_mag Magnetometer value to compare. \returen True if 'this' == _mag.

◆ SetXNoise()

void sdf::SDF_VERSION_NAMESPACE::Magnetometer::SetXNoise ( const Noise _noise)

Set the noise values related to the body-frame x axis.

Parameters
[in]_noiseNoise values for the x axis.

◆ SetYNoise()

void sdf::SDF_VERSION_NAMESPACE::Magnetometer::SetYNoise ( const Noise _noise)

Set the noise values related to the body-frame y axis.

Parameters
[in]_noiseNoise values for the y axis.

◆ SetZNoise()

void sdf::SDF_VERSION_NAMESPACE::Magnetometer::SetZNoise ( const Noise _noise)

Set the noise values related to the body-frame z axis.

Parameters
[in]_noiseNoise values for the z axis.

◆ ToElement()

sdf::ElementPtr sdf::SDF_VERSION_NAMESPACE::Magnetometer::ToElement ( ) const

Create and return an SDF element filled with data from this magnetometer.

Note that parameter passing functionality is not captured with this function.

Returns
SDF element pointer with updated sensor values.

◆ XNoise()

const Noise & sdf::SDF_VERSION_NAMESPACE::Magnetometer::XNoise ( ) const

Get the noise values related to the body-frame x axis.

Returns
Noise values for the x axis.

◆ YNoise()

const Noise & sdf::SDF_VERSION_NAMESPACE::Magnetometer::YNoise ( ) const

Get the noise values related to the body-frame y axis.

Returns
Noise values for the y axis.

◆ ZNoise()

const Noise & sdf::SDF_VERSION_NAMESPACE::Magnetometer::ZNoise ( ) const

Get the noise values related to the body-frame z axis.

Returns
Noise values for the z axis.

The documentation for this class was generated from the following file: