#include <abstractcontroller.h>
Inheritance diagram for AbstractController:
The controller gets a number of input sensor values each timestep and has to generate a number of output motor values.
Interface assumes the following usage:
Definition at line 68 of file abstractcontroller.h.
Public Member Functions | |
virtual void | init (int sensornumber, int motornumber) ABSTRACT |
initialisation of the controller with the given sensor/ motornumber Must be called before use. | |
virtual int | getSensorNumber () const ABSTRACT |
virtual int | getMotorNumber () const ABSTRACT |
virtual void | step (const sensor *sensors, int sensornumber, motor *motors, int motornumber) ABSTRACT |
performs one step (includes learning). | |
virtual void | stepNoLearning (const sensor *, int number_sensors, motor *, int number_motors) ABSTRACT |
performs one step without learning. | |
virtual bool | store (const char *filename) ABSTRACT |
stores the controller values to a given file. | |
virtual bool | restore (const char *filename) ABSTRACT |
loads the controller values from a given file. |
|
Reimplemented in InvertMotorSpace, InvertNChannelController, and SineController. |
|
Reimplemented in InvertMotorSpace, InvertNChannelController, and SineController. |
|
initialisation of the controller with the given sensor/ motornumber Must be called before use.
Reimplemented in DInvert3ChannelController, InvertMotorSpace, InvertNChannelController, and SineController. |
|
loads the controller values from a given file. This should include internal parameters Reimplemented in InvertMotorSpace, InvertNChannelController, and SineController. |
|
performs one step (includes learning). Calculates motor commands from sensor inputs.
Reimplemented in DInvert3ChannelController, Invert3ChannelController, InvertMotorSpace, InvertNChannelController, InvertNChannelController_Gnu, and SineController. |
|
performs one step without learning.
Reimplemented in DInvert3ChannelController, Invert3ChannelController, InvertMotorSpace, InvertNChannelController, InvertNChannelController_Gnu, and SineController. |
|
stores the controller values to a given file. This should include internal parameters. Reimplemented in InvertMotorSpace, InvertNChannelController, and SineController. |