|
gusimplewhiteboard
|
Provides a C++ wrapper around wb_ball_position.
More...
#include <BallPosition.hpp>
Public Member Functions | |
| BallPosition (int16_t t_x=0, int16_t t_y=0, int16_t t_pitchInDegrees=0, int16_t t_yawInDegrees=0, int16_t t_rollInDegrees=0, uint8_t t_confidence=0) | |
Create a new BallPosition. More... | |
| BallPosition (const BallPosition &t_other) | |
| Copy Constructor. More... | |
| BallPosition (const struct wb_ball_position &t_other) | |
| Copy Constructor. More... | |
| BallPosition & | operator= (const BallPosition &t_other) |
| Copy Assignment Operator. More... | |
| BallPosition & | operator= (const struct wb_ball_position &t_other) |
| Copy Assignment Operator. More... | |
| bool | operator== (const BallPosition &t_other) const |
| bool | operator!= (const BallPosition &t_other) const |
| bool | operator== (const wb_ball_position &t_other) const |
| bool | operator!= (const wb_ball_position &t_other) const |
| 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 & | pitchInDegrees () |
| const int16_t & | pitchInDegrees () const |
| void | set_pitchInDegrees (const int16_t &t_newValue) |
| int16_t & | yawInDegrees () |
| const int16_t & | yawInDegrees () const |
| void | set_yawInDegrees (const int16_t &t_newValue) |
| int16_t & | rollInDegrees () |
| const int16_t & | rollInDegrees () const |
| void | set_rollInDegrees (const int16_t &t_newValue) |
| uint8_t & | confidence () |
| const uint8_t & | confidence () const |
| void | set_confidence (const uint8_t &t_newValue) |
| BallPosition (const std::string &t_str) | |
| String Constructor. More... | |
| std::string | description () |
| std::string | to_string () |
| void | from_string (const std::string &t_str) |
| double | confidencePercent () const |
| WHITEBOARD_POSTER_STRING_CONVERSION. More... | |
| void | set_confidencePercent (const double newValue) |
| Converts and stores a percentage floating point value in BallPosition.confidence. More... | |
Additional Inherited Members | |
Public Attributes inherited from wb_ball_position | |
| int16_t | x |
| The x coordinate. More... | |
| int16_t | y |
| The y coordinate. More... | |
| int16_t | pitchInDegrees |
| The pitch orientation. More... | |
| int16_t | yawInDegrees |
| The yaw orientation. More... | |
| int16_t | rollInDegrees |
| The roll orientation. More... | |
| uint8_t | confidence |
| The confidence that the ball is at this position. More... | |
Provides a C++ wrapper around wb_ball_position.
Definition at line 83 of file BallPosition.hpp.
|
inline |
Create a new BallPosition.
Definition at line 104 of file BallPosition.hpp.
Referenced by operator==().
|
inline |
Copy Constructor.
Definition at line 111 of file BallPosition.hpp.
References confidence(), pitchInDegrees(), rollInDegrees(), x(), y(), and yawInDegrees().
|
inline |
Copy Constructor.
Definition at line 118 of file BallPosition.hpp.
References wb_ball_position::confidence, wb_ball_position::pitchInDegrees, wb_ball_position::rollInDegrees, wb_ball_position::x, wb_ball_position::y, and wb_ball_position::yawInDegrees.
|
inline |
|
inline |
Definition at line 238 of file BallPosition.hpp.
References wb_ball_position::confidence.
Referenced by BallPosition(), confidencePercent(), description(), operator=(), operator==(), and to_string().
|
inline |
Definition at line 243 of file BallPosition.hpp.
References wb_ball_position::confidence.
|
inline |
WHITEBOARD_POSTER_STRING_CONVERSION.
Converts BallPosition.confidence() to its corresponding floating point percentage representation.
Definition at line 446 of file BallPosition.hpp.
References confidence().
|
inline |
USE_WB_BALL_POSITION_C_CONVERSION
Definition at line 262 of file BallPosition.hpp.
References BALL_POSITION_DESC_BUFFER_SIZE, confidence(), pitchInDegrees(), rollInDegrees(), wb_ball_position_description(), x(), y(), and yawInDegrees().
|
inline |
USE_WB_BALL_POSITION_C_CONVERSION
Definition at line 312 of file BallPosition.hpp.
References BALL_POSITION_DESC_BUFFER_SIZE, set_confidence(), set_pitchInDegrees(), set_rollInDegrees(), set_x(), set_y(), and set_yawInDegrees().
Referenced by BallPosition().
|
inline |
Definition at line 148 of file BallPosition.hpp.
|
inline |
Definition at line 158 of file BallPosition.hpp.
|
inline |
Copy Assignment Operator.
Definition at line 125 of file BallPosition.hpp.
References confidence(), pitchInDegrees(), rollInDegrees(), x(), y(), and yawInDegrees().
|
inline |
Copy Assignment Operator.
Definition at line 133 of file BallPosition.hpp.
References wb_ball_position::confidence, wb_ball_position::pitchInDegrees, wb_ball_position::rollInDegrees, wb_ball_position::x, wb_ball_position::y, and wb_ball_position::yawInDegrees.
|
inline |
Definition at line 138 of file BallPosition.hpp.
References confidence(), pitchInDegrees(), rollInDegrees(), x(), y(), and yawInDegrees().
|
inline |
Definition at line 153 of file BallPosition.hpp.
References BallPosition().
|
inline |
Definition at line 193 of file BallPosition.hpp.
References wb_ball_position::pitchInDegrees.
Referenced by BallPosition(), description(), operator=(), operator==(), and to_string().
|
inline |
Definition at line 198 of file BallPosition.hpp.
References wb_ball_position::pitchInDegrees.
|
inline |
Definition at line 223 of file BallPosition.hpp.
References wb_ball_position::rollInDegrees.
Referenced by BallPosition(), description(), operator=(), operator==(), and to_string().
|
inline |
Definition at line 228 of file BallPosition.hpp.
References wb_ball_position::rollInDegrees.
|
inline |
Definition at line 248 of file BallPosition.hpp.
References wb_ball_position::confidence.
Referenced by from_string(), and set_confidencePercent().
|
inline |
Converts and stores a percentage floating point value in BallPosition.confidence.
| [in] | newValue | The floating point percentage value which will be converted to the integer representations such that 0.0 equals 0 and 1.0 equals 255. |
Definition at line 459 of file BallPosition.hpp.
References set_confidence().
|
inline |
Definition at line 203 of file BallPosition.hpp.
References wb_ball_position::pitchInDegrees.
Referenced by from_string().
|
inline |
Definition at line 233 of file BallPosition.hpp.
References wb_ball_position::rollInDegrees.
Referenced by from_string().
|
inline |
Definition at line 173 of file BallPosition.hpp.
References wb_ball_position::x.
Referenced by from_string().
|
inline |
Definition at line 188 of file BallPosition.hpp.
References wb_ball_position::y.
Referenced by from_string().
|
inline |
Definition at line 218 of file BallPosition.hpp.
References wb_ball_position::yawInDegrees.
Referenced by from_string().
|
inline |
USE_WB_BALL_POSITION_C_CONVERSION
Definition at line 285 of file BallPosition.hpp.
References BALL_POSITION_TO_STRING_BUFFER_SIZE, confidence(), pitchInDegrees(), rollInDegrees(), wb_ball_position_to_string(), x(), y(), and yawInDegrees().
|
inline |
Definition at line 163 of file BallPosition.hpp.
References wb_ball_position::x.
Referenced by BallPosition(), description(), operator=(), operator==(), and to_string().
|
inline |
Definition at line 168 of file BallPosition.hpp.
References wb_ball_position::x.
|
inline |
Definition at line 178 of file BallPosition.hpp.
References wb_ball_position::y.
Referenced by BallPosition(), description(), operator=(), operator==(), and to_string().
|
inline |
Definition at line 183 of file BallPosition.hpp.
References wb_ball_position::y.
|
inline |
Definition at line 208 of file BallPosition.hpp.
References wb_ball_position::yawInDegrees.
Referenced by BallPosition(), description(), operator=(), operator==(), and to_string().
|
inline |
Definition at line 213 of file BallPosition.hpp.
References wb_ball_position::yawInDegrees.