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

SeenBallPosition Class Reference

The knowledge about the ball that was obtained by own observations. More...

#include <BallModel.h>

Inheritance diagram for SeenBallPosition:

Inheritance graph
[legend]
Collaboration diagram for SeenBallPosition:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SeenBallPosition ()
 Constructor.

long getConsecutivelySeenTime () const
 If this is positive, we see the ball for that time consecutively.

SeenBallPositionoperator= (const Vector2< double > &other)
 Assignment operator for Vector2<double>.


Public Attributes

Vector2< double > speed
 The speed of the ball estimated from own observations.

unsigned long timeWhenLastSeen
 The time when the ball was last seen by the own camera.

unsigned long timeWhenFirstSeenConsecutively
 The time when the ball was last seen consecutively, i.e.

unsigned long timeUntilSeenConsecutively
 The time until the ball has been seen consecutively, i.e.

bool ballInFrontOfOpponentGoal
double distanceError
double angleError

Detailed Description

The knowledge about the ball that was obtained by own observations.

Definition at line 22 of file BallModel.h.


Constructor & Destructor Documentation

SeenBallPosition::SeenBallPosition  ) 
 

Constructor.

Definition at line 17 of file BallModel.cpp.


Member Function Documentation

long SeenBallPosition::getConsecutivelySeenTime  )  const
 

If this is positive, we see the ball for that time consecutively.

If this is negative, we have not seen the ball consecutively for -that time.

Definition at line 25 of file BallModel.cpp.

References SystemCall::getTimeSince(), timeUntilSeenConsecutively, and timeWhenFirstSeenConsecutively.

Here is the call graph for this function:

SeenBallPosition& SeenBallPosition::operator= const Vector2< double > &  other  )  [inline]
 

Assignment operator for Vector2<double>.

Parameters:
other The Vector2<double> to be assigned to (x,y)
Returns:
A reference to this object after the assignment.

Reimplemented from Vector2< double >.

Definition at line 67 of file BallModel.h.

References Vector2< V >::x, and Vector2< V >::y.


Member Data Documentation

Vector2<double> SeenBallPosition::speed
 

The speed of the ball estimated from own observations.

Definition at line 29 of file BallModel.h.

Referenced by GT2004HeadControlSymbols::getBallSpeedAbs(), GT2004HeadControlSymbols::getRelativeBallSpeedX(), GT2004HeadControlSymbols::getRelativeBallSpeedY(), BallSymbols::getSeenRelativeSpeedX(), BallSymbols::getSeenRelativeSpeedY(), BallSymbols::getSeenSpeed(), and GT2004BallLocator::handleSeenBall().

unsigned long SeenBallPosition::timeWhenLastSeen
 

The time when the ball was last seen by the own camera.

"position" and speed were set at that point in time.

Definition at line 35 of file BallModel.h.

Referenced by GT2004ObstaclesLocator::addPSDPercept(), GT2004StrategySymbols::computeRole(), GT2004StrategySymbols::estimateTimeToReachBall(), GT2004TeamBallLocator::execute(), KickLogger::execute(), GT2004HeadControlSymbols::getBallTimeSinceLastSeen(), BallSymbols::getJustSeen(), BallModel::getKnownPosition(), BallModel::getTimeSinceLastKnown(), BallSymbols::getTimeSinceLastSeen(), GT2004BallLocator::handleSeenBall(), GT2004BehaviorControl::preExecute(), and GTStandardConverter::setData().

unsigned long SeenBallPosition::timeWhenFirstSeenConsecutively
 

The time when the ball was last seen consecutively, i.e.

it has been seen "a lot" but not necessarily in all frames; gaps of n frames or more are okay

Definition at line 42 of file BallModel.h.

Referenced by GT2004HeadControlSymbols::getBallConsecutivelySeenTime(), getConsecutivelySeenTime(), BallSymbols::getConsecutivelySeenTime(), GT2004BallLocator::handleSeenBall(), and KickSelectionSymbols::retrieveKick().

unsigned long SeenBallPosition::timeUntilSeenConsecutively
 

The time until the ball has been seen consecutively, i.e.

it has been seen "a lot" but not necessarily in all frames until the time stored here;

Definition at line 49 of file BallModel.h.

Referenced by GT2004HeadControlSymbols::getBallConsecutivelySeenTime(), getConsecutivelySeenTime(), BallSymbols::getConsecutivelySeenTime(), GT2004HeadControlSymbols::getTimeSinceLastSeenConsecutively(), BallSymbols::getTimeSinceLastSeenConsecutively(), GT2004BallLocator::handleSeenBall(), and KickSelectionSymbols::retrieveKick().

bool SeenBallPosition::ballInFrontOfOpponentGoal
 

Definition at line 51 of file BallModel.h.

Referenced by GT2004StrategySymbols::computeRole(), GT2004BallLocator::execute(), and BallSymbols::getBallSeenInFrontOfOpponentGoal().

double SeenBallPosition::distanceError
 

Definition at line 59 of file BallModel.h.

Referenced by GT2004BallLocator::execute().

double SeenBallPosition::angleError
 

Definition at line 61 of file BallModel.h.

Referenced by GT2004BallLocator::execute().


The documentation for this class was generated from the following files:
Generated on Thu Sep 23 20:11:37 2004 for GT2004 by doxygen 1.3.6