19 #ifndef __DERPSEUDOSENSOR_H
20 #define __DERPSEUDOSENSOR_H
62 virtual void init(
int sensornumber,
int motornumber,
RandGen* randGen = 0);
82 virtual bool store(FILE* f)
const;
matrix::Matrix eta_smooth
Definition: derpseudosensor.h:175
virtual void step(const sensor *, int number_sensors, motor *, int number_motors)
performs one step (includes learning).
Definition: derpseudosensor.cpp:153
Matrix type.
Definition: matrix.h:65
abstract class (interface) for invertable models.
Definition: invertablemodel.h:33
virtual void init(int sensornumber, int motornumber, RandGen *randGen=0)
initialisation of the controller with the given sensor/ motornumber Must be called before use...
Definition: derpseudosensor.cpp:67
std::list< IConnection > iconnectionlist
Definition: inspectable.h:88
virtual int getSensorNumber() const
returns the number of sensors the controller was initialised with or 0 if not initialised ...
Definition: derpseudosensor.h:67
NoiseGenerator * YNoiseGen
Noisegenerator for noisy motor values.
Definition: derpseudosensor.h:143
virtual ilayerlist getStructuralLayers() const
Specifies which parameter vector forms a structural layer (in terms of a neural network) The ordering...
Definition: derpseudosensor.cpp:617
DerPseudoSensor(const DerPseudoSensorConf &conf=getDefaultConf())
Definition: derpseudosensor.cpp:29
matrix::Matrix Q
Granger2.
Definition: derpseudosensor.h:146
matrix::Matrix GSC
G_Prime times Controller Matrix.
Definition: derpseudosensor.h:137
matrix::Matrix A
Model Matrix (motors to sensors)
Definition: derpseudosensor.h:133
virtual bool store(FILE *f) const
stores the controller values to a given file.
Definition: derpseudosensor.cpp:507
matrix::Matrix x_smooth_long
Definition: derpseudosensor.h:176
matrix::Matrix x_smooth
Definition: derpseudosensor.h:173
virtual int getMotorNumber() const
returns the mumber of motors the controller was initialised with or 0 if not initialised ...
Definition: derpseudosensor.h:69
matrix::Matrix x_intern
fantasy sensor values
Definition: derpseudosensor.h:183
matrix::Matrix ID_Sensor
identity matrix in the dimension of sensor space
Definition: derpseudosensor.h:152
NoiseGenerator * BNoiseGen
Noisegenerator for noisy bias.
Definition: derpseudosensor.h:142
paramval satelliteTeaching
teaching rate for sat teaching
Definition: derpseudosensor.h:195
matrix::Matrix H
Controller Bias.
Definition: derpseudosensor.h:140
matrix::Matrix * y_buffer
Definition: derpseudosensor.h:165
matrix::Matrix S
additional Model Matrix (sensors to sensors)
Definition: derpseudosensor.h:135
virtual iconnectionlist getStructuralConnections() const
Specifies which parameter matrix forms a connection between layers (in terms of a neural network) The...
Definition: derpseudosensor.cpp:625
charArray paramkey
Definition: avrtypes.h:36
bool modelInit
size of the unit-map strenght of the model
Definition: derpseudosensor.h:38
virtual void setMotorTeachingSignal(const motor *teaching, int len)
The given motor teaching signal is used for this timestep.
Definition: derpseudosensor.cpp:636
matrix::Matrix eta
Definition: derpseudosensor.h:170
matrix::Matrix * x_buffer
Definition: derpseudosensor.h:164
double pain
if the modelling error (xsi) is too high we have a pain signal
Definition: derpseudosensor.h:158
matrix::Matrix A_Hat
Model Matrix (motors to sensors) with input shift.
Definition: derpseudosensor.h:134
Position trunkPosition
Definition: derpseudosensor.h:198
double sensor
Definition: types.h:29
int fantControl
interval length for fantasising
Definition: derpseudosensor.h:184
matrix::Matrix ATA_inv
Definition: derpseudosensor.h:149
matrix::Matrix B
Model Bias.
Definition: derpseudosensor.h:141
virtual void setHeadPosition(Position pos)
Definition: derpseudosensor.h:236
virtual void learnModel(int delay)
learn conf.model, (and S) using motors y and corresponding sensors x
Definition: derpseudosensor.cpp:432
random generator with 48bit integer arithmentic
Definition: randomgenerator.h:34
int t_rand
initial random time to avoid syncronous management of all controllers
Definition: derpseudosensor.h:188
MultiLayerFFNN * sat
satilite network, that learns and teaches
Definition: derpseudosensor.h:178
matrix::Matrix * eta_buffer
Definition: derpseudosensor.h:169
virtual matrix::Matrix calculateControllerValues(const matrix::Matrix &x_smooth)
returns controller output for given sensor values
Definition: derpseudosensor.cpp:465
matrix::Matrix * ysat_buffer
Definition: derpseudosensor.h:166
double causal
Definition: derpseudosensor.h:162
matrix::Matrix Q1
Definition: derpseudosensor.h:147
matrix::Matrix * rho_buffer
Definition: derpseudosensor.h:168
unsigned short number_motors
Definition: derpseudosensor.h:131
void getLastMotors(motor *motors, int len)
Definition: derpseudosensor.cpp:479
matrix::Matrix y_smooth
Definition: derpseudosensor.h:174
double cNonDiag
cNonDiag is the size of the nondiagonal elements in respect to the diagonal (cInit) ones ...
Definition: derpseudosensor.h:37
unsigned short number_sensors
Definition: derpseudosensor.h:130
virtual double calcMatrixNorm(const matrix::Matrix &m)
calculates the city block distance (abs) norm of the matrix. (abs sum of absolutes / size of matrix) ...
Definition: derpseudosensor.cpp:652
bool useS
useS decides whether to use the S matrix in addition to the A matrix
Definition: derpseudosensor.h:39
Definition: position.h:30
double sensor
Definition: abstractcontroller.h:48
virtual void learnController(int delay)
learn values H,C This is the implementation uses a better formula for g^-1 using Mittelwertsatz ...
Definition: derpseudosensor.cpp:215
matrix::Matrix y_teaching
teaching motor signal
Definition: derpseudosensor.h:180
int fantReset
number of fantasy control events before reseting internal state
Definition: derpseudosensor.h:186
virtual void setSensorTeachingSignal(const sensor *teaching, int len)
The given sensor teaching signal (distal learning) is used for this timestep.
Definition: derpseudosensor.cpp:643
double paramval
Definition: configurable.h:88
Extended HomeokinBase class (still abstract) for robot controller work in motorspace and use possibly...
Definition: invertmotorcontroller.h:36
InvertableModel * model
model used as world model
Definition: derpseudosensor.h:45
virtual void setTrunkPosition(Position pos)
Definition: derpseudosensor.h:237
paramval epsSat
learning rate for satellite network
Definition: derpseudosensor.h:194
static DerPseudoSensorConf getDefaultConf()
Definition: derpseudosensor.h:110
double causalfactor
Definition: derpseudosensor.h:163
matrix::Matrix Dinverse
Inverse Noise Matrix.
Definition: derpseudosensor.h:139
struct DerPseudoSensorConf DerPseudoSensorConf
bool someInternalParams
someInternalParams if true only some internal parameters are exported, otherwise all ...
Definition: derpseudosensor.h:40
bool useFantasy
if true fantasising is enabled
Definition: derpseudosensor.h:43
paramval dampH
damping of H vector
Definition: derpseudosensor.h:192
matrix::Matrix xsi
current output error
Definition: derpseudosensor.h:155
matrix::Matrix calcDerivatives(const matrix::Matrix *buffer, int delay)
Calculates first and second derivative and returns both in on matrix (above).
Definition: derpseudosensor.cpp:484
virtual void stepNoLearning(const sensor *, int number_sensors, motor *, int number_motors)
performs one step without learning. Calulates motor commands from sensor inputs.
Definition: derpseudosensor.cpp:171
double grang1
Definition: derpseudosensor.h:160
matrix::Matrix v_smooth
Definition: derpseudosensor.h:171
DerPseudoSensorConf conf
Definition: derpseudosensor.h:200
double xsi_norm
norm of matrix
Definition: derpseudosensor.h:156
int buffersize
buffersize size of the time-buffer for x,y,eta
Definition: derpseudosensor.h:35
matrix::Matrix * chi_buffer
Definition: derpseudosensor.h:167
matrix::Matrix CCT_inv
Definition: derpseudosensor.h:153
matrix::Matrix RRT_inv
Definition: derpseudosensor.h:148
virtual iparamvallist getInternalParams() const
Definition: derpseudosensor.cpp:577
double cInit
cInit size of the C matrix to initialised with.
Definition: derpseudosensor.h:36
double motor
Definition: types.h:30
int fantControlLen
length of fantasy control
Definition: derpseudosensor.h:185
int managementInterval
interval between subsequent management function calls
Definition: derpseudosensor.h:189
virtual void management()
handles inhibition damping etc.
Definition: derpseudosensor.cpp:491
matrix::Matrix ID
identity matrix in the dimension of R
Definition: derpseudosensor.h:151
matrix::Matrix zero_eta
Definition: derpseudosensor.h:172
Position headPosition
Definition: derpseudosensor.h:197
paramval dampS
damping of S matrix
Definition: derpseudosensor.h:190
Definition: derpseudosensor.h:34
virtual bool restore(FILE *f)
loads the controller values from a given file.
Definition: derpseudosensor.cpp:518
matrix::Matrix RG
Granger1.
Definition: derpseudosensor.h:145
class for robot controller is based on InvertMotorNStep
Definition: derpseudosensor.h:58
matrix::Matrix R
C*A.
Definition: derpseudosensor.h:144
InvertableModel * sat
satellite network, that learns and teaches (can be 0)
Definition: derpseudosensor.h:46
matrix::Matrix C
Controller Matrix.
Definition: derpseudosensor.h:136
multi layer neural network with configurable activation functions
Definition: multilayerffnn.h:35
virtual ~DerPseudoSensor()
Definition: derpseudosensor.cpp:55
paramval dampC
damping of C matrix
Definition: derpseudosensor.h:191
double grang2
Definition: derpseudosensor.h:161
double motor
Definition: abstractcontroller.h:49
std::list< ILayer > ilayerlist
Definition: inspectable.h:87
matrix::Matrix DD
Noise Matrix.
Definition: derpseudosensor.h:138
double TLE
Definition: derpseudosensor.h:159
matrix::Matrix CST
Definition: derpseudosensor.h:154
std::list< iparamkey > iparamkeylist
Definition: inspectable.h:59
std::list< iparamval > iparamvallist
Definition: inspectable.h:61
virtual iparamkeylist getInternalParamNames() const
The list of the names of all internal parameters given by getInternalParams().
Definition: derpseudosensor.cpp:538
bool useTeaching
flag whether there is an actual teachning signal or not
Definition: derpseudosensor.h:181
virtual void notifyOnChange(const paramkey &key)
Is called when a parameter was changes via setParam().
Definition: derpseudosensor.cpp:530
int c
Definition: hexapod.cpp:56
double xsi_norm_avg
average norm of xsi (used to define whether Modell learns)
Definition: derpseudosensor.h:157
double modelCompliant
learning factor for model (or sensor) compliant learning
Definition: derpseudosensor.h:42
virtual void fillBuffersAndControl(const sensor *x_, int number_sensors, motor *y_, int number_motors)
puts the sensors in the ringbuffer, generate controller values and put them in the ...
Definition: derpseudosensor.cpp:179
matrix::Matrix Rm1
R^-1.
Definition: derpseudosensor.h:150
paramval weighting
general weighting factor between update concepts
Definition: derpseudosensor.h:193
Interface and basic class for noise generator.
Definition: noisegenerator.h:37