Class AbstractRecoveryExecution
Defined in File abstract_recovery_execution.h
Inheritance Relationships
Base Type
public mbf_abstract_nav::AbstractExecutionBase(Class AbstractExecutionBase)
Class Documentation
The AbstractRecoveryExecution class loads and binds the recovery behavior plugin. It contains a thread running the plugin, executing the recovery behavior. An internal state is saved and will be pulled by the server, which controls the recovery behavior execution. Due to a state change it wakes up all threads connected to the condition variable.
Public Types
internal state.
Values:
The recovery execution has been initialized.
The recovery execution thread has been started.
The recovery behavior plugin is running.
The given name could not be associated with a load behavior.
The recovery behavior execution is done.
The recovery execution was canceled.
The recovery execution has been stopped.
An internal error occurred.
Public Functions
Constructor.
- Parameters:
name – Name of this execution
recovery_ptr – Pointer to the recovery plugin
robot_info – Current robot state
config – Initial configuration for this execution
Destructor.
Checks whether the patience was exceeded.
- Returns:
true, if the patience duration was exceeded.
Cancel the planner execution. This calls the cancel method of the planner plugin. This could be useful if the computation takes too much time, or if we are aborting the navigation.
- Returns:
true, if the planner plugin tries / tried to cancel the planning step.
Returns the current state, thread-safe communication.
- Returns:
current internal state
Reconfigures the current configuration and reloads all parameters. This method is called from a dynamic reconfigure tool.
- Parameters:
parameters – Current config parameters.
Protected Functions
Main execution method which will be executed by the recovery execution thread_.
Helper method for cleaning up the state when the recovery thread was interrupted.
Protected Attributes
the current loaded recovery behavior