#include <ArServerClasses.h>
Inheritance diagram for ArServerModeGoto:

Handles requests to go to a goal or point, to go to the home point, or to tour all goals. 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) |
| void | tourGoalsInList (std::deque< std::string > goalList) |
| void | addTourGoalsInListSimpleCommand (ArServerHandlerCommands *commandsServer) |
Protected Member Functions | |
| void | reset (void) |
| void | goalDone (ArPose pose) |
| void | goalFailed (ArPose pose) |
| void | findNextTourGoal (void) |
| Set myGoalName to the name of the next goal in the tour. | |
| size_t | numGoalsTouring () |
| number of goals in current tour, or 0 if none | |
| 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 |
|
|
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(). |
|
|
Callback from ARNL when a goal is reached. Set myStatus and other state. If touring, plan the next goal in the tour. |
|
|
Callback from ARNL when a goal fails. Set myStatus and other state. If touring, plan the next goal in the tour. |
|
|
Reset state |
|
|
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. |
|
|
Enter a "tour goals" mode, in which the robot is sent to each goal in the given list in turn. |
|
|
|
1.4.0