#include <BallModel.h>
Public Member Functions | |
BallState () | |
void | reset () |
Public Attributes | |
bool | ballRollsByLeft |
bool | ballRollsByRight |
bool | ballRollsTowardsRobot |
bool | ballRollsFast |
double | projectedDistanceOnYAxis |
long | timeBallCrossesYAxis |
Definition at line 124 of file BallModel.h.
BallState::BallState | ( | ) |
Constructor. Sets all variables to false
Definition at line 66 of file BallModel.cpp.
References reset().
void BallState::reset | ( | ) |
resets all values to false
Definition at line 71 of file BallModel.cpp.
References ballRollsByLeft, ballRollsByRight, ballRollsFast, ballRollsTowardsRobot, projectedDistanceOnYAxis, and timeBallCrossesYAxis.
Referenced by BallState(), GT2004BallLocator::setBallState(), and GT2004BallLocator::setBallStateV2().
If true, the ball rolls by left in a short distance
Definition at line 131 of file BallModel.h.
Referenced by PaintMethodsWin32::paintBallModelToCDC(), GT2004BehaviorControl::postExecute(), BallSymbols::registerSymbols(), reset(), GT2004BallLocator::setBallState(), and GT2004BallLocator::setBallStateV2().
If true, the ball rolls by right in a short distance
Definition at line 134 of file BallModel.h.
Referenced by PaintMethodsWin32::paintBallModelToCDC(), GT2004BehaviorControl::postExecute(), BallSymbols::registerSymbols(), reset(), GT2004BallLocator::setBallState(), and GT2004BallLocator::setBallStateV2().
If true, the ball has a high speed in any direction
Definition at line 140 of file BallModel.h.
Referenced by PaintMethodsWin32::paintBallModelToCDC(), GT2004BehaviorControl::postExecute(), BallSymbols::registerSymbols(), and reset().
If true, the ball rolls towards the robot
Definition at line 137 of file BallModel.h.
Referenced by GT2004BehaviorControl::postExecute(), BallSymbols::registerSymbols(), reset(), GT2004BallLocator::setBallState(), and GT2004BallLocator::setBallStateV2().
this is the projected distance of the ball on the Y axis of the robot (in mm)
Definition at line 143 of file BallModel.h.
Referenced by BallSymbols::getProjectedDistanceOnYAxis(), reset(), GT2004BallLocator::setBallState(), and GT2004BallLocator::setBallStateV2().
time in ms which the ball needs to cross the robots y axis
Definition at line 146 of file BallModel.h.
Referenced by BallSymbols::getTimeUntilBallCrossesYAxis(), reset(), GT2004BallLocator::setBallState(), and GT2004BallLocator::setBallStateV2().