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

The StayInMidNavigator class is an implementation of the MazeNavigator interface. Mehr ...

#include <StayInMidNavigator.hpp>

Klassendiagramm für minotaur::StayInMidNavigator:
minotaur::MazeNavigator minotaur::MazeMapUser minotaur::MinotaurControlNodeUser

Öffentliche Methoden

void receivedOdometry (const nav_msgs::Odometry &p_odometry)
 This method is called when an Odometry message is recieved.
void receivedUltrasonicData (const minotaur_common::UltrasonicData &p_sensorData)
 This method is called when an UltrasonicData message is recieved.
void moveToNextNode (const Direction p_currentDirection)
 Moves the robot straight forward to the next node in the maze.
void turnRobotTo (const Direction p_currentDirection, const Direction p_newDirection)
 Turns the robot to the given direction.
void shutdown ()
 Interrupts the MazeNavigator and shuts it down.

Weitere Geerbte Elemente

- Geschützte Attribute geerbt von minotaur::MazeMapUser
MazeMapmap
- Geschützte Attribute geerbt von minotaur::MinotaurControlNodeUser
MinotaurControlNodecontrolNode
std::vector< SensorSettingsensorSettings

Ausführliche Beschreibung

The StayInMidNavigator class is an implementation of the MazeNavigator interface.

It processes incoming UltrasonicData and Odometry message. Depending on the results the robot tries to stay in the mid between the walls on the left and right when he moves to the next node.

Dokumentation der Elementfunktionen

void minotaur::StayInMidNavigator::moveToNextNode ( const Direction  p_currentDirection)
virtual

Moves the robot straight forward to the next node in the maze.

Parameter
p_currentDirectioncurrent direction of the robot

Implementiert minotaur::MazeNavigator.

void minotaur::StayInMidNavigator::receivedOdometry ( const nav_msgs::Odometry &  p_odometry)
virtual

This method is called when an Odometry message is recieved.

Processing the message is done here.

Parameter
p_odometrythe Odometry message

Implementiert minotaur::MazeNavigator.

void minotaur::StayInMidNavigator::receivedUltrasonicData ( const minotaur_common::UltrasonicData &  p_sensorData)
virtual

This method is called when an UltrasonicData message is recieved.

Processing the message is done here.

Parameter
p_sensorDatathe UltrasonicData message

Implementiert minotaur::MazeNavigator.

void minotaur::StayInMidNavigator::shutdown ( )
virtual

Interrupts the MazeNavigator and shuts it down.

If the robot is moving the movement is stopped immediatly.

Implementiert minotaur::MazeNavigator.

void minotaur::StayInMidNavigator::turnRobotTo ( const Direction  p_currentDirection,
const Direction  p_newDirection 
)
virtual

Turns the robot to the given direction.

Parameter
p_currentDirectioncurrent direction of the robot
p_newDirectiontarget direction to which the robot is turned

Implementiert minotaur::MazeNavigator.


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