Smart Minotaur
 Alle Klassen Dateien Funktionen Variablen Seiten
minotaur::PledgeAlgorithm Klassenreferenz

Implements the pledge algorithm. Mehr ...

#include <PledgeAlgorithm.hpp>

Klassendiagramm für minotaur::PledgeAlgorithm:
minotaur::MovementAlgorithm

Öffentliche Methoden

 PledgeAlgorithm (Map *pMap)
virtual RobotPosition getNextPosition (const RobotPosition pos)
 Calculates the next target position, to which the robot should move.
- Öffentliche Methoden geerbt von minotaur::MovementAlgorithm
 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)

Ausführliche Beschreibung

Implements the pledge algorithm.

This class implements MovementAlgorithm and realizes a pledge algorithm behaviour to find way ot of a maze.

Dokumentation der Elementfunktionen

RobotPosition minotaur::PledgeAlgorithm::getNextPosition ( const RobotPosition  pos)
virtual

Calculates the next target position, to which the robot should move.

Parameter
poscurrent position of the robot
Rückgabe
next target position of the robot

Implementiert minotaur::MovementAlgorithm.


Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Dateien: