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

ArRatioInputKeydrive Class Reference

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

#include <ArRatioInputKeydrive.h>

List of all members.

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.
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
ArFunctorC< ArRatioInputKeydrivemyLeftCB
double myPrinting
ArFunctorC< ArRatioInputKeydrivemyRightCB
ArRobotmyRobot
double myRotRatio
ArFunctorC< ArRatioInputKeydrivemySpaceCB
double myThrottle
double myTransRatio
ArFunctorC< ArRatioInputKeydrivemyUpCB
double myVelIncrement


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.

Definition at line 41 of file ArRatioInputKeydrive.h.


The documentation for this class was generated from the following files:
Generated on Wed Oct 19 12:56:52 2005 for Aria by  doxygen 1.4.0