Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

BallState Class Reference

Qualitative proposition for the ball. More...

#include <BallModel.h>

List of all members.

Public Member Functions

 BallState ()
 Constructor.

void reset ()
 resets all values to false


Public Attributes

bool ballRollsByLeft
 If true, the ball rolls by left in a short distance.

bool ballRollsByRight
 If true, the ball rolls by right in a short distance.

bool ballRollsTowardsRobot
 If true, the ball rolls towards the robot.

bool ballRollsFast
 If true, the ball has a high speed in any direction.

double projectedDistanceOnYAxis
 this is the projected distance of the ball on the Y axis of the robot (in mm)

long timeBallCrossesYAxis
 time in ms which the ball needs to cross the robots y axis


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

Here is the call graph for this function:


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 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 GT2004BehaviorControl::postExecute(), BallSymbols::registerSymbols(), reset(), GT2004BallLocator::setBallState(), and GT2004BallLocator::setBallStateV2().

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

bool BallState::ballRollsFast
 

If true, the ball has a high speed in any direction.

Definition at line 140 of file BallModel.h.

Referenced by GT2004BehaviorControl::postExecute(), BallSymbols::registerSymbols(), and reset().

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 Sep 23 20:04:19 2004 for GT2004 by doxygen 1.3.6