#include <ArServerClasses.h>
Public Member Functions | ||||
ArActionLost (ArBaseLocalizationTask *locTask, ArPathPlanningTask *pathTask, ArServerMode *serverMode=NULL, const char *name="lost stopper") | ||||
| ||||
virtual | ~ArActionLost () | |||
Destructor. | ||||
void | enable (void) | |||
Lets this action work (defaults to enabled). | ||||
void | disable (void) | |||
Prevents this action from doing anything until enabled. | ||||
bool | isEnabled (void) const | |||
Sees if this action can do anything or not. | ||||
ArFunctor * | getEnableCB (void) | |||
Gets a callback to enable the action. | ||||
ArFunctor * | getDisableCB (void) | |||
Gets a callback to disable the action. |
ArActionLost::ArActionLost | ( | ArBaseLocalizationTask * | locTask, | |
ArPathPlanningTask * | pathTask, | |||
ArServerMode * | serverMode = NULL , |
|||
const char * | name = "lost stopper" | |||
) |
locTask | Localization task to get localization score from |
pathTask | If not NULL, then cancel this path planner's goal if lost and the path planner is active. | |
serverMode | Server mode to activate if lost | |
name | Optional, name for this action |