GT RoboCup SSL
Soccer software, robot firmware
SlowKickDetector Class Reference

Accurately detects kicks by robots using 5 or more samples in history. More...

Public Member Functions

bool addRecord (RJ::Time calcTime, WorldBall ball, std::vector< WorldRobot > yellowRobots, std::vector< WorldRobot > blueRobots, KickEvent &kickEvent)
 Adds a record to our history list. More...
 

Static Public Member Functions

static void createConfiguration (Configuration *cfg)
 

Detailed Description

Accurately detects kicks by robots using 5 or more samples in history.

Used in the general case when we have time to take a second and double check results before sending it back

Member Function Documentation

◆ addRecord()

bool SlowKickDetector::addRecord ( RJ::Time  calcTime,
WorldBall  ball,
std::vector< WorldRobot yellowRobots,
std::vector< WorldRobot blueRobots,
KickEvent kickEvent 
)

Adds a record to our history list.

Parameters
calcTimeTime of calculation for this vision loop
ballBest estimation of the current ball
yellowRobotsBest estimation of the yellow robots
blueRobotsBest estimation of the blue robots
kickEventReturned kick event if we find one
Returns
Whether there was a kick
Note
kickEvent is only filled if it returns true It will change, but will have invalid data in it

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