An object that can execute DurativeActions from a plan. More...
#include <actionExecutorInterface.h>
Public Member Functions | |
ActionExecutorInterface () | |
virtual void | cancelAction ()=0 |
Stop execution of this action, if it is running. | |
virtual bool | canExecute (const DurativeAction &a, const SymbolicState ¤tState) const =0 |
An action executor should return true, if it can execute the action. | |
virtual bool | executeBlocking (const DurativeAction &a, SymbolicState ¤tState)=0 |
Execute the action and return upon execution. | |
virtual void | initialize (const std::deque< std::string > &arguments) |
Initialize the action from a list of arguments - should be called after creating the interface. | |
virtual | ~ActionExecutorInterface () |
An object that can execute DurativeActions from a plan.
Definition at line 15 of file actionExecutorInterface.h.
Definition at line 18 of file actionExecutorInterface.h.
virtual continual_planning_executive::ActionExecutorInterface::~ActionExecutorInterface | ( | ) | [inline, virtual] |
Definition at line 19 of file actionExecutorInterface.h.
virtual void continual_planning_executive::ActionExecutorInterface::cancelAction | ( | ) | [pure virtual] |
Stop execution of this action, if it is running.
Implemented in ActionExecutorActionlib< Action, ActionGoal, ActionResult >, and ActionExecutorService< Service >.
virtual bool continual_planning_executive::ActionExecutorInterface::canExecute | ( | const DurativeAction & | a, |
const SymbolicState & | currentState | ||
) | const [pure virtual] |
An action executor should return true, if it can execute the action.
[in] | a | the action the be exectued |
[in] | currentState | the current state |
Implemented in ActionExecutorActionlib< Action, ActionGoal, ActionResult >, and ActionExecutorService< Service >.
virtual bool continual_planning_executive::ActionExecutorInterface::executeBlocking | ( | const DurativeAction & | a, |
SymbolicState & | currentState | ||
) | [pure virtual] |
Execute the action and return upon execution.
[in,out] | currentState | the current state, possibly updated by the action. |
Implemented in ActionExecutorActionlib< Action, ActionGoal, ActionResult >, and ActionExecutorService< Service >.
virtual void continual_planning_executive::ActionExecutorInterface::initialize | ( | const std::deque< std::string > & | arguments | ) | [inline, virtual] |
Initialize the action from a list of arguments - should be called after creating the interface.
Reimplemented in ActionExecutorActionlib< Action, ActionGoal, ActionResult >, and ActionExecutorService< Service >.
Definition at line 22 of file actionExecutorInterface.h.