Public Member Functions | List of all members
sdf::v9::NavSat Class Reference

NavSat contains information about a NavSat sensor. More...

#include <NavSat.hh>

Public Member Functions

 NavSat ()
 Default constructor. More...
 
 NavSat (const NavSat &_navsat)
 Copy constructor. More...
 
 NavSat (NavSat &&_navsat) noexcept
 Move constructor. More...
 
 ~NavSat ()
 Destructor. More...
 
sdf::ElementPtr Element () const
 Get a pointer to the SDF element that was used during load. More...
 
const NoiseHorizontalPositionNoise () const
 Get noise value for horizontal position sensor. More...
 
const NoiseHorizontalVelocityNoise () const
 Get noise value for horizontal velocity sensor. More...
 
Errors Load (ElementPtr _sdf)
 Load the navsat based on an element pointer. More...
 
bool operator!= (const NavSat &_navsat) const
 Return true this NavSat object does not contain the same values as the passed in parameter. More...
 
NavSatoperator= (const NavSat &_navsat)
 Assignment operator. More...
 
NavSatoperator= (NavSat &&_navsat) noexcept
 Move assignment operator. More...
 
bool operator== (const NavSat &_navsat) const
 Return true if both NavSat objects contain the same values. More...
 
void SetHorizontalPositionNoise (const Noise &_noise)
 Set the noise values for the horizontal position sensor. More...
 
void SetHorizontalVelocityNoise (const Noise &_noise)
 Set the noise values for the horizontal velocity sensor. More...
 
void SetVerticalPositionNoise (const Noise &_noise)
 Set the noise values for the vertical position sensor. More...
 
void SetVerticalVelocityNoise (const Noise &_noise)
 Set the noise values for the vertical velocity sensor. More...
 
const NoiseVerticalPositionNoise () const
 Get noise value for vertical position sensor. More...
 
const NoiseVerticalVelocityNoise () const
 Get noise value for vertical velocity sensor. More...
 

Detailed Description

NavSat contains information about a NavSat sensor.

This sensor can be attached to a link. The NavSat sensor can be defined SDF XML by the "navsat" type.

Example SDF XML using navsat type:

<sensor name="navsat_sensor" type="navsat">
<pose>1 2 3 0 0 0</pose>
<topic>/navsat</topic>
<navsat>
<position_sensing>
<horizontal>
<noise type="gaussian">
<mean>0.98</mean>
<stddev>0.76</stddev>
</noise>
</horizontal>
<vertical>
<noise type="gaussian">
<mean>0.98</mean>
<stddev>0.76</stddev>
</noise>
</vertical>
</position_sensing>
<velocity_sensing>
<horizontal>
<noise type="gaussian">
<mean>0.98</mean>
<stddev>0.76</stddev>
</noise>
</horizontal>
<vertical>
<noise type="gaussian">
<mean>0.98</mean>
<stddev>0.76</stddev>
</noise>
</vertical>
</velocity_sensing>
</navsat>
</sensor>

Constructor & Destructor Documentation

◆ NavSat() [1/3]

sdf::v9::NavSat::NavSat ( )

Default constructor.

◆ NavSat() [2/3]

sdf::v9::NavSat::NavSat ( const NavSat _navsat)

Copy constructor.

Parameters
[in]_navsatNavSat to copy.

◆ NavSat() [3/3]

sdf::v9::NavSat::NavSat ( NavSat &&  _navsat)
noexcept

Move constructor.

Parameters
[in]_navsatNavSat to move.

◆ ~NavSat()

sdf::v9::NavSat::~NavSat ( )

Destructor.

Member Function Documentation

◆ Element()

sdf::ElementPtr sdf::v9::NavSat::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.

◆ HorizontalPositionNoise()

const Noise& sdf::v9::NavSat::HorizontalPositionNoise ( ) const

Get noise value for horizontal position sensor.

Returns
Noise values

◆ HorizontalVelocityNoise()

const Noise& sdf::v9::NavSat::HorizontalVelocityNoise ( ) const

Get noise value for horizontal velocity sensor.

Returns
Noise values

◆ Load()

Errors sdf::v9::NavSat::Load ( ElementPtr  _sdf)

Load the navsat 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::v9::NavSat::operator!= ( const NavSat _navsat) const

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

Parameters
[_in]_navsat NavSat value to compare.
Returns
True if 'this' != _navsat.

◆ operator=() [1/2]

NavSat& sdf::v9::NavSat::operator= ( const NavSat _navsat)

Assignment operator.

Parameters
[in]_navsatThe navsat to set values from.
Returns
*this

◆ operator=() [2/2]

NavSat& sdf::v9::NavSat::operator= ( NavSat &&  _navsat)
noexcept

Move assignment operator.

Parameters
[in]_navsatThe navsat to set values from.
Returns
*this

◆ operator==()

bool sdf::v9::NavSat::operator== ( const NavSat _navsat) const

Return true if both NavSat objects contain the same values.

Parameters
[_in]_navsat NavSat value to compare.
Returns
True if 'this' == _navsat.

◆ SetHorizontalPositionNoise()

void sdf::v9::NavSat::SetHorizontalPositionNoise ( const Noise _noise)

Set the noise values for the horizontal position sensor.

Parameters
[in]_noiseNoise values to set to

◆ SetHorizontalVelocityNoise()

void sdf::v9::NavSat::SetHorizontalVelocityNoise ( const Noise _noise)

Set the noise values for the horizontal velocity sensor.

Parameters
[in]_noiseNoise values to set to

◆ SetVerticalPositionNoise()

void sdf::v9::NavSat::SetVerticalPositionNoise ( const Noise _noise)

Set the noise values for the vertical position sensor.

Parameters
[in]_noiseNoise values to set to

◆ SetVerticalVelocityNoise()

void sdf::v9::NavSat::SetVerticalVelocityNoise ( const Noise _noise)

Set the noise values for the vertical velocity sensor.

Parameters
[in]_noiseNoise values to set to

◆ VerticalPositionNoise()

const Noise& sdf::v9::NavSat::VerticalPositionNoise ( ) const

Get noise value for vertical position sensor.

Returns
Noise values

◆ VerticalVelocityNoise()

const Noise& sdf::v9::NavSat::VerticalVelocityNoise ( ) const

Get noise value for vertical velocity sensor.

Returns
Noise values

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