#include <Intersection.h>
| Intersection::Intersection |
( |
| ) |
|
| MoveType Intersection::checkIntersection |
( |
| ) |
|
Retrieves the type of movement to be performed after a given intersection type been recognized.
- Parameters
-
| intersectionType | one of the recognized types or NONE otherwise |
- Returns
- the type of movement to be performed by the robot (e.g. rotate 90º to the left)
| MoveType Intersection::checkIntersectionInPath |
( |
Path & |
shortestPath | ) |
|
Retrieves the next movement of the shortest path to be performed after recognising any valid intersection.
- Parameters
-
| intersectionType | one of the recognized types or NONE otherwise |
| shortestPath | the shortest path computed after the exploration step |
- Returns
- the type of movement to be performed by the robot (e.g. rotate 90º to the left)
| void Intersection::getIntersectionType |
( |
char |
lineSignature | ) |
|
Sets the intersection type after successfully recognizing a sequence of line signatures.
- Parameters
-
| lineSignature | the current line type (e.g. line, turn right, turn left) observed by the line sensors |
| lineBin | the corresponding binary conversion |
Retrieves the type of intersection.
| void Intersection::resetIntersection |
( |
| ) |
|
Sets the type of intersection.
The documentation for this class was generated from the following files: