BallState Class Reference

#include <BallModel.h>

List of all members.

Public Member Functions

 BallState ()
void reset ()

Public Attributes

bool ballRollsByLeft
bool ballRollsByRight
bool ballRollsTowardsRobot
bool ballRollsFast
double projectedDistanceOnYAxis
long timeBallCrossesYAxis


Detailed Description

Qualitative proposition for the ball.

Definition at line 124 of file BallModel.h.


Constructor & Destructor Documentation

BallState::BallState (  ) 

Constructor. Sets all variables to false

Definition at line 66 of file BallModel.cpp.

References reset().


Member Function Documentation

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().


Member Data Documentation

bool BallState::ballRollsByLeft

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().

bool BallState::ballRollsByRight

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().

bool BallState::ballRollsFast

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().

bool BallState::ballRollsTowardsRobot

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().

double BallState::projectedDistanceOnYAxis

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().

long BallState::timeBallCrossesYAxis

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().


The documentation for this class was generated from the following files:
Generated on Thu Dec 7 01:18:59 2006 for DT2005.panorama by  doxygen 1.4.7