24 #ifndef __MOTORNOISEWIRING_H
25 #define __MOTORNOISEWIRING_H
27 #include <selforg/one2onewiring.h>
28 #include <selforg/configurable.h>
68 memset(nv, 0 ,
sizeof(
double) * rmotornumber);
Matrix type.
Definition: matrix.h:65
Implements one to one wiring of robot sensors to inputs of the controller and controller outputs to r...
Definition: one2onewiring.h:32
virtual void add(double *value, double noiseStrength)
adds multidimensional noise to the value field.
Definition: noisegenerator.h:85
int rmotornumber
number of motors at robot side
Definition: abstractwiring.h:182
virtual bool initIntern()
initializes the number of sensors and motors on robot side, calculate number of sensors and motors on...
Definition: one2onewiring.cpp:42
double getNoiseStrength()
Definition: motornoisewiring.h:46
MotorNoiseWiring(NoiseGenerator *noise, double noiseStrength)
constructor
Definition: motornoisewiring.h:39
void setNoiseStrength(double _motNoiseStrength)
Definition: motornoisewiring.h:47
virtual bool wireMotorsIntern(motor *rmotors, int rmotornumber, const motor *cmotors, int cmotornumber)
Realizes one to one wiring from controller motor outputs to robot motors.
Definition: one2onewiring.cpp:82
Implements a one to one wiring that adds noise to the motor signals (the sensors will get no noise) ...
Definition: motornoisewiring.h:34
virtual void addInspectableMatrix(const iparamkey &key, const matrix::Matrix *m, bool only4x4AndDiag=true, const std::string &descr=std::string())
This is the new style for adding inspectable values.
Definition: inspectable.cpp:92
virtual bool wireMotorsIntern(motor *rmotors, int rmotornumber, const motor *cmotors, int cmotornumber)
Realizes one to one wiring from controller motor outputs to robot motors.
Definition: motornoisewiring.h:63
matrix::Matrix mMotNoise
Definition: motornoisewiring.h:81
virtual void init(unsigned int dimension, RandGen *randGen=0)
initialization with the the given dimension for multidimensional noise
Definition: noisegenerator.h:61
virtual void addParameter(const paramkey &key, paramval *val, paramval minBound, paramval maxBound, const paramdescr &descr=paramdescr())
This is the new style for adding configurable parameters.
Definition: configurable.h:172
Abstact class for configurable objects.
Definition: configurable.h:81
void set(I _m, I _n, const D *_data=0)
sets the size of the matrix and maybe the data if given (row-wise).
Definition: matrix.cpp:147
NoiseGenerator * motNoiseGen
Definition: motornoisewiring.h:79
double motor
Definition: abstractwiring.h:42
Definition: abstractwiring.h:44
int cmotornumber
number of motors at controller side
Definition: abstractwiring.h:192
RandGen * randGen
random generator used in NoiseGenerator (in case it is needed by subclasses)
Definition: abstractwiring.h:200
double motNoiseStrength
Definition: motornoisewiring.h:80
virtual bool initIntern()
initializes the number of sensors and motors on robot side, calculate number of sensors and motors on...
Definition: motornoisewiring.h:52
virtual ~MotorNoiseWiring()
Definition: motornoisewiring.h:44
const D * unsafeGetData() const
returns a pointer to the data. UNSAFE!!!
Definition: matrix.h:153
Interface and basic class for noise generator.
Definition: noisegenerator.h:37