Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages | Examples

ArRatioInputKeydrive Class Reference

#include <ArRatioInputKeydrive.h>

List of all members.


Detailed Description

This will use the keyboard arrow keys and the ArActionRatioInput to drive the robot.

You have to make an ArActionRatioInput and add it to the robot like a normal action for this to work.


Public Member Functions

 ArRatioInputKeydrive (ArRobot *robot, ArActionRatioInput *input, int priority=25, double velIncrement=5)
 Constructor.
void down (void)
 Internal, callback for down arrow.
ArFunctorgetFireCB (void)
 Internal, gets our firecb.
void giveUpKeys (void)
 Gives up the keys this action wants to use to drive.
void left (void)
 Internal, callback for left arrow.
void right (void)
 Internal, callback for right arrow.
void space (void)
 Internal, callback for space key.
void takeKeys (void)
 Takes the keys this action wants to use to drive.
void up (void)
 Internal, callback for up arrow.
void x (void)
 Internal, callback for x.
void z (void)
 Internal, callback for z.
virtual ~ArRatioInputKeydrive ()
 Destructor.

Protected Member Functions

void activate (void)
void deactivate (void)
void fireCallback (void)

Protected Attributes

ArFunctorC< ArRatioInputKeydrivemyActivateCB
ArFunctorC< ArRatioInputKeydrivemyDeactivateCB
ArFunctorC< ArRatioInputKeydrivemyDownCB
ArFunctorC< ArRatioInputKeydrivemyFireCB
bool myHaveKeys
ArActionRatioInputmyInput
double myLatRatio
double myLatVelIncrement
ArFunctorC< ArRatioInputKeydrivemyLeftCB
double myPrinting
ArFunctorC< ArRatioInputKeydrivemyRightCB
ArRobotmyRobot
double myRotRatio
ArFunctorC< ArRatioInputKeydrivemySpaceCB
double myThrottle
double myTransRatio
ArFunctorC< ArRatioInputKeydrivemyUpCB
double myVelIncrement
ArFunctorC< ArRatioInputKeydrivemyXCB
ArFunctorC< ArRatioInputKeydrivemyZCB


The documentation for this class was generated from the following files:
Generated on Thu Jan 7 10:34:43 2010 for Aria by  doxygen 1.4.2