44 boost::function<
void()> setup_fn,
45 boost::function<
void()> cleanup_fn)
46 : outcome_(255), cancel_(false), name_(name), setup_fn_(setup_fn), cleanup_fn_(cleanup_fn)
59 ROS_WARN_STREAM(
"Trying to stop the planning rigorously by interrupting the thread!");
71 boost::unique_lock<boost::mutex> lock(mutex);
boost::condition_variable condition_
condition variable to wake up control thread
std::string name_
the plugin name; not the plugin type!
std::string getMessage()
Gets the current plugin execution message.
std::string getName()
Returns the name of the corresponding plugin.
std::string message_
the last received plugin execution message
AbstractExecutionBase(std::string name, boost::function< void()> setup_fn, boost::function< void()> cleanup_fn)
void waitForStateUpdate(boost::chrono::microseconds const &duration)
uint32_t outcome_
the last received plugin execution outcome
boost::thread thread_
the controlling thread object
#define ROS_WARN_STREAM(args)
uint32_t getOutcome()
Gets the current plugin execution outcome.