Public Member Functions | Private Attributes | List of all members
rsm::ReversingRoutineState Class Reference

Routine state that toggles the reverse mode. More...

#include <ReversingRoutineState.h>

Inheritance diagram for rsm::ReversingRoutineState:
Inheritance graph
[legend]

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)
 
 ReversingRoutineState ()
 
 ~ReversingRoutineState ()
 
- Public Member Functions inherited from rsm::BaseState
 BaseState ()
 
std::string getName ()
 
StateInterfacegetStateInterface ()
 
void setStateInterface (StateInterface *stateinterface)
 
virtual ~BaseState ()
 

Private Attributes

ros::ServiceClient _get_reverse_moving_service
 
int _navigation_completed_status
 
ros::ServiceClient _navigation_goal_completed_service
 
ros::NodeHandle _nh
 
bool _reverse_mode_active
 
ros::ServiceClient _set_reverse_moving_service
 

Additional Inherited Members

- Protected Attributes inherited from rsm::BaseState
bool _interrupt_occured
 
std::string _name
 
StateInterface_stateinterface
 

Detailed Description

Routine state that toggles the reverse mode.

Definition at line 22 of file ReversingRoutineState.h.

Constructor & Destructor Documentation

rsm::ReversingRoutineState::ReversingRoutineState ( )

Constructor

Definition at line 5 of file ReversingRoutineState.cpp.

rsm::ReversingRoutineState::~ReversingRoutineState ( )

Destructor

Definition at line 8 of file ReversingRoutineState.cpp.

Member Function Documentation

void rsm::ReversingRoutineState::onActive ( )
virtual

Process method (step-wise, never block this method)

Implements rsm::BaseState.

Definition at line 42 of file ReversingRoutineState.cpp.

void rsm::ReversingRoutineState::onEntry ( )
virtual

Called once when activated

Reimplemented from rsm::BaseState.

Definition at line 27 of file ReversingRoutineState.cpp.

void rsm::ReversingRoutineState::onExit ( )
virtual

Called once when left

Reimplemented from rsm::BaseState.

Definition at line 56 of file ReversingRoutineState.cpp.

void rsm::ReversingRoutineState::onExplorationStart ( bool &  success,
std::string &  message 
)
virtual

Called when exploration was started manually

Reimplemented from rsm::BaseState.

Definition at line 64 of file ReversingRoutineState.cpp.

void rsm::ReversingRoutineState::onExplorationStop ( bool &  success,
std::string &  message 
)
virtual

Called when exploration was stopped manually

Reimplemented from rsm::BaseState.

Definition at line 70 of file ReversingRoutineState.cpp.

void rsm::ReversingRoutineState::onInterrupt ( int  interrupt)
virtual

Called when an operation mode interrupt was received.

Parameters
interruptKind of interrupt (1=EmergencyStop, 2=TeleoperationInterupt)

Reimplemented from rsm::BaseState.

Definition at line 89 of file ReversingRoutineState.cpp.

void rsm::ReversingRoutineState::onSetup ( )
virtual

Called once when registered at StateInterface

Reimplemented from rsm::BaseState.

Definition at line 11 of file ReversingRoutineState.cpp.

void rsm::ReversingRoutineState::onWaypointFollowingStart ( bool &  success,
std::string &  message 
)
virtual

Called when waypoint following was started/paused manually

Reimplemented from rsm::BaseState.

Definition at line 76 of file ReversingRoutineState.cpp.

void rsm::ReversingRoutineState::onWaypointFollowingStop ( bool &  success,
std::string &  message 
)
virtual

Called when waypoint following was stopped manually

Reimplemented from rsm::BaseState.

Definition at line 82 of file ReversingRoutineState.cpp.

Member Data Documentation

ros::ServiceClient rsm::ReversingRoutineState::_get_reverse_moving_service
private

Definition at line 85 of file ReversingRoutineState.h.

int rsm::ReversingRoutineState::_navigation_completed_status
private

Was the routine at the waypoint goal successful or not

Definition at line 95 of file ReversingRoutineState.h.

ros::ServiceClient rsm::ReversingRoutineState::_navigation_goal_completed_service
private

Definition at line 86 of file ReversingRoutineState.h.

ros::NodeHandle rsm::ReversingRoutineState::_nh
private

Definition at line 83 of file ReversingRoutineState.h.

bool rsm::ReversingRoutineState::_reverse_mode_active
private

Is the robot currently driving in reverse

Definition at line 91 of file ReversingRoutineState.h.

ros::ServiceClient rsm::ReversingRoutineState::_set_reverse_moving_service
private

Definition at line 84 of file ReversingRoutineState.h.


The documentation for this class was generated from the following files:


rsm_additions
Author(s): Marco Steinbrink
autogenerated on Tue Mar 16 2021 02:44:35