gusimplewhiteboard
guWhiteboard::FilteredVisionObject Class Reference

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

#include <FilteredVisionObject.hpp>

Inheritance diagram for guWhiteboard::FilteredVisionObject:
Collaboration diagram for guWhiteboard::FilteredVisionObject:

Public Member Functions

 FilteredVisionObject (uint64_t t_visibilityHistory=0, int32_t t_frameCounter=0, int16_t t_distance=0, int16_t t_x=0, int16_t t_y=0, int16_t t_yaw=0, int16_t t_ray_angle=0, bool t_isVisible=true, bool t_pad1=true)
 Create a new FilteredVisionObject. More...
 
 FilteredVisionObject (const FilteredVisionObject &t_other)
 Copy Constructor. More...
 
 FilteredVisionObject (const struct wb_filtered_vision_object &t_other)
 Copy Constructor. More...
 
FilteredVisionObjectoperator= (const FilteredVisionObject &t_other)
 Copy Assignment Operator. More...
 
FilteredVisionObjectoperator= (const struct wb_filtered_vision_object &t_other)
 Copy Assignment Operator. More...
 
bool operator== (const FilteredVisionObject &t_other) const
 
bool operator!= (const FilteredVisionObject &t_other) const
 
bool operator== (const wb_filtered_vision_object &t_other) const
 
bool operator!= (const wb_filtered_vision_object &t_other) const
 
uint64_t & visibilityHistory ()
 
const uint64_t & visibilityHistory () const
 
void set_visibilityHistory (const uint64_t &t_newValue)
 
int32_t & frameCounter ()
 
const int32_t & frameCounter () const
 
void set_frameCounter (const int32_t &t_newValue)
 
int16_t & distance ()
 
const int16_t & distance () const
 
void set_distance (const int16_t &t_newValue)
 
int16_t & x ()
 
const int16_t & x () const
 
void set_x (const int16_t &t_newValue)
 
int16_t & y ()
 
const int16_t & y () const
 
void set_y (const int16_t &t_newValue)
 
int16_t & yaw ()
 
const int16_t & yaw () const
 
void set_yaw (const int16_t &t_newValue)
 
int16_t & ray_angle ()
 
const int16_t & ray_angle () const
 
void set_ray_angle (const int16_t &t_newValue)
 
bool & isVisible ()
 
const bool & isVisible () const
 
void set_isVisible (const bool &t_newValue)
 
bool & pad1 ()
 
const bool & pad1 () const
 
void set_pad1 (const bool &t_newValue)
 
 FilteredVisionObject (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_filtered_vision_object
uint64_t visibilityHistory
 a 64-bit history of whether vision said visible 1 or not visible 0. More...
 
int32_t frameCounter
 incremented every time we do not see the object. More...
 
int16_t distance
 distance to landmark in cm More...
 
int16_t x
 centre x-coordinate in image (0,0) is the centre of the image, positive is to the right More...
 
int16_t y
 centre y-coordinate in image, positive is upwards More...
 
int16_t yaw
 the Yaw in Degrees when the object was last used to generated filtered values. More...
 
int16_t ray_angle
 In degrees, position of the object, positive is left, negative is right, with distance polar position of object in frame of reference of robot. More...
 
bool isVisible
 is this a credible sighting. More...
 
bool pad1
 16 bit padding . More...
 

Detailed Description

Provides a C++ wrapper around wb_filtered_vision_object.

Definition at line 83 of file FilteredVisionObject.hpp.

Constructor & Destructor Documentation

◆ FilteredVisionObject() [1/4]

guWhiteboard::FilteredVisionObject::FilteredVisionObject ( uint64_t  t_visibilityHistory = 0,
int32_t  t_frameCounter = 0,
int16_t  t_distance = 0,
int16_t  t_x = 0,
int16_t  t_y = 0,
int16_t  t_yaw = 0,
int16_t  t_ray_angle = 0,
bool  t_isVisible = true,
bool  t_pad1 = true 
)
inline

Create a new FilteredVisionObject.

Definition at line 107 of file FilteredVisionObject.hpp.

Referenced by operator==().

◆ FilteredVisionObject() [2/4]

guWhiteboard::FilteredVisionObject::FilteredVisionObject ( const FilteredVisionObject t_other)
inline

Copy Constructor.

Definition at line 114 of file FilteredVisionObject.hpp.

References distance(), frameCounter(), isVisible(), pad1(), ray_angle(), visibilityHistory(), x(), y(), and yaw().

◆ FilteredVisionObject() [3/4]

◆ FilteredVisionObject() [4/4]

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

String Constructor.

Definition at line 308 of file FilteredVisionObject.hpp.

References from_string().

Member Function Documentation

◆ description()

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

◆ distance() [1/2]

◆ distance() [2/2]

const int16_t & guWhiteboard::FilteredVisionObject::distance ( ) const
inline

Definition at line 204 of file FilteredVisionObject.hpp.

References wb_filtered_vision_object::distance.

◆ frameCounter() [1/2]

◆ frameCounter() [2/2]

const int32_t & guWhiteboard::FilteredVisionObject::frameCounter ( ) const
inline

Definition at line 189 of file FilteredVisionObject.hpp.

References wb_filtered_vision_object::frameCounter.

◆ from_string()

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

◆ isVisible() [1/2]

◆ isVisible() [2/2]

const bool & guWhiteboard::FilteredVisionObject::isVisible ( ) const
inline

Definition at line 279 of file FilteredVisionObject.hpp.

References wb_filtered_vision_object::isVisible.

◆ operator!=() [1/2]

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

Definition at line 154 of file FilteredVisionObject.hpp.

◆ operator!=() [2/2]

bool guWhiteboard::FilteredVisionObject::operator!= ( const wb_filtered_vision_object t_other) const
inline

Definition at line 164 of file FilteredVisionObject.hpp.

◆ operator=() [1/2]

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

Copy Assignment Operator.

Definition at line 128 of file FilteredVisionObject.hpp.

References distance(), frameCounter(), isVisible(), pad1(), ray_angle(), visibilityHistory(), x(), y(), and yaw().

◆ operator=() [2/2]

◆ operator==() [1/2]

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

◆ operator==() [2/2]

bool guWhiteboard::FilteredVisionObject::operator== ( const wb_filtered_vision_object t_other) const
inline

Definition at line 159 of file FilteredVisionObject.hpp.

References FilteredVisionObject().

◆ pad1() [1/2]

bool & guWhiteboard::FilteredVisionObject::pad1 ( )
inline

◆ pad1() [2/2]

const bool & guWhiteboard::FilteredVisionObject::pad1 ( ) const
inline

Definition at line 294 of file FilteredVisionObject.hpp.

References wb_filtered_vision_object::pad1.

◆ ray_angle() [1/2]

int16_t & guWhiteboard::FilteredVisionObject::ray_angle ( )
inline

◆ ray_angle() [2/2]

const int16_t & guWhiteboard::FilteredVisionObject::ray_angle ( ) const
inline

Definition at line 264 of file FilteredVisionObject.hpp.

References wb_filtered_vision_object::ray_angle.

◆ set_distance()

void guWhiteboard::FilteredVisionObject::set_distance ( const int16_t &  t_newValue)
inline

◆ set_frameCounter()

void guWhiteboard::FilteredVisionObject::set_frameCounter ( const int32_t &  t_newValue)
inline

◆ set_isVisible()

void guWhiteboard::FilteredVisionObject::set_isVisible ( const bool &  t_newValue)
inline

◆ set_pad1()

void guWhiteboard::FilteredVisionObject::set_pad1 ( const bool &  t_newValue)
inline

Definition at line 299 of file FilteredVisionObject.hpp.

References wb_filtered_vision_object::pad1.

Referenced by from_string().

◆ set_ray_angle()

void guWhiteboard::FilteredVisionObject::set_ray_angle ( const int16_t &  t_newValue)
inline

Definition at line 269 of file FilteredVisionObject.hpp.

References wb_filtered_vision_object::ray_angle.

Referenced by from_string().

◆ set_visibilityHistory()

void guWhiteboard::FilteredVisionObject::set_visibilityHistory ( const uint64_t &  t_newValue)
inline

◆ set_x()

void guWhiteboard::FilteredVisionObject::set_x ( const int16_t &  t_newValue)
inline

◆ set_y()

void guWhiteboard::FilteredVisionObject::set_y ( const int16_t &  t_newValue)
inline

◆ set_yaw()

void guWhiteboard::FilteredVisionObject::set_yaw ( const int16_t &  t_newValue)
inline

◆ to_string()

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

◆ visibilityHistory() [1/2]

◆ visibilityHistory() [2/2]

const uint64_t & guWhiteboard::FilteredVisionObject::visibilityHistory ( ) const
inline

◆ x() [1/2]

◆ x() [2/2]

const int16_t & guWhiteboard::FilteredVisionObject::x ( ) const
inline

Definition at line 219 of file FilteredVisionObject.hpp.

References wb_filtered_vision_object::x.

◆ y() [1/2]

◆ y() [2/2]

const int16_t & guWhiteboard::FilteredVisionObject::y ( ) const
inline

Definition at line 234 of file FilteredVisionObject.hpp.

References wb_filtered_vision_object::y.

◆ yaw() [1/2]

◆ yaw() [2/2]

const int16_t & guWhiteboard::FilteredVisionObject::yaw ( ) const
inline

Definition at line 249 of file FilteredVisionObject.hpp.

References wb_filtered_vision_object::yaw.


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