GT RoboCup SSL
Soccer software, robot firmware
FastKickDetector Class Reference

Detects extremely fast kicks in the case where the 5 or more samples required by the slow kick detector would take too long to collect and still allow time to react to the ball. 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

Detects extremely fast kicks in the case where the 5 or more samples required by the slow kick detector would take too long to collect and still allow time to react to the ball.

Uses a very simple velocity change over 3 samples to test for kicks.

Member Function Documentation

◆ addRecord()

bool FastKickDetector::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 is not touched otherwise

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