Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes
mbf_abstract_nav::AbstractExecutionBase Class Reference

#include <abstract_execution_base.h>

Inheritance diagram for mbf_abstract_nav::AbstractExecutionBase:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 AbstractExecutionBase (std::string name, boost::function< void()> setup_fn, boost::function< void()> cleanup_fn)
virtual bool cancel ()=0
 Cancel the plugin execution.
std::string getMessage ()
 Gets the current plugin execution message.
std::string getName ()
 Returns the name of the corresponding plugin.
uint32_t getOutcome ()
 Gets the current plugin execution outcome.
void join ()
virtual bool start ()
virtual void stop ()
void waitForStateUpdate (boost::chrono::microseconds const &duration)

Public Attributes

boost::function< void()> cleanup_fn_
 Implementation-specific cleanup function called right after execution; empty on abstract server.
boost::function< void()> setup_fn_
 Implementation-specific setup function called right before execution; empty on abstract server.

Protected Member Functions

virtual void run ()=0

Protected Attributes

bool cancel_
 flag for canceling controlling
boost::condition_variable condition_
 condition variable to wake up control thread
std::string message_
 the last received plugin execution message
std::string name_
 the plugin name; not the plugin type!
uint32_t outcome_
 the last received plugin execution outcome
boost::thread thread_
 the controlling thread object

Detailed Description

Definition at line 50 of file abstract_execution_base.h.


Constructor & Destructor Documentation

mbf_abstract_nav::AbstractExecutionBase::AbstractExecutionBase ( std::string  name,
boost::function< void()>  setup_fn,
boost::function< void()>  cleanup_fn 
)

Definition at line 43 of file abstract_execution_base.cpp.


Member Function Documentation

virtual bool mbf_abstract_nav::AbstractExecutionBase::cancel ( ) [pure virtual]

Cancel the plugin execution.

Returns:
true, if the plugin tries / tried to cancel the computation.

Implemented in mbf_abstract_nav::AbstractPlannerExecution, mbf_abstract_nav::AbstractControllerExecution, and mbf_abstract_nav::AbstractRecoveryExecution.

Gets the current plugin execution message.

Definition at line 80 of file abstract_execution_base.cpp.

Returns the name of the corresponding plugin.

Definition at line 85 of file abstract_execution_base.cpp.

Gets the current plugin execution outcome.

Definition at line 75 of file abstract_execution_base.cpp.

Definition at line 64 of file abstract_execution_base.cpp.

virtual void mbf_abstract_nav::AbstractExecutionBase::run ( ) [protected, pure virtual]

Reimplemented in mbf_abstract_nav::AbstractControllerExecution.

Definition at line 50 of file abstract_execution_base.cpp.

Definition at line 57 of file abstract_execution_base.cpp.

void mbf_abstract_nav::AbstractExecutionBase::waitForStateUpdate ( boost::chrono::microseconds const &  duration)

Definition at line 68 of file abstract_execution_base.cpp.


Member Data Documentation

flag for canceling controlling

Definition at line 108 of file abstract_execution_base.h.

Implementation-specific cleanup function called right after execution; empty on abstract server.

Definition at line 80 of file abstract_execution_base.h.

boost::condition_variable mbf_abstract_nav::AbstractExecutionBase::condition_ [protected]

condition variable to wake up control thread

Definition at line 102 of file abstract_execution_base.h.

the last received plugin execution message

Definition at line 114 of file abstract_execution_base.h.

the plugin name; not the plugin type!

Definition at line 117 of file abstract_execution_base.h.

the last received plugin execution outcome

Definition at line 111 of file abstract_execution_base.h.

Implementation-specific setup function called right before execution; empty on abstract server.

Definition at line 75 of file abstract_execution_base.h.

the controlling thread object

Definition at line 105 of file abstract_execution_base.h.


The documentation for this class was generated from the following files:


mbf_abstract_nav
Author(s): Sebastian Pütz
autogenerated on Mon Jun 17 2019 20:11:35