#include <sinecontroller.h>
Inheritance diagram for SineController:
Definition at line 64 of file sinecontroller.h.
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 paramkey | getName () const |
returns the name of the object (with version number) | |
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 list< iparamkey > | getInternalParamNames () const |
The list of the names of all internal parameters given by getInternalParams(). | |
virtual list< iparamval > | getInternalParams () const |
The list of the names of all internal parameters given by getInternalParams(). | |
virtual paramval | getParam (const paramkey &key) const |
virtual bool | setParam (const paramkey &key, paramval val) |
virtual paramlist | getParamList () const |
The list of all parameters with there value as allocated lists. | |
virtual bool | store (const char *filename) |
stores the controller values to a given file. | |
virtual bool | restore (const char *filename) |
loads the controller values from a given file. | |
Protected Attributes | |
int | t |
string | name |
int | number_sensors |
int | number_motors |
int | number_controlled |
paramval | sineRate |
paramval | phaseShift |
|
Definition at line 51 of file sinecontroller.cpp. |
|
The list of the names of all internal parameters given by getInternalParams().
Implements Inspectable. Definition at line 105 of file sinecontroller.h. |
|
The list of the names of all internal parameters given by getInternalParams().
Implements Inspectable. Definition at line 109 of file sinecontroller.h. |
|
Reimplemented from AbstractController. Definition at line 84 of file sinecontroller.h. |
|
returns the name of the object (with version number)
Reimplemented from Configurable. Definition at line 75 of file sinecontroller.h. |
|
Definition at line 105 of file sinecontroller.cpp. |
|
The list of all parameters with there value as allocated lists.
Reimplemented from Configurable. Definition at line 118 of file sinecontroller.cpp. |
|
Reimplemented from AbstractController. Definition at line 79 of file sinecontroller.h. |
|
initialisation of the controller with the given sensor/ motornumber Must be called before use.
Reimplemented from AbstractController. Definition at line 69 of file sinecontroller.cpp. |
|
loads the controller values from a given file. This should include internal parameters as well as configurable values Reimplemented from AbstractController. Definition at line 124 of file sinecontroller.h. |
|
Definition at line 111 of file sinecontroller.cpp. |
|
performs one step (includes learning). Calculates motor commands from sensor inputs.
Reimplemented from AbstractController. Definition at line 82 of file sinecontroller.cpp. |
|
performs one step without learning.
Reimplemented from AbstractController. Definition at line 90 of file sinecontroller.cpp. |
|
stores the controller values to a given file. This should include internal parameters as well as configurable values Reimplemented from AbstractController. Definition at line 119 of file sinecontroller.h. |
|
Definition at line 130 of file sinecontroller.h. |
|
Definition at line 133 of file sinecontroller.h. |
|
Definition at line 132 of file sinecontroller.h. |
|
Definition at line 131 of file sinecontroller.h. |
|
Definition at line 136 of file sinecontroller.h. |
|
Definition at line 135 of file sinecontroller.h. |
|
Definition at line 124 of file sinecontroller.h. |