#include <ArServerClasses.h>
It sets the server Status and Mode strings when active.
This class adds the following data requests to the server:
Public Member Functions | |
void | tourGoals (void) |
Enter a "tour goals" mode, in which the robot is sent to each goal in the map in turn. | |
void | tourGoalsInList (std::deque< std::string > goalList) |
Enter a "tour goals" mode, in which the robot is sent to each goal in the given list in turn. | |
void | addTourGoalsInListSimpleCommand (ArServerHandlerCommands *commandsServer) |
Add a "tour" command to the given "simple commands" object. | |
Protected Member Functions | |
void | reset (void) |
Reset state. | |
void | goalDone (ArPose pose) |
Callback from ARNL when a goal is reached. | |
void | goalFailed (ArPose pose) |
Callback from ARNL when a goal fails. | |
void | findNextTourGoal (void) |
Set myGoalName to the name of the next goal in the tour. | |
size_t | numGoalsTouring () |
| |
void | planToNextTourGoal () |
Keep trying to plan paths to goals in a tour, until either a plan succeeds or all the goals fail. | |
void | tourGoalsInListCommand (ArArgumentBuilder *args) |
Used as callback from ArServerHandlerCommands (simple/custom commands). | |
Protected Attributes | |
std::deque< std::string > | myTouringGoalsList |
void ArServerModeGoto::tourGoals | ( | void | ) |
Enter a "tour goals" mode, in which the robot is sent to each goal in the map in turn.
This mode can be entered using the tourGoals networking request.
void ArServerModeGoto::tourGoalsInList | ( | std::deque< std::string > | goalList | ) |
Enter a "tour goals" mode, in which the robot is sent to each goal in the given list in turn.
void ArServerModeGoto::addTourGoalsInListSimpleCommand | ( | ArServerHandlerCommands * | commandsServer | ) |
Add a "tour" command to the given "simple commands" object.
This simple (custom) command accepts a comma-separated list of goals, builds a list of goals, expanding items ending in a wildcard (*) to maching goals, and omitting invalid goals, and then calls tourGoalsInList().
void ArServerModeGoto::goalDone | ( | ArPose | pose | ) | [protected] |
Callback from ARNL when a goal is reached.
Set myStatus and other state. If touring, plan the next goal in the tour.
void ArServerModeGoto::goalFailed | ( | ArPose | pose | ) | [protected] |
Callback from ARNL when a goal fails.
Set myStatus and other state. If touring, plan the next goal in the tour.
std::deque<std::string> ArServerModeGoto::myTouringGoalsList [protected] |