GT RoboCup SSL
Soccer software, robot firmware
KickEvent Class Reference

Contains all the useful information for a kick Like: Who kicked, when, what are the ball positions since etc. More...

Public Member Functions

 KickEvent ()
 Creates invalid kick event Makes things a little easier instead of check for null etc.
 
 KickEvent (RJ::Time kickTime, WorldRobot kickingRobot, std::deque< VisionState > statesSinceKick)
 Creates a valid kick event. More...
 
void addState (RJ::Time calcTime, WorldBall ball, std::vector< WorldRobot > yellowRobots, std::vector< WorldRobot > blueRobots)
 Adds a state to the history Use when the kick event is already created and we are trying to estimate the kick trajectory. More...
 
bool getIsValid () const
 
RJ::Time getKickTime () const
 
WorldRobot getKickingRobot () const
 
const std::deque< VisionState > & getStatesSinceKick () const
 

Detailed Description

Contains all the useful information for a kick Like: Who kicked, when, what are the ball positions since etc.

Constructor & Destructor Documentation

◆ KickEvent()

KickEvent::KickEvent ( RJ::Time  kickTime,
WorldRobot  kickingRobot,
std::deque< VisionState statesSinceKick 
)
inline

Creates a valid kick event.

Parameters
kickTimeTime of kick
kickingRobotWorld robot who is the one kicking
statesSinceKickAll the vision states that we have since the kick

Member Function Documentation

◆ addState()

void KickEvent::addState ( RJ::Time  calcTime,
WorldBall  ball,
std::vector< WorldRobot yellowRobots,
std::vector< WorldRobot blueRobots 
)

Adds a state to the history Use when the kick event is already created and we are trying to estimate the kick trajectory.

Parameters
calcTimeTime of current frame
ballBall at current frame
yellowRobotsYellow robots at current frame
blueRobotsBlue robots at current frame

◆ getIsValid()

bool KickEvent::getIsValid ( ) const
Returns
true if the kick is a valid one

◆ getKickingRobot()

WorldRobot KickEvent::getKickingRobot ( ) const
Returns
robot we think kicked

◆ getKickTime()

RJ::Time KickEvent::getKickTime ( ) const
Returns
time we think a robot kicked

◆ getStatesSinceKick()

const std::deque< VisionState > & KickEvent::getStatesSinceKick ( ) const
Returns
vision states since that time we kicked

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