gusimplewhiteboard
guWhiteboard::LandmarkSighting Class Reference

Provides a C++ wrapper around wb_landmark_sighting. More...

#include <LandmarkSighting.hpp>

Inheritance diagram for guWhiteboard::LandmarkSighting:
Collaboration diagram for guWhiteboard::LandmarkSighting:

Public Member Functions

 LandmarkSighting (int16_t t_direction=0, uint16_t t_distance=0, enum LandmarkSightingType t_sightingType=static_cast< enum LandmarkSightingType >(0))
 Create a new LandmarkSighting. More...
 
 LandmarkSighting (const LandmarkSighting &t_other)
 Copy Constructor. More...
 
 LandmarkSighting (const struct wb_landmark_sighting &t_other)
 Copy Constructor. More...
 
LandmarkSightingoperator= (const LandmarkSighting &t_other)
 Copy Assignment Operator. More...
 
LandmarkSightingoperator= (const struct wb_landmark_sighting &t_other)
 Copy Assignment Operator. More...
 
bool operator== (const LandmarkSighting &t_other) const
 
bool operator!= (const LandmarkSighting &t_other) const
 
bool operator== (const wb_landmark_sighting &t_other) const
 
bool operator!= (const wb_landmark_sighting &t_other) const
 
int16_t & direction ()
 
const int16_t & direction () const
 
void set_direction (const int16_t &t_newValue)
 
uint16_t & distance ()
 
const uint16_t & distance () const
 
void set_distance (const uint16_t &t_newValue)
 
enum LandmarkSightingTypesightingType ()
 
enum LandmarkSightingTypesightingType () const
 
void set_sightingType (const enum LandmarkSightingType &t_newValue)
 
 LandmarkSighting (const std::string &t_str)
 String Constructor. More...
 
std::string description ()
 
std::string to_string ()
 
void from_string (const std::string &t_str)
 

Additional Inherited Members

- Public Attributes inherited from wb_landmark_sighting
int16_t direction
 degrees, relative to the center of the nao torso. More...
 
uint16_t distance
 CM distance to the center point of the sighting. More...
 
enum LandmarkSightingType sightingType
 The type of sighting. More...
 

Detailed Description

Provides a C++ wrapper around wb_landmark_sighting.

Definition at line 83 of file LandmarkSighting.hpp.

Constructor & Destructor Documentation

◆ LandmarkSighting() [1/4]

guWhiteboard::LandmarkSighting::LandmarkSighting ( int16_t  t_direction = 0,
uint16_t  t_distance = 0,
enum LandmarkSightingType  t_sightingType = static_cast<enum LandmarkSightingType>(0) 
)
inline

Create a new LandmarkSighting.

Definition at line 101 of file LandmarkSighting.hpp.

Referenced by operator==().

◆ LandmarkSighting() [2/4]

guWhiteboard::LandmarkSighting::LandmarkSighting ( const LandmarkSighting t_other)
inline

Copy Constructor.

Definition at line 108 of file LandmarkSighting.hpp.

References direction(), distance(), and sightingType().

◆ LandmarkSighting() [3/4]

guWhiteboard::LandmarkSighting::LandmarkSighting ( const struct wb_landmark_sighting t_other)
inline

◆ LandmarkSighting() [4/4]

guWhiteboard::LandmarkSighting::LandmarkSighting ( const std::string &  t_str)
inline

String Constructor.

Definition at line 206 of file LandmarkSighting.hpp.

References from_string().

Member Function Documentation

◆ description()

◆ direction() [1/2]

int16_t & guWhiteboard::LandmarkSighting::direction ( )
inline

◆ direction() [2/2]

const int16_t & guWhiteboard::LandmarkSighting::direction ( ) const
inline

Definition at line 162 of file LandmarkSighting.hpp.

References wb_landmark_sighting::direction.

◆ distance() [1/2]

uint16_t & guWhiteboard::LandmarkSighting::distance ( )
inline

◆ distance() [2/2]

const uint16_t & guWhiteboard::LandmarkSighting::distance ( ) const
inline

Definition at line 177 of file LandmarkSighting.hpp.

References wb_landmark_sighting::distance.

◆ from_string()

◆ operator!=() [1/2]

bool guWhiteboard::LandmarkSighting::operator!= ( const LandmarkSighting t_other) const
inline

Definition at line 142 of file LandmarkSighting.hpp.

◆ operator!=() [2/2]

bool guWhiteboard::LandmarkSighting::operator!= ( const wb_landmark_sighting t_other) const
inline

Definition at line 152 of file LandmarkSighting.hpp.

◆ operator=() [1/2]

LandmarkSighting & guWhiteboard::LandmarkSighting::operator= ( const LandmarkSighting t_other)
inline

Copy Assignment Operator.

Definition at line 122 of file LandmarkSighting.hpp.

References direction(), distance(), and sightingType().

◆ operator=() [2/2]

LandmarkSighting & guWhiteboard::LandmarkSighting::operator= ( const struct wb_landmark_sighting t_other)
inline

◆ operator==() [1/2]

bool guWhiteboard::LandmarkSighting::operator== ( const LandmarkSighting t_other) const
inline

Definition at line 135 of file LandmarkSighting.hpp.

References direction(), distance(), and sightingType().

◆ operator==() [2/2]

bool guWhiteboard::LandmarkSighting::operator== ( const wb_landmark_sighting t_other) const
inline

Definition at line 147 of file LandmarkSighting.hpp.

References LandmarkSighting().

◆ set_direction()

void guWhiteboard::LandmarkSighting::set_direction ( const int16_t &  t_newValue)
inline

Definition at line 167 of file LandmarkSighting.hpp.

References wb_landmark_sighting::direction.

Referenced by from_string().

◆ set_distance()

void guWhiteboard::LandmarkSighting::set_distance ( const uint16_t &  t_newValue)
inline

Definition at line 182 of file LandmarkSighting.hpp.

References wb_landmark_sighting::distance.

Referenced by from_string().

◆ set_sightingType()

void guWhiteboard::LandmarkSighting::set_sightingType ( const enum LandmarkSightingType t_newValue)
inline

Definition at line 197 of file LandmarkSighting.hpp.

References wb_landmark_sighting::sightingType.

Referenced by from_string().

◆ sightingType() [1/2]

enum LandmarkSightingType & guWhiteboard::LandmarkSighting::sightingType ( )
inline

◆ sightingType() [2/2]

enum LandmarkSightingType & guWhiteboard::LandmarkSighting::sightingType ( ) const
inline

Definition at line 192 of file LandmarkSighting.hpp.

References wb_landmark_sighting::sightingType.

◆ to_string()


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