Public Member Functions | |
void | down (void) |
Down arrow key handler: drive the robot backward. | |
InputHandler (ArClientBase *client, ArKeyHandler *keyHandler) | |
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 |
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 > | 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 |
|
Definition at line 116 of file clientDemo.cpp. References ArKeyHandler::addKeyHandler(), client, myDownCB, myKeyHandler, myLeftCB, myListDataCB, myLogTrackingTerseCB, myLogTrackingVerboseCB, myResetTrackingCB, myRightCB, mySafeDriveCB, myUnsafeDriveCB, and myUpCB. |
|
Definition at line 147 of file clientDemo.cpp. |
|
Down arrow key handler: drive the robot backward.
Definition at line 159 of file clientDemo.cpp. References myPrinting, and myTransRatio. |
|
Left arrow key handler: turn the robot left.
Definition at line 166 of file clientDemo.cpp. References myPrinting, and myRotRatio. |
|
Definition at line 210 of file clientDemo.cpp. References ArClientBase::logDataList(), and myClient. |
|
Definition at line 215 of file clientDemo.cpp. References ArClientBase::logTracking(), and myClient. |
|
Definition at line 220 of file clientDemo.cpp. References ArClientBase::logTracking(), and myClient. |
|
Definition at line 225 of file clientDemo.cpp. References myClient, and ArClientBase::resetTracking(). |
|
Right arrow key handler: turn the robot right.
Definition at line 173 of file clientDemo.cpp. References myPrinting, and myRotRatio. |
|
Send a request to enable "safe drive" mode on the server.
Definition at line 180 of file clientDemo.cpp. References ArBasePacket::byteToBuf(), myClient, myPrinting, and ArClientBase::requestOnce(). Referenced by main(). |
|
Send drive request to the server with stored values.
Definition at line 231 of file clientDemo.cpp. References ArClientBase::dataExists(), ArNetPacket::doubleToBuf(), myClient, myPrinting, myRotRatio, myTransRatio, and ArClientBase::requestOnce(). Referenced by main(). |
|
Send a request to disable "safe drive" mode on the server.
Definition at line 195 of file clientDemo.cpp. References ArBasePacket::byteToBuf(), myClient, myPrinting, and ArClientBase::requestOnce(). |
|
Up arrow key handler: drive the robot forward.
Definition at line 152 of file clientDemo.cpp. References myPrinting, and myTransRatio. |
|
Definition at line 88 of file clientDemo.cpp. Referenced by listData(), logTrackingTerse(), logTrackingVerbose(), resetTracking(), safeDrive(), sendInput(), and unsafeDrive(). |
|
Definition at line 104 of file clientDemo.cpp. Referenced by InputHandler(). |
|
Definition at line 89 of file clientDemo.cpp. Referenced by InputHandler(). |
|
Definition at line 105 of file clientDemo.cpp. Referenced by InputHandler(). |
|
Definition at line 109 of file clientDemo.cpp. Referenced by InputHandler(). |
|
Definition at line 110 of file clientDemo.cpp. Referenced by InputHandler(). |
|
Definition at line 111 of file clientDemo.cpp. Referenced by InputHandler(). |
|
Set this to true in the constructor to print out debugging information.
Definition at line 92 of file clientDemo.cpp. Referenced by down(), left(), right(), safeDrive(), sendInput(), unsafeDrive(), and up(). |
|
Definition at line 112 of file clientDemo.cpp. Referenced by InputHandler(). |
|
Definition at line 106 of file clientDemo.cpp. Referenced by InputHandler(). |
|
Current rotation ration value (a percentage of the maximum rotational velocity).
Definition at line 98 of file clientDemo.cpp. Referenced by left(), right(), and sendInput(). |
|
Definition at line 107 of file clientDemo.cpp. Referenced by InputHandler(). |
|
Current translation value (a percentage of the maximum speed).
Definition at line 95 of file clientDemo.cpp. Referenced by down(), sendInput(), and up(). |
|
Definition at line 108 of file clientDemo.cpp. Referenced by InputHandler(). |
|
Definition at line 103 of file clientDemo.cpp. Referenced by InputHandler(). |