#include <LinesPercept.h>
Inheritance diagram for LinesPercept:


Public Types | |
| enum | { maxNumberOfPoints = 200 } |
| enum | LineType { field, border, yellowGoal, skyblueGoal, numberOfLineTypes, redRobot = numberOfLineTypes, blueRobot, ball, numberOfTypes, xField = ball, yField, boundary } |
| enum | { UNDEF = -4 } |
| enum | CrossingCharacteristic { lineOnThisSide, noLineOnThisSide, dontKnow, numberOfCrossingCharacteristics } |
| Defines what lies on the 4 "sides" of a line crossing. More... | |
| enum | { maxNumberOfLineCrossings = 10 } |
Public Member Functions | |
| LinesPercept () | |
| Constructor. | |
| void | reset (unsigned long frameNumber) |
| The function empties the line percept. | |
| void | add (LineType type, const Vector2< int > &pointOnField, const Vector2< int > &pointInImage, double angleOnField=UNDEF, double angleInImage=UNDEF) |
| The function adds a new point to the lines percept. | |
| void | serialize (In *in, Out *out) |
Static Public Member Functions | |
| const char * | getCrossingCharacteristicName (CrossingCharacteristic id) |
Public Attributes | |
| LinePoints | points [numberOfTypes] |
| unsigned long | frameNumber |
| The frame number when perceived. | |
| int | numberOfLineCrossings |
| LineCrossingPoint | lineCrossings [maxNumberOfLineCrossings] |
| CenterCircle | centerCircle |
| bool | centerCircleFound |
Definition at line 17 of file LinesPercept.h.
|
|
Definition at line 20 of file LinesPercept.h. |
|
|
Definition at line 22 of file LinesPercept.h. Referenced by Field::getObstacleDistance(). |
|
|
Definition at line 40 of file LinesPercept.h. |
|
|
Defines what lies on the 4 "sides" of a line crossing.
Definition at line 92 of file LinesPercept.h. |
|
|
Definition at line 129 of file LinesPercept.h. |
|
|
Constructor.
Definition at line 155 of file LinesPercept.h. References reset(). |
Here is the call graph for this function:

|
|
Definition at line 93 of file LinesPercept.h. References dontKnow, lineOnThisSide, and noLineOnThisSide. Referenced by LinesPercept::LineCrossingPoint::serialize(). |
|
|
The function empties the line percept.
Definition at line 10 of file LinesPercept.cpp. References centerCircleFound, numberOfLineCrossings, LinesPercept::LinePoints::numberOfPoints, and numberOfTypes. Referenced by VLCImageProcessor::execute(), SlamImageProcessor::execute(), GT2005ImageProcessor::execute(), and LinesPercept(). |
|
||||||||||||||||||||||||
|
The function adds a new point to the lines percept.
Definition at line 21 of file LinesPercept.cpp. References maxNumberOfPoints, LinesPercept::LinePoints::numberOfPoints, LinesPercept::LinePoints::pointsInImage, and LinesPercept::LinePoints::pointsOnField. Referenced by VLCImageProcessor::scan(), SlamImageProcessor::scan(), and GT2005ImageProcessor::scan(). |
|
||||||||||||
|
Implements Streamable. Definition at line 171 of file LinesPercept.h. References centerCircle, centerCircleFound, lineCrossings, numberOfLineCrossings, STREAM, STREAM_ARRAY, STREAM_DYN_ARRAY, STREAM_REGISTER_BEGIN, and STREAM_REGISTER_FINISH. |
|
|
|
The frame number when perceived.
Definition at line 89 of file LinesPercept.h. |
|
|
|
|
1.3.6