Aria  2.8.0
ArRatioInputKeydrive Class Reference

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

#include <ArRatioInputKeydrive.h>

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
 

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.


The documentation for this class was generated from the following files: