gusimplewhiteboard
|
Whiteboard Class used by vision to report detect ball Reports balls detected in top or bottom camera, including position and size. More...
#include <VisionBall.hpp>
Public Member Functions | |
VisionBall () | |
Default Constructor. More... | |
VisionBall & | operator= (const VisionBall &a) |
Equals Operator sets the frame number as well as contents of top and bottom ball and there visibility. More... | |
VisionBall (const VisionBall &ball) | |
Const reference constructor, copys contents of passed object. More... | |
std::bitset< 2 > | getMask () const |
DEPRICATED. More... | |
void | setBall (SimpleCircle ballInfo, VisionCamera camera) |
Set the ball for this message for a specified camera. More... | |
void | setBall (wb_ball ballInfo, VisionCamera camera) |
Set the ball for this message for a specified camera. More... | |
int16_t | topRadius () const |
Radius of the top ball. More... | |
int16_t | topX () const |
Center X Position of the top ball. More... | |
int16_t | topY () const |
Center Y Position of the top ball. More... | |
int16_t | bottomRadius () const |
Radius of the bottom ball. More... | |
int16_t | bottomX () const |
Center X Position of the bottom ball. More... | |
int16_t | bottomY () const |
Center Y Position of the bottom ball. More... | |
bool | visible () |
Return true if either the top or bottom ball is visible in this message. More... | |
int16_t | radius () const |
Return the radius one of the balls. More... | |
int16_t | x () const |
Return the center x coordinate of one of the balls. More... | |
int16_t | y () const |
Return the center y coordinate of one of the balls. More... | |
void | Reset () |
Set the top and bottom visible flags to false. More... | |
VisionBall (std::string s) | |
String constructor. More... | |
VisionBall (const char *s) | |
Const char array constructor. More... | |
void | from_string (std::string s) |
Parse as string and set this object to the tokenized contents. More... | |
std::string | description () |
Description of the VisionBall object. More... | |
Static Public Attributes | |
static const char | SEPARATOR_IS_AT = '@' |
USED INTERNALLY FOR STRING PARSER. More... | |
Whiteboard Class used by vision to report detect ball Reports balls detected in top or bottom camera, including position and size.
Get
Definition at line 32 of file VisionBall.hpp.
|
inline |
Default Constructor.
Definition at line 47 of file VisionBall.hpp.
|
inline |
Const reference constructor, copys contents of passed object.
ball | The ball whose contents is copied |
Definition at line 65 of file VisionBall.hpp.
|
inline |
String constructor.
s | The tokenized string to parse |
Definition at line 222 of file VisionBall.hpp.
References from_string().
|
inline |
Const char array constructor.
s | The tokenized const char array to parse |
Definition at line 230 of file VisionBall.hpp.
References from_string().
|
inline |
Radius of the bottom ball.
Undefined if !bottomVisible
Definition at line 144 of file VisionBall.hpp.
|
inline |
Center X Position of the bottom ball.
Undefined if !bottomVisible
Definition at line 150 of file VisionBall.hpp.
|
inline |
Center Y Position of the bottom ball.
Undefined if !bottomVisible
Definition at line 156 of file VisionBall.hpp.
|
inline |
Description of the VisionBall object.
Definition at line 278 of file VisionBall.hpp.
References SEPARATOR_IS_AT.
|
inline |
Parse as string and set this object to the tokenized contents.
s | The string to parse |
Definition at line 239 of file VisionBall.hpp.
References Bottom, Reset(), SEPARATOR_IS_AT, setBall(), Top, and u_int16_t.
Referenced by VisionBall().
|
inline |
|
inline |
Equals Operator sets the frame number as well as contents of top and bottom ball and there visibility.
Definition at line 53 of file VisionBall.hpp.
|
inline |
Return the radius one of the balls.
Definition at line 168 of file VisionBall.hpp.
|
inline |
Set the top and bottom visible flags to false.
Definition at line 206 of file VisionBall.hpp.
Referenced by from_string().
|
inline |
Set the ball for this message for a specified camera.
ballInfo | the ball to set |
camera | the camera this ball was seen on |
Definition at line 85 of file VisionBall.hpp.
Referenced by from_string().
|
inline |
Set the ball for this message for a specified camera.
ballInfo | the ball to set |
camera | the camera this ball was seen on |
Definition at line 106 of file VisionBall.hpp.
|
inline |
Radius of the top ball.
Undefined if !topVisible
Definition at line 126 of file VisionBall.hpp.
|
inline |
Center X Position of the top ball.
Undefined if !topVisible
Definition at line 132 of file VisionBall.hpp.
|
inline |
Center Y Position of the top ball.
Undefined if !topVisible
Definition at line 138 of file VisionBall.hpp.
|
inline |
Return true if either the top or bottom ball is visible in this message.
Definition at line 162 of file VisionBall.hpp.
|
inline |
Return the center x coordinate of one of the balls.
Definition at line 181 of file VisionBall.hpp.
|
inline |
Return the center y coordinate of one of the balls.
Definition at line 194 of file VisionBall.hpp.
|
static |
USED INTERNALLY FOR STRING PARSER.
Definition at line 214 of file VisionBall.hpp.
Referenced by description(), and from_string().