41 #ifndef MBF_ABSTRACT_NAV__ABSTRACT_RECOVERY_EXECUTION_H_ 42 #define MBF_ABSTRACT_NAV__ABSTRACT_RECOVERY_EXECUTION_H_ 56 #include "mbf_abstract_nav/MoveBaseFlexConfig.h" 89 const TFPtr &tf_listener_ptr,
90 const MoveBaseFlexConfig &config,
91 boost::function<
void()> setup_fn,
92 boost::function<
void()> cleanup_fn);
138 void reconfigure(
const MoveBaseFlexConfig &config);
The recovery execution was canceled.
The recovery behavior plugin is running.
void reconfigure(const MoveBaseFlexConfig &config)
Reconfigures the current configuration and reloads all parameters. This method is called from a dynam...
The recovery execution has been initialized.
const TFPtr tf_listener_ptr_
shared pointer to common TransformListener
The recovery behavior execution is done.
AbstractRecoveryExecution::RecoveryState getState()
Returns the current state, thread-safe communication.
virtual ~AbstractRecoveryExecution()
Destructor.
The recovery execution has been stopped.
void setState(RecoveryState state)
Sets the current internal state. This method is thread communication safe.
RecoveryState
internal state.
RecoveryState state_
current internal state
The given name could not be associated with a load behavior.
virtual void run()
Main execution method which will be executed by the recovery execution thread_.
AbstractRecoveryExecution(const std::string name, const mbf_abstract_core::AbstractRecovery::Ptr recovery_ptr, const TFPtr &tf_listener_ptr, const MoveBaseFlexConfig &config, boost::function< void()> setup_fn, boost::function< void()> cleanup_fn)
Constructor.
ros::Time start_time_
recovery behavior start time
boost::mutex state_mtx_
mutex to handle safe thread communication for the current state
boost::mutex conf_mtx_
dynamic reconfigure and start time mutexes to mutually exclude read/write configuration ...
An internal error occurred.
ros::Duration patience_
recovery behavior allowed time
virtual bool cancel()
Cancel the planner execution. This calls the cancel method of the planner plugin. This could be usefu...
mbf_abstract_core::AbstractRecovery::Ptr behavior_
the current loaded recovery behavior
The AbstractRecoveryExecution class loads and binds the recovery behavior plugin. It contains a threa...
bool isPatienceExceeded()
Checks whether the patience was exceeded.
The recovery execution thread has been started.
boost::shared_ptr< AbstractRecoveryExecution > Ptr