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

LinesPercept Class Reference

The class represents a percepted line on the field with its type and a Vector of points belonging to it. More...

#include <LinesPercept.h>

Collaboration diagram for LinesPercept:

Collaboration graph
[legend]
List of all members.

Public Types

enum  LineType {
  field, border, yellowGoal,
  skyblueGoal, numberOfLineTypes, redRobot = numberOfLineTypes,
  blueRobot, ball, numberOfTypes,
  xField = ball, yField
}
enum  { UNDEF = -4 }
enum  { maxNumberOfPoints = 200 }

Public Member Functions

 LinesPercept ()
 Constructor.

void reset (unsigned long frameNumber)
 The function empties the line percept.

void add (LineType type, const Vector2< int > &point, double angle=UNDEF)
 The function adds a new point to the lines percept.


Public Attributes

LinePoint points [numberOfTypes][maxNumberOfPoints]
 The points on lines.

int numberOfPoints [numberOfTypes]
 The number of points per line type.

unsigned long frameNumber
 The frame number when perceived.


Detailed Description

The class represents a percepted line on the field with its type and a Vector of points belonging to it.

Definition at line 18 of file LinesPercept.h.


Member Enumeration Documentation

enum LinesPercept::LineType
 

Enumeration values:
field 
border 
yellowGoal 
skyblueGoal 
numberOfLineTypes 
redRobot 
blueRobot 
ball 
numberOfTypes 
xField 
yField 

Definition at line 21 of file LinesPercept.h.

Referenced by Field::getObstacleDistance().

anonymous enum
 

Enumeration values:
UNDEF 

Definition at line 37 of file LinesPercept.h.

anonymous enum
 

Enumeration values:
maxNumberOfPoints 

Definition at line 62 of file LinesPercept.h.


Constructor & Destructor Documentation

LinesPercept::LinesPercept  )  [inline]
 

Constructor.

Definition at line 70 of file LinesPercept.h.

References reset().

Here is the call graph for this function:


Member Function Documentation

void LinesPercept::reset unsigned long  frameNumber  ) 
 

The function empties the line percept.

Definition at line 10 of file LinesPercept.cpp.

References numberOfTypes.

Referenced by GT2004ImageProcessor::execute(), RasterImageProcessor::init(), and LinesPercept().

void LinesPercept::add LineType  type,
const Vector2< int > &  point,
double  angle = UNDEF
 

The function adds a new point to the lines percept.

Parameters:
type The line type of the point.
angle the angle
point The point.
angle The angle.

Definition at line 17 of file LinesPercept.cpp.

References maxNumberOfPoints, and point.

Referenced by RasterImageProcessor::addFieldPoint(), and GT2004ImageProcessor::scan().


Member Data Documentation

LinePoint LinesPercept::points[numberOfTypes][maxNumberOfPoints]
 

The points on lines.

Definition at line 64 of file LinesPercept.h.

Referenced by GT2004ObstaclesLocator::addLinesPercept(), GT2004ImageProcessor::clusterRobots(), BB2004Calibrator::evolve(), GT2004SelfLocator::execute(), DistanceToBorderEstimator::execute(), GT2004ImageProcessor::filterLinesPercept(), GT2004SelfLocator::generatePoseTemplates(), operator<<(), and operator>>().

int LinesPercept::numberOfPoints[numberOfTypes]
 

The number of points per line type.

Definition at line 65 of file LinesPercept.h.

Referenced by GT2004ObstaclesLocator::addLinesPercept(), GT2004ImageProcessor::clusterRobots(), BB2004Calibrator::evolve(), GT2004SelfLocator::execute(), DistanceToBorderEstimator::execute(), GT2004ImageProcessor::filterLinesPercept(), GT2004ImageProcessor::filterPercepts(), GT2004SelfLocator::generatePoseTemplates(), operator<<(), operator>>(), and GT2004ImageProcessor::scan().

unsigned long LinesPercept::frameNumber
 

The frame number when perceived.

Definition at line 66 of file LinesPercept.h.

Referenced by operator<<(), and operator>>().


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