Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Teem::KeyboardController Class Reference
[Controllers and neural networks]

#include <Keyboard.h>

Inheritance diagram for Teem::KeyboardController:

Teem::Controller List of all members.

Detailed Description

A controller that allows the user to control the robot with the cursor keys on the keyboard.

Very useful for testing. Implement a differential wheeled robot model where the keyboard arrows set output[0] and output[1] corresponding to virtual left and right speeds

Public Member Functions

 KeyboardController (double runningSpeed, double turningSpeed)
 Constructor takes the runningSpeed (in cm/s) and turningSpeed as input (in rad/s (?)).
virtual ~KeyboardController ()
virtual void setInput (unsigned index, double val)
 Do not call. A keyboard in Teem has no inputs, only outputs.
virtual double getOutput (unsigned index)
 Get output corresponding to arrows keys.
virtual void step ()
 Do a step, process inputs and compute outputs.

Public Attributes

double runningSpeed
 forward speed
double turningSpeed
 rotation speed

Protected Attributes

double output [2]
 virtual left and right speed

The documentation for this class was generated from the following files:
Generated on Mon Oct 24 17:38:27 2005 for Teem by  doxygen 1.4.2