State to decide which waypoint will be the next navigation goal while in waypoint following mode. More...
#include <WaypointFollowingState.h>
Public Member Functions | |
void | onActive () |
void | onEntry () |
void | onExit () |
void | onExplorationStart (bool &success, std::string &message) |
void | onExplorationStop (bool &success, std::string &message) |
void | onInterrupt (int interrupt) |
Called when an operation mode interrupt was received. More... | |
void | onSetup () |
void | onWaypointFollowingStart (bool &success, std::string &message) |
void | onWaypointFollowingStop (bool &success, std::string &message) |
WaypointFollowingState () | |
~WaypointFollowingState () | |
Public Member Functions inherited from rsm::BaseState | |
BaseState () | |
std::string | getName () |
StateInterface * | getStateInterface () |
void | setStateInterface (StateInterface *stateinterface) |
virtual | ~BaseState () |
Private Member Functions | |
void | abortWaypointFollowing () |
void | getWaypoints () |
void | resetWaypoints () |
void | setCurrentWaypointVisited () |
Additional Inherited Members | |
Protected Attributes inherited from rsm::BaseState | |
bool | _interrupt_occured |
Shows if an interupt occured. More... | |
std::string | _name |
Name of the state. More... | |
StateInterface * | _stateinterface |
Pointer to State Interface handling all state transitions. More... | |
State to decide which waypoint will be the next navigation goal while in waypoint following mode.
Definition at line 22 of file WaypointFollowingState.h.
rsm::WaypointFollowingState::WaypointFollowingState | ( | ) |
Constructor
Definition at line 5 of file WaypointFollowingState.cpp.
rsm::WaypointFollowingState::~WaypointFollowingState | ( | ) |
Destructor
Definition at line 8 of file WaypointFollowingState.cpp.
|
private |
Initiates transition to Idle State
Definition at line 155 of file WaypointFollowingState.cpp.
|
private |
Requests all waypoints from Service Provider
Definition at line 162 of file WaypointFollowingState.cpp.
|
virtual |
Process method (step-wise, never block this method)
Implements rsm::BaseState.
Definition at line 34 of file WaypointFollowingState.cpp.
|
virtual |
Called once when activated
Reimplemented from rsm::BaseState.
Definition at line 30 of file WaypointFollowingState.cpp.
|
virtual |
Called once when left
Reimplemented from rsm::BaseState.
Definition at line 93 of file WaypointFollowingState.cpp.
|
virtual |
Called when exploration was started manually
Reimplemented from rsm::BaseState.
Definition at line 110 of file WaypointFollowingState.cpp.
|
virtual |
Called when exploration was stopped manually
Reimplemented from rsm::BaseState.
Definition at line 116 of file WaypointFollowingState.cpp.
|
virtual |
Called when an operation mode interrupt was received.
interrupt | Kind of interrupt (0=EmergencyStop, 1=TeleoperationInterupt) |
Reimplemented from rsm::BaseState.
Definition at line 135 of file WaypointFollowingState.cpp.
|
virtual |
Called once when registered at StateInterface
Reimplemented from rsm::BaseState.
Definition at line 11 of file WaypointFollowingState.cpp.
|
virtual |
Called when waypoint following was started/paused manually
Reimplemented from rsm::BaseState.
Definition at line 122 of file WaypointFollowingState.cpp.
|
virtual |
Called when waypoint following was stopped manually
Reimplemented from rsm::BaseState.
Definition at line 128 of file WaypointFollowingState.cpp.
|
private |
Resets the status' of all waypoints and aborts waypoint following
Definition at line 190 of file WaypointFollowingState.cpp.
|
private |
Definition at line 177 of file WaypointFollowingState.cpp.
|
private |
Definition at line 83 of file WaypointFollowingState.h.
|
private |
Position of the next waypoint to navigate to in the list
Definition at line 96 of file WaypointFollowingState.h.
|
private |
Definition at line 85 of file WaypointFollowingState.h.
|
private |
Definition at line 86 of file WaypointFollowingState.h.
|
private |
Definition at line 84 of file WaypointFollowingState.h.
|
private |
List of all waypoints
Definition at line 92 of file WaypointFollowingState.h.
|
private |
Definition at line 87 of file WaypointFollowingState.h.