#include <sinecontroller.h>
Inherits AbstractController.
Inheritance diagram for SineController:
Public Member Functions | |
SineController (int number_controlled=-1) | |
virtual void | init (int sensornumber, int motornumber) |
initialisation of the controller with the given sensor/ motornumber Must be called before use. | |
virtual int | getSensorNumber () const |
virtual int | getMotorNumber () const |
virtual void | step (const sensor *sensors, int sensornumber, motor *motors, int motornumber) |
performs one step (includes learning). | |
virtual void | stepNoLearning (const sensor *, int number_sensors, motor *, int number_motors) |
performs one step without learning. | |
virtual std::list< iparamkey > | getInternalParamNames () const |
The list of the names of all internal parameters given by getInternalParams(). | |
virtual std::list< iparamval > | getInternalParams () const |
virtual paramval | getParam (const paramkey &key) const |
returns the value of the requested parameter or 0 (+ error message to stderr) if unknown. | |
virtual bool | setParam (const paramkey &key, paramval val) |
sets the value of the given parameter or does nothing if unknown. | |
virtual paramlist | getParamList () const |
The list of all parameters with there value as allocated lists. | |
virtual bool | store (FILE *f) const |
Storable. | |
virtual bool | restore (FILE *f) |
Storable. | |
Protected Attributes | |
int | t |
std::string | name |
int | number_sensors |
int | number_motors |
int | number_controlled |
paramval | sineRate |
paramval | phaseShift |
|
|
|
The list of the names of all internal parameters given by getInternalParams(). The naming convention is "v[i]" for vectors and "A[i][j]" for matrices, where i, j start at 0.
Implements Inspectable.
|
|
Implements Inspectable.
|
|
Reimplemented from AbstractController.
|
|
returns the value of the requested parameter or 0 (+ error message to stderr) if unknown.
Reimplemented from Configurable.
|
|
The list of all parameters with there value as allocated lists.
Reimplemented from Configurable.
|
|
Reimplemented from AbstractController.
|
|
initialisation of the controller with the given sensor/ motornumber Must be called before use.
Reimplemented from AbstractController.
|
|
Storable.
Implements Storeable.
|
|
sets the value of the given parameter or does nothing if unknown.
Reimplemented from Configurable.
|
|
performs one step (includes learning). Calculates motor commands from sensor inputs.
Reimplemented from AbstractController.
|
|
performs one step without learning.
Reimplemented from AbstractController.
|
|
Storable.
Implements Storeable.
|
|
Reimplemented from Configurable.
|
|
|
|
|
|
|
|
|
|
|
|
|