24 #ifndef __MOTORBABBLER_H
25 #define __MOTORBABBLER_H
48 virtual void step(
const sensor* sensors,
int sensornumber,
49 motor* motors,
int motornumber){
60 virtual bool store(FILE* f)
const {
72 static double sine(
double x);
virtual void step(const sensor *sensors, int sensornumber, motor *motors, int motornumber)
performs one step (includes learning).
Definition: motorbabbler.h:48
Matrix type.
Definition: matrix.h:65
RandGen * randGen
Definition: motorbabbler.h:86
Abstract class for robot controller (with some basic functionality).
Definition: abstractcontroller.h:46
virtual void stepNoLearning(const sensor *, int number_sensors, motor *, int number_motors)
performs one step without learning.
Definition: motorbabbler.cpp:72
static double sine(double x)
sine
Definition: motorbabbler.cpp:88
double sensor
Definition: types.h:29
class for robot control that does motor babbling, e.g.
Definition: motorbabbler.h:35
random generator with 48bit integer arithmentic
Definition: randomgenerator.h:34
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: motorbabbler.cpp:53
Definition: motorbabbler.h:37
Definition: motorbabbler.h:37
int number_motors
Definition: motorbabbler.h:78
void print(FILE *f, const char *prefix, int columns=90, bool traverseChildren=true) const
prints the keys, values and descriptions to the file. Each line is prefixed
Definition: configurable.cpp:308
paramval speed
Definition: motorbabbler.h:80
double(* osci)(double x)
Definition: motorbabbler.h:88
virtual bool store(FILE *f) const
Definition: motorbabbler.h:60
double sensor
Definition: abstractcontroller.h:48
double paramval
Definition: configurable.h:88
virtual int getMotorNumber() const
Definition: motorbabbler.h:47
virtual int getSensorNumber() const
Definition: motorbabbler.h:46
paramint resampling
Definition: motorbabbler.h:82
MotorBabbler(function func=Sine)
Definition: motorbabbler.cpp:34
int paramint
Definition: configurable.h:98
paramval amplitude
Definition: motorbabbler.h:81
double motor
Definition: types.h:30
matrix::Matrix frequencies
Definition: motorbabbler.h:84
matrix::Matrix phases
Definition: motorbabbler.h:83
bool parse(FILE *f, const char *prefix=0, bool traverseChildren=true)
parses the configuration from the given file
Definition: configurable.cpp:384
double motor
Definition: abstractcontroller.h:49
int t
Definition: motorbabbler.h:89
void sampleFrequencies()
Definition: motorbabbler.cpp:65
virtual bool restore(FILE *f)
Definition: motorbabbler.h:66
int number_sensors
Definition: motorbabbler.h:77
static double sawtooth(double x)
saw tooth shape oscillator
Definition: motorbabbler.cpp:92