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

The MazeSolver class runs all logic for solving a maze. Mehr ...

#include <MazeSolver.hpp>

Klassendiagramm für minotaur::MazeSolver:
minotaur::IMinotaurListener minotaur::Thread

Öffentliche Methoden

 MazeSolver (const MazeSolverConfig &p_config)
void run ()
 The content of this method is executed in the thread.
void pause ()
 Pauses the object from solving the maze.
void resume ()
 Resumes the solving of the maze if it was pause.
const MazeMapgetMap () const
MinotaurControlNodegetControlNode ()
void onReceiveOdometry (const nav_msgs::Odometry &p_odometry)
 This method is called when an incoming Odometry message is received.
void onReceiveUltrasonicData (const minotaur_common::UltrasonicData &p_sensorData)
 This method is called when an incoming UltrasonicData message is received.
- Öffentliche Methoden geerbt von minotaur::Thread
void start ()
void stop ()
void join ()

Geschützte Methoden

void onStart ()
 This method is called before the thread is started (call of start()).
void onStop ()
 This method is called when stop() is called.

Ausführliche Beschreibung

The MazeSolver class runs all logic for solving a maze.

Its behaviour can be changed by implementing the MazeNavigator, MazeMapping and ExplorationAlgorithm interfaces. These have to be set using a MazeSolverConfig object.

The configuration of a MazeSolver object can only be set at construction. Afterwards the configuration is not changeable anymore.

Dokumentation der Elementfunktionen

void minotaur::MazeSolver::onReceiveOdometry ( const nav_msgs::Odometry &  p_odometry)
virtual

This method is called when an incoming Odometry message is received.

Parameter
p_odometrythe incoming Odometry message

Implementiert minotaur::IMinotaurListener.

void minotaur::MazeSolver::onReceiveUltrasonicData ( const minotaur_common::UltrasonicData &  p_sensorData)
virtual

This method is called when an incoming UltrasonicData message is received.

Parameter
p_sensorDatathe incoming UltrasonicData message

Implementiert minotaur::IMinotaurListener.

void minotaur::MazeSolver::onStart ( )
protectedvirtual

This method is called before the thread is started (call of start()).

Any adjustments of members should be done here.

Implementiert minotaur::Thread.

void minotaur::MazeSolver::onStop ( )
protectedvirtual

This method is called when stop() is called.

The correct stopping of the thread should be done here (e.g. set a bool to false).

Implementiert minotaur::Thread.

void minotaur::MazeSolver::run ( )
virtual

The content of this method is executed in the thread.

All work done by the thread should be implemented here.

Implementiert minotaur::Thread.


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