InputHandler Class Reference

List of all members.

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

ArClientBasemyClient
ArKeyHandlermyKeyHandler
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< InputHandlermyDownCB
ArFunctorC< InputHandlermyLateralLeftCB
ArFunctorC< InputHandlermyLateralRightCB
ArFunctorC< InputHandlermyLeftCB
ArFunctorC< InputHandlermyListDataCB
ArFunctorC< InputHandlermyLogTrackingTerseCB
ArFunctorC< InputHandlermyLogTrackingVerboseCB
ArFunctorC< InputHandlermyResetTrackingCB
ArFunctorC< InputHandlermyRightCB
ArFunctorC< InputHandlermySafeDriveCB
ArFunctorC< InputHandlermyUnsafeDriveCB
ArFunctorC< InputHandlermyUpCB
 Functor objects, given to the key handler, which then call our handler methods above.

Constructor & Destructor Documentation

InputHandler::InputHandler ( ArClientBase client,
ArKeyHandler keyHandler 
)

Parameters:
client Our client networking object
keyHandler Key handler to register command callbacks with

InputHandler::~InputHandler ( void   )  [virtual]


Member Function Documentation

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.


Member Data Documentation

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.


The documentation for this class was generated from the following file:
Generated on Fri Jul 31 12:37:30 2009 for ArNetworking by  doxygen 1.4.7