![]() |
Smart Minotaur
|
The MazeNavigator class provides an interface for the navigation of a robot in a maze by a MapSolver object. Mehr ...
#include <MazeNavigator.hpp>
Öffentliche Methoden | |
virtual void | receivedOdometry (const nav_msgs::Odometry &p_odometry)=0 |
This method is called when an Odometry message is recieved. | |
virtual void | receivedUltrasonicData (const minotaur_common::UltrasonicData &p_sensorData)=0 |
This method is called when an UltrasonicData message is recieved. | |
virtual void | moveToNextNode (const Direction p_currentDirection)=0 |
Moves the robot straight forward to the next node in the maze. | |
virtual void | turnRobotTo (const Direction p_currentDirection, const Direction p_newDirection)=0 |
Turns the robot to the given direction. | |
virtual void | shutdown ()=0 |
Interrupts the MazeNavigator and shuts it down. | |
![]() | |
void | setMazeMap (MazeMap *p_map) |
![]() | |
void | setMinotaurControlNode (MinotaurControlNode *p_controlNode) |
Weitere Geerbte Elemente | |
![]() | |
MazeMap * | map |
![]() | |
MinotaurControlNode * | controlNode |
std::vector< SensorSetting > | sensorSettings |
The MazeNavigator class provides an interface for the navigation of a robot in a maze by a MapSolver object.
It is able to move the robot to another node or turn it in a certain direction. These actions represent pure translation / pure rotation.
|
pure virtual |
Moves the robot straight forward to the next node in the maze.
p_currentDirection | current direction of the robot |
Implementiert in minotaur::StayInMidNavigator.
|
pure virtual |
This method is called when an Odometry message is recieved.
Processing the message is done here.
p_odometry | the Odometry message |
Implementiert in minotaur::StayInMidNavigator.
|
pure virtual |
This method is called when an UltrasonicData message is recieved.
Processing the message is done here.
p_sensorData | the UltrasonicData message |
Implementiert in minotaur::StayInMidNavigator.
|
pure virtual |
Interrupts the MazeNavigator and shuts it down.
If the robot is moving the movement is stopped immediatly.
Implementiert in minotaur::StayInMidNavigator.
|
pure virtual |
Turns the robot to the given direction.
p_currentDirection | current direction of the robot |
p_newDirection | target direction to which the robot is turned |
Implementiert in minotaur::StayInMidNavigator.