gusimplewhiteboard
guWhiteboard::MachineFilteredVision Class Reference

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

#include <MachineFilteredVision.hpp>

Inheritance diagram for guWhiteboard::MachineFilteredVision:
Collaboration diagram for guWhiteboard::MachineFilteredVision:

Public Member Functions

 MachineFilteredVision (int8_t t_ball_direction=0, uint16_t t_ball_distance=0, bool t_ball_visible=0, int8_t t_goal_direction=0, uint16_t t_goal_distance=0, bool t_goal_visible=0, enum GoalSightingType t_goal_sightingType=NoSightingType)
 Create a new MachineFilteredVision. More...
 
 MachineFilteredVision (const MachineFilteredVision &t_other)
 Copy Constructor. More...
 
 MachineFilteredVision (const struct wb_machine_filtered_vision &t_other)
 Copy Constructor. More...
 
MachineFilteredVisionoperator= (const MachineFilteredVision &t_other)
 Copy Assignment Operator. More...
 
MachineFilteredVisionoperator= (const struct wb_machine_filtered_vision &t_other)
 Copy Assignment Operator. More...
 
bool operator== (const MachineFilteredVision &t_other) const
 
bool operator!= (const MachineFilteredVision &t_other) const
 
bool operator== (const wb_machine_filtered_vision &t_other) const
 
bool operator!= (const wb_machine_filtered_vision &t_other) const
 
int8_t & ball_direction ()
 
const int8_t & ball_direction () const
 
void set_ball_direction (const int8_t &t_newValue)
 
uint16_t & ball_distance ()
 
const uint16_t & ball_distance () const
 
void set_ball_distance (const uint16_t &t_newValue)
 
bool & ball_visible ()
 
const bool & ball_visible () const
 
void set_ball_visible (const bool &t_newValue)
 
int8_t & goal_direction ()
 
const int8_t & goal_direction () const
 
void set_goal_direction (const int8_t &t_newValue)
 
uint16_t & goal_distance ()
 
const uint16_t & goal_distance () const
 
void set_goal_distance (const uint16_t &t_newValue)
 
bool & goal_visible ()
 
const bool & goal_visible () const
 
void set_goal_visible (const bool &t_newValue)
 
enum GoalSightingTypegoal_sightingType ()
 
enum GoalSightingTypegoal_sightingType () const
 
void set_goal_sightingType (const enum GoalSightingType &t_newValue)
 
 MachineFilteredVision (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_machine_filtered_vision
int8_t ball_direction
 degrees, relative to the center of the nao torso. More...
 
uint16_t ball_distance
 CM distance to the ball. More...
 
bool ball_visible
 has the ball been seen enough by vision to be considered actually 'visible'. More...
 
int8_t goal_direction
 degrees, relative to the center of the nao torso. More...
 
uint16_t goal_distance
 CM distance to the ball. More...
 
bool goal_visible
 has the ball been seen enough by vision to be considered actually 'visible'. More...
 
enum GoalSightingType goal_sightingType
 The type of the goal sighting. More...
 

Detailed Description

Provides a C++ wrapper around wb_machine_filtered_vision.

Definition at line 83 of file MachineFilteredVision.hpp.

Constructor & Destructor Documentation

◆ MachineFilteredVision() [1/4]

guWhiteboard::MachineFilteredVision::MachineFilteredVision ( int8_t  t_ball_direction = 0,
uint16_t  t_ball_distance = 0,
bool  t_ball_visible = 0,
int8_t  t_goal_direction = 0,
uint16_t  t_goal_distance = 0,
bool  t_goal_visible = 0,
enum GoalSightingType  t_goal_sightingType = NoSightingType 
)
inline

Create a new MachineFilteredVision.

Definition at line 105 of file MachineFilteredVision.hpp.

Referenced by operator==().

◆ MachineFilteredVision() [2/4]

guWhiteboard::MachineFilteredVision::MachineFilteredVision ( const MachineFilteredVision t_other)
inline

◆ MachineFilteredVision() [3/4]

◆ MachineFilteredVision() [4/4]

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

String Constructor.

Definition at line 274 of file MachineFilteredVision.hpp.

References from_string().

Member Function Documentation

◆ ball_direction() [1/2]

int8_t & guWhiteboard::MachineFilteredVision::ball_direction ( )
inline

◆ ball_direction() [2/2]

const int8_t & guWhiteboard::MachineFilteredVision::ball_direction ( ) const
inline

◆ ball_distance() [1/2]

uint16_t & guWhiteboard::MachineFilteredVision::ball_distance ( )
inline

◆ ball_distance() [2/2]

const uint16_t & guWhiteboard::MachineFilteredVision::ball_distance ( ) const
inline

◆ ball_visible() [1/2]

bool & guWhiteboard::MachineFilteredVision::ball_visible ( )
inline

◆ ball_visible() [2/2]

const bool & guWhiteboard::MachineFilteredVision::ball_visible ( ) const
inline

◆ description()

std::string guWhiteboard::MachineFilteredVision::description ( )
inline

◆ from_string()

void guWhiteboard::MachineFilteredVision::from_string ( const std::string &  t_str)
inline

◆ goal_direction() [1/2]

int8_t & guWhiteboard::MachineFilteredVision::goal_direction ( )
inline

◆ goal_direction() [2/2]

const int8_t & guWhiteboard::MachineFilteredVision::goal_direction ( ) const
inline

◆ goal_distance() [1/2]

uint16_t & guWhiteboard::MachineFilteredVision::goal_distance ( )
inline

◆ goal_distance() [2/2]

const uint16_t & guWhiteboard::MachineFilteredVision::goal_distance ( ) const
inline

◆ goal_sightingType() [1/2]

enum GoalSightingType & guWhiteboard::MachineFilteredVision::goal_sightingType ( )
inline

◆ goal_sightingType() [2/2]

enum GoalSightingType & guWhiteboard::MachineFilteredVision::goal_sightingType ( ) const
inline

◆ goal_visible() [1/2]

bool & guWhiteboard::MachineFilteredVision::goal_visible ( )
inline

◆ goal_visible() [2/2]

const bool & guWhiteboard::MachineFilteredVision::goal_visible ( ) const
inline

◆ operator!=() [1/2]

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

Definition at line 150 of file MachineFilteredVision.hpp.

◆ operator!=() [2/2]

bool guWhiteboard::MachineFilteredVision::operator!= ( const wb_machine_filtered_vision t_other) const
inline

Definition at line 160 of file MachineFilteredVision.hpp.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

◆ operator==() [1/2]

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

◆ operator==() [2/2]

bool guWhiteboard::MachineFilteredVision::operator== ( const wb_machine_filtered_vision t_other) const
inline

Definition at line 155 of file MachineFilteredVision.hpp.

References MachineFilteredVision().

◆ set_ball_direction()

void guWhiteboard::MachineFilteredVision::set_ball_direction ( const int8_t &  t_newValue)
inline

Definition at line 175 of file MachineFilteredVision.hpp.

References wb_machine_filtered_vision::ball_direction.

Referenced by from_string().

◆ set_ball_distance()

void guWhiteboard::MachineFilteredVision::set_ball_distance ( const uint16_t &  t_newValue)
inline

Definition at line 190 of file MachineFilteredVision.hpp.

References wb_machine_filtered_vision::ball_distance.

Referenced by from_string().

◆ set_ball_visible()

void guWhiteboard::MachineFilteredVision::set_ball_visible ( const bool &  t_newValue)
inline

Definition at line 205 of file MachineFilteredVision.hpp.

References wb_machine_filtered_vision::ball_visible.

Referenced by from_string().

◆ set_goal_direction()

void guWhiteboard::MachineFilteredVision::set_goal_direction ( const int8_t &  t_newValue)
inline

Definition at line 220 of file MachineFilteredVision.hpp.

References wb_machine_filtered_vision::goal_direction.

Referenced by from_string().

◆ set_goal_distance()

void guWhiteboard::MachineFilteredVision::set_goal_distance ( const uint16_t &  t_newValue)
inline

Definition at line 235 of file MachineFilteredVision.hpp.

References wb_machine_filtered_vision::goal_distance.

Referenced by from_string().

◆ set_goal_sightingType()

void guWhiteboard::MachineFilteredVision::set_goal_sightingType ( const enum GoalSightingType t_newValue)
inline

Definition at line 265 of file MachineFilteredVision.hpp.

References wb_machine_filtered_vision::goal_sightingType.

Referenced by from_string().

◆ set_goal_visible()

void guWhiteboard::MachineFilteredVision::set_goal_visible ( const bool &  t_newValue)
inline

Definition at line 250 of file MachineFilteredVision.hpp.

References wb_machine_filtered_vision::goal_visible.

Referenced by from_string().

◆ to_string()

std::string guWhiteboard::MachineFilteredVision::to_string ( )
inline

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