gusimplewhiteboard
|
Class to post information about goal posts detected from vision This class contains information the dimension of goal posts. More...
#include <VisionGoals.hpp>
Public Member Functions | |
VisionGoals () | |
Default Constructor. More... | |
VisionGoals (std::string s) | |
String Constructor Converts a serialized string to a VisionGoal object. More... | |
void | from_string (std::string &s) |
void | setLeftGoalPost (wb_goal postInfo, VisionCamera camera) |
Set the left goal post for this VisionGoal message. More... | |
void | setRightGoalPost (wb_goal postInfo, VisionCamera camera) |
Set the right goal post for this VisionGoal message. More... | |
void | setGenericGoalPost (wb_goal postInfo, VisionCamera camera) |
Set the generic goal post for this VisionGoal message. More... | |
const wb_goal & | leftPost (VisionCamera camera) const |
Get the current left goal post for this message. More... | |
const wb_goal & | rightPost (VisionCamera camera) const |
Get the current right goal post for this message. More... | |
const wb_goal & | genericPost (VisionCamera camera) const |
Get the current generic goal post for this message. More... | |
wb_goal & | leftPost (VisionCamera camera) |
Get the current left goal post for this message. More... | |
wb_goal & | rightPost (VisionCamera camera) |
Get the current right goal post for this message. More... | |
wb_goal & | genericPost (VisionCamera camera) |
Get the current generic goal post for this message. More... | |
void | Reset () |
Reset the visible flag for all four different posts to false. More... | |
void | setFrameNumber (size_t fn) |
Sets the frame number this information in this message was observed. More... | |
size_t | frameNumber () const |
Get the frame number the information in this message was observed. More... | |
std::string | description () |
Converts this message into a serialized string. More... | |
Class to post information about goal posts detected from vision This class contains information the dimension of goal posts.
The message contains information for left and right goal post on top and bottom camera's
Retrieve the current information about the a left goal post in the top camera
VisionGaols v = VisionGaols_t.get(); //get the goal message off the whiteboard wb_goal g = v.leftPost(Top); //get the left post from the top camera bool visible = g.visible(); //get the visibile flag for the post int x1 = g.outerBottom_X(); //get the outer bottom x coordinate for the post
Definition at line 36 of file VisionGoals.hpp.
|
inline |
Default Constructor.
Definition at line 47 of file VisionGoals.hpp.
|
inline |
String Constructor Converts a serialized string to a VisionGoal object.
s | The String to convert |
Definition at line 55 of file VisionGoals.hpp.
References from_string().
|
inline |
Converts this message into a serialized string.
Definition at line 296 of file VisionGoals.hpp.
|
inline |
Get the frame number the information in this message was observed.
Definition at line 288 of file VisionGoals.hpp.
|
inline |
Definition at line 59 of file VisionGoals.hpp.
References Bottom, setLeftGoalPost(), setRightGoalPost(), and Top.
Referenced by VisionGoals().
|
inline |
Get the current generic goal post for this message.
camera | The camera to get goal post information from |
Definition at line 256 of file VisionGoals.hpp.
References Top.
|
inline |
Get the current generic goal post for this message.
camera | The camera to get goal post information from |
Definition at line 217 of file VisionGoals.hpp.
References Top.
|
inline |
Get the current left goal post for this message.
camera | The camera to get goal post information from |
Definition at line 230 of file VisionGoals.hpp.
References Top.
|
inline |
Get the current left goal post for this message.
camera | The camera to get goal post information from |
Definition at line 191 of file VisionGoals.hpp.
References Top.
|
inline |
Reset the visible flag for all four different posts to false.
Definition at line 267 of file VisionGoals.hpp.
|
inline |
Get the current right goal post for this message.
camera | The camera to get goal post information from |
Definition at line 243 of file VisionGoals.hpp.
References Top.
|
inline |
Get the current right goal post for this message.
camera | The camera to get goal post information from |
Definition at line 204 of file VisionGoals.hpp.
References Top.
|
inline |
Sets the frame number this information in this message was observed.
fn | The frame number |
Definition at line 280 of file VisionGoals.hpp.
|
inline |
Set the generic goal post for this VisionGoal message.
postInfo | The post information to be set |
camera | The camera this post was seen on |
Definition at line 175 of file VisionGoals.hpp.
References Top.
|
inline |
Set the left goal post for this VisionGoal message.
postInfo | The post information to be set |
camera | The camera this post was seen on |
Definition at line 143 of file VisionGoals.hpp.
References Top.
Referenced by from_string().
|
inline |
Set the right goal post for this VisionGoal message.
postInfo | The post information to be set |
camera | The camera this post was seen on |
Definition at line 159 of file VisionGoals.hpp.
References Top.
Referenced by from_string().