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


Public Types | |
| enum | ObstacleType { border, goal, teammate, opponent, unknown } |
| enum | { maxNumberOfSegments = 200 } |
| enum | WhoseGoal { ownGoal = 0, opponentGoal = 1 } |
Public Member Functions | |
| void | setFreePartOfGoal (colorClass goalColor, double angleToLeftEndpoint, double angleToRightEndpoint, bool leftEndpointSeen, bool rightEndpointSeen, const Vector2< int > &leftInImage, const Vector2< int > &rightInImage) |
| ObstaclesPercept () | |
| Constructor. | |
| void | reset (unsigned long frameNumber) |
| The function empties the obstacle percept. | |
| void | add (const Segment &segment) |
| The function adds a new pair of points to the obstacle percept. | |
Public Attributes | |
| Segment | segments [maxNumberOfSegments] |
| The obstacle points. | |
| int | numberOfSegments |
| The number of pairs of points. | |
| FreePartOfGoal | freePartOfGoal [2] |
| unsigned long | frameNumber |
| The frame number when perceived. | |
Private Member Functions | |
| void | serialize (In *in, Out *out) |
Definition at line 20 of file ObstaclesPercept.h.
|
|
Definition at line 32 of file ObstaclesPercept.h. |
|
|
Definition at line 33 of file ObstaclesPercept.h. |
|
|
Definition at line 34 of file ObstaclesPercept.h. Referenced by setFreePartOfGoal(). |
|
|
Constructor.
Definition at line 121 of file ObstaclesPercept.h. References reset(). |
Here is the call graph for this function:

|
||||||||||||
|
Implements Streamable. Definition at line 22 of file ObstaclesPercept.h. References freePartOfGoal, numberOfSegments, segments, STREAM, STREAM_ARRAY, STREAM_DYN_ARRAY, STREAM_REGISTER_BEGIN, and STREAM_REGISTER_FINISH. |
|
||||||||||||||||||||||||||||||||
Here is the call graph for this function:

|
|
The function empties the obstacle percept.
Definition at line 10 of file ObstaclesPercept.cpp. References freePartOfGoal, numberOfSegments, and ObstaclesPercept::FreePartOfGoal::wasDetermined. Referenced by VLCImageProcessor::execute(), SlamImageProcessor::execute(), GT2005ImageProcessor::execute(), and ObstaclesPercept(). |
|
|
The function adds a new pair of points to the obstacle percept.
Definition at line 17 of file ObstaclesPercept.cpp. References maxNumberOfSegments, numberOfSegments, and segments. Referenced by SlamImageProcessor::scan(). |
|
|
The obstacle points.
Definition at line 134 of file ObstaclesPercept.h. Referenced by add(), GT2005ObstaclesLocator::addObstaclesPercept(), and serialize(). |
|
|
The number of pairs of points.
Definition at line 135 of file ObstaclesPercept.h. Referenced by add(), GT2005ObstaclesLocator::addObstaclesPercept(), reset(), and serialize(). |
|
|
Definition at line 136 of file ObstaclesPercept.h. Referenced by GT2005ObstaclesLocator::determineFreePartsOfGoals(), reset(), serialize(), and setFreePartOfGoal(). |
|
|
The frame number when perceived.
Definition at line 139 of file ObstaclesPercept.h. Referenced by GT2005ObstaclesLocator::execute(). |
1.3.6