![]() |
Smart Minotaur
|
Implements the pledge algorithm. Mehr ...
#include <PledgeAlgorithm.hpp>
Öffentliche Methoden | |
PledgeAlgorithm (Map *pMap) | |
virtual RobotPosition | getNextPosition (const RobotPosition pos) |
Calculates the next target position, to which the robot should move. | |
![]() | |
MovementAlgorithm (Map *pMap) | |
bool | checkObstacle (int x, int y, float theta) |
bool | checkLeftSideObstacle (int x, int y, float theta) |
bool | checkRightSideObstacle (int x, int y, float theta) |
int | getDistanceToObstacle (int x, int y, float theta) |
int | getDistanceToLeftObstacle (int x, int y, float theta) |
int | getDistanceToRightObstacle (int x, int y, float theta) |
RobotPosition | calculateNewPosition (int x, int y, int theta) |
Implements the pledge algorithm.
This class implements MovementAlgorithm and realizes a pledge algorithm behaviour to find way ot of a maze.
|
virtual |
Calculates the next target position, to which the robot should move.
pos | current position of the robot |
Implementiert minotaur::MovementAlgorithm.