39 #ifndef MBF_ABSTRACT_NAV__ABSTRACT_EXECUTION_BASE_H_ 40 #define MBF_ABSTRACT_NAV__ABSTRACT_EXECUTION_BASE_H_ 42 #include <boost/thread.hpp> 44 #include <mbf_abstract_nav/MoveBaseFlexConfig.h> 94 const std::string&
getName()
const;
boost::condition_variable condition_
condition variable to wake up control thread
virtual bool cancel()
Cancel the plugin execution.
virtual ~AbstractExecutionBase()
std::string name_
the plugin name; not the plugin type!
boost::cv_status waitForStateUpdate(boost::chrono::microseconds const &duration)
bool cancel_
flag for canceling controlling
std::string message_
the last received plugin execution message
Base class for running concurrent navigation tasks.
uint32_t outcome_
the last received plugin execution outcome
const std::string & getName() const
Returns the name of the corresponding plugin.
boost::thread thread_
the controlling thread object
uint32_t getOutcome() const
Gets the current plugin execution outcome.
const std::string & getMessage() const
Gets the current plugin execution message.
virtual void preRun()
Optional implementation-specific setup function, called right before execution.
virtual void postRun()
Optional implementation-specific cleanup function, called right after execution.
virtual void reconfigure(MoveBaseFlexConfig &_cfg)
Optional implementaiton-specific configuration function.
AbstractExecutionBase(const std::string &name)