|
Thunderbots Project
|
#include <possession_tracker.h>
Public Member Functions | |
| PossessionTracker (const TbotsProto::PossessionTrackerConfig &config) | |
| TeamPossession | getTeamWithPossession (const Team &friendly_team, const Team &enemy_team, const Ball &ball, const Field &field) |
Class to keep track of the state of the game over time and determine which team has possession of the ball. The logic for determining possession state is based on that used by TIGERs Mannheim, who borrow from CMDragons' 2015 TDP.
CMDragons 2015 TDP http://www.cs.cmu.edu/~jmendoza/papers/cmdragons_robocup15.pdf
| TeamPossession getTeamWithPossession | ( | const Team & | friendly_team, |
| const Team & | enemy_team, | ||
| const Ball & | ball, | ||
| const Field & | field | ||
| ) |
Returns a TeamPossession value indicating which team has possession of the ball.
| friendly_team | the friendly team |
| enemy_team | the enemy team |
| ball | the ball |
| field | the field being played on |