Public Member Functions | |
| void | down (void) |
| Down arrow key handler: drive the robot backward. | |
| InputHandler (ArClientBase *client, ArKeyHandler *keyHandler) | |
| void | lateralLeft (void) |
| Move the robot laterally right (q key). | |
| void | lateralRight (void) |
| Move the robot laterally right (e key). | |
| void | left (void) |
| Left arrow key handler: turn the robot left. | |
| void | listData () |
| void | logTrackingTerse () |
| void | logTrackingVerbose () |
| void | resetTracking () |
| void | right (void) |
| Right arrow key handler: turn the robot right. | |
| void | safeDrive () |
| Send a request to enable "safe drive" mode on the server. | |
| void | sendInput (void) |
| Send drive request to the server with stored values. | |
| void | unsafeDrive () |
| Send a request to disable "safe drive" mode on the server. | |
| void | up (void) |
| Up arrow key handler: drive the robot forward. | |
| virtual | ~InputHandler (void) |
Protected Attributes | |
| ArClientBase * | myClient |
| ArKeyHandler * | myKeyHandler |
| double | myLatRatio |
| Current rotation ration value (a percentage of the maximum rotational velocity). | |
| bool | myPrinting |
| Set this to true in the constructor to print out debugging information. | |
| double | myRotRatio |
| Current rotation ration value (a percentage of the maximum rotational velocity). | |
| double | myTransRatio |
| Current translation value (a percentage of the maximum speed). | |
| ArFunctorC< InputHandler > | myDownCB |
| ArFunctorC< InputHandler > | myLateralLeftCB |
| ArFunctorC< InputHandler > | myLateralRightCB |
| ArFunctorC< InputHandler > | myLeftCB |
| ArFunctorC< InputHandler > | myListDataCB |
| ArFunctorC< InputHandler > | myLogTrackingTerseCB |
| ArFunctorC< InputHandler > | myLogTrackingVerboseCB |
| ArFunctorC< InputHandler > | myResetTrackingCB |
| ArFunctorC< InputHandler > | myRightCB |
| ArFunctorC< InputHandler > | mySafeDriveCB |
| ArFunctorC< InputHandler > | myUnsafeDriveCB |
| ArFunctorC< InputHandler > | myUpCB |
| Functor objects, given to the key handler, which then call our handler methods above. | |
| InputHandler::InputHandler | ( | ArClientBase * | client, | |
| ArKeyHandler * | keyHandler | |||
| ) |
| client | Our client networking object | |
| keyHandler | Key handler to register command callbacks with |
| InputHandler::~InputHandler | ( | void | ) | [virtual] |
| void InputHandler::down | ( | void | ) |
Down arrow key handler: drive the robot backward.
| void InputHandler::lateralLeft | ( | void | ) |
Move the robot laterally right (q key).
| void InputHandler::lateralRight | ( | void | ) |
Move the robot laterally right (e key).
| void InputHandler::left | ( | void | ) |
Left arrow key handler: turn the robot left.
| void InputHandler::listData | ( | ) |
| void InputHandler::logTrackingTerse | ( | ) |
| void InputHandler::logTrackingVerbose | ( | ) |
| void InputHandler::resetTracking | ( | ) |
| void InputHandler::right | ( | void | ) |
Right arrow key handler: turn the robot right.
| void InputHandler::safeDrive | ( | ) |
Send a request to enable "safe drive" mode on the server.
| void InputHandler::sendInput | ( | void | ) |
Send drive request to the server with stored values.
| void InputHandler::unsafeDrive | ( | ) |
Send a request to disable "safe drive" mode on the server.
| void InputHandler::up | ( | void | ) |
Up arrow key handler: drive the robot forward.
ArClientBase* InputHandler::myClient [protected] |
ArFunctorC<InputHandler> InputHandler::myDownCB [protected] |
ArKeyHandler* InputHandler::myKeyHandler [protected] |
ArFunctorC<InputHandler> InputHandler::myLateralLeftCB [protected] |
ArFunctorC<InputHandler> InputHandler::myLateralRightCB [protected] |
double InputHandler::myLatRatio [protected] |
Current rotation ration value (a percentage of the maximum rotational velocity).
ArFunctorC<InputHandler> InputHandler::myLeftCB [protected] |
ArFunctorC<InputHandler> InputHandler::myListDataCB [protected] |
ArFunctorC<InputHandler> InputHandler::myLogTrackingTerseCB [protected] |
ArFunctorC<InputHandler> InputHandler::myLogTrackingVerboseCB [protected] |
bool InputHandler::myPrinting [protected] |
Set this to true in the constructor to print out debugging information.
ArFunctorC<InputHandler> InputHandler::myResetTrackingCB [protected] |
ArFunctorC<InputHandler> InputHandler::myRightCB [protected] |
double InputHandler::myRotRatio [protected] |
Current rotation ration value (a percentage of the maximum rotational velocity).
ArFunctorC<InputHandler> InputHandler::mySafeDriveCB [protected] |
double InputHandler::myTransRatio [protected] |
Current translation value (a percentage of the maximum speed).
ArFunctorC<InputHandler> InputHandler::myUnsafeDriveCB [protected] |
ArFunctorC<InputHandler> InputHandler::myUpCB [protected] |
Functor objects, given to the key handler, which then call our handler methods above.
1.4.7