|
Aria
2.8.0
|
Mode for controlling the gripper. More...
#include <ArModes.h>
Inherits ArMode.
Public Member Functions | |
| virtual void | activate (void) |
| ArModeGripper (ArRobot *robot, const char *name, char key, char key2) | |
| Constructor. | |
| void | close (void) |
| virtual void | deactivate (void) |
| void | down (void) |
| void | exercise (void) |
| virtual void | help (void) |
| void | open (void) |
| void | stop (void) |
| void | up (void) |
| virtual void | userTask (void) |
| virtual | ~ArModeGripper () |
| Destructor. | |
Public Member Functions inherited from ArMode | |
| ArMode (ArRobot *robot, const char *name, char key, char key2) | |
| Constructor. More... | |
| bool | baseActivate (void) |
| The base activation, it MUST be called by inheriting classes, and inheriting classes MUST return if this returns false. More... | |
| bool | baseDeactivate (void) |
| The base deactivation, it MUST be called by inheriting classes, and inheriting classes MUST return if this returns false. More... | |
| char | getKey (void) |
| An internal function to get the first key this is bound to. | |
| char | getKey2 (void) |
| An internal function to get the second key this is bound to. | |
| const char * | getName (void) |
| Gets the name of the mode. | |
| virtual | ~ArMode () |
| Destructor. | |
Protected Types | |
| enum | ExerState { UP_OPEN, UP_CLOSE, DOWN_CLOSE, DOWN_OPEN } |
Protected Attributes | |
| ArFunctorC< ArModeGripper > | myCloseCB |
| ArFunctorC< ArModeGripper > | myDownCB |
| ArFunctorC< ArModeGripper > | myExerciseCB |
| bool | myExercising |
| ExerState | myExerState |
| ArGripper | myGripper |
| ArTime | myLastExer |
| ArFunctorC< ArModeGripper > | myOpenCB |
| ArFunctorC< ArModeGripper > | myStopCB |
| ArFunctorC< ArModeGripper > | myUpCB |
Protected Attributes inherited from ArMode | |
| ArFunctorC< ArMode > | myActivateCB |
| ArFunctorC< ArMode > | myDeactivateCB |
| char | myKey |
| char | myKey2 |
| std::string | myName |
| ArRobot * | myRobot |
| ArFunctorC< ArMode > | myUserTaskCB |
Additional Inherited Members | |
Static Public Member Functions inherited from ArMode | |
| static void | baseHelp (void) |
| This is the base help function, its internal, bound to ? and h and H. | |
Protected Member Functions inherited from ArMode | |
| void | addKeyHandler (int keyToHandle, ArFunctor *functor) |
| void | remKeyHandler (ArFunctor *functor) |
Static Protected Attributes inherited from ArMode | |
| static ArMode * | ourActiveMode = NULL |
| static ArGlobalFunctor * | ourHelpCB = NULL |
| static std::list< ArMode * > | ourModes |
Mode for controlling the gripper.