Go to the documentation of this file.
41 #ifndef MBF_ABSTRACT_NAV__ABSTRACT_RECOVERY_EXECUTION_H_
42 #define MBF_ABSTRACT_NAV__ABSTRACT_RECOVERY_EXECUTION_H_
53 #include "mbf_abstract_nav/MoveBaseFlexConfig.h"
87 const TFPtr &tf_listener_ptr,
88 const MoveBaseFlexConfig &config);
134 void reconfigure(
const MoveBaseFlexConfig &config);
RecoveryState state_
current internal state
@ INTERNAL_ERROR
An internal error occurred.
@ INITIALIZED
The recovery execution has been initialized.
mbf_abstract_core::AbstractRecovery::Ptr behavior_
the current loaded recovery behavior
@ CANCELED
The recovery execution was canceled.
ros::Duration patience_
recovery behavior allowed time
ros::Time start_time_
recovery behavior start time
boost::mutex state_mtx_
mutex to handle safe thread communication for the current state
void setState(RecoveryState state)
Sets the current internal state. This method is thread communication safe.
@ RECOVERING
The recovery behavior plugin is running.
bool isPatienceExceeded()
Checks whether the patience was exceeded.
void reconfigure(const MoveBaseFlexConfig &config)
Reconfigures the current configuration and reloads all parameters. This method is called from a dynam...
boost::mutex conf_mtx_
dynamic reconfigure and start time mutexes to mutually exclude read/write configuration
boost::shared_ptr< AbstractRecoveryExecution > Ptr
@ RECOVERY_DONE
The recovery behavior execution is done.
const TFPtr tf_listener_ptr_
shared pointer to common TransformListener
AbstractRecoveryExecution::RecoveryState getState()
Returns the current state, thread-safe communication.
The AbstractRecoveryExecution class loads and binds the recovery behavior plugin. It contains a threa...
virtual ~AbstractRecoveryExecution()
Destructor.
@ WRONG_NAME
The given name could not be associated with a load behavior.
@ STOPPED
The recovery execution has been stopped.
AbstractRecoveryExecution(const std::string &name, const mbf_abstract_core::AbstractRecovery::Ptr &recovery_ptr, const TFPtr &tf_listener_ptr, const MoveBaseFlexConfig &config)
Constructor.
Base class for running concurrent navigation tasks.
@ STARTED
The recovery execution thread has been started.
RecoveryState
internal state.
virtual void run()
Main execution method which will be executed by the recovery execution thread_.
virtual bool cancel()
Cancel the planner execution. This calls the cancel method of the planner plugin. This could be usefu...
mbf_abstract_nav
Author(s): Sebastian Pütz
autogenerated on Wed Mar 2 2022 00:33:47