Implements a one to one wiring that adds noise to the motor signals (the sensors will get no noise). More...
#include <motornoisewiring.h>
Inherits One2OneWiring, and Configurable.
Public Member Functions | |
MotorNoiseWiring (NoiseGenerator *noise, double noiseStrength) | |
constructor | |
virtual | ~MotorNoiseWiring () |
virtual bool | initIntern (int robotsensornumber, int robotmotornumber, RandGen *randGen=0) |
initializes the number of sensors and motors on robot side, calculate number of sensors and motors on controller side | |
virtual bool | wireMotorsIntern (motor *rmotors, int rmotornumber, const motor *cmotors, int cmotornumber) |
Realizes one to one wiring from controller motor outputs to robot motors. | |
Protected Attributes | |
NoiseGenerator * | mNoiseGen |
double | noiseStrength |
Implements a one to one wiring that adds noise to the motor signals (the sensors will get no noise).
MotorNoiseWiring | ( | NoiseGenerator * | noise, | |
double | noiseStrength | |||
) | [inline] |
constructor
noise | NoiseGenerator that is used for adding noise to motor values |
virtual ~MotorNoiseWiring | ( | ) | [inline, virtual] |
virtual bool initIntern | ( | int | robotsensornumber, | |
int | robotmotornumber, | |||
RandGen * | randGen = 0 | |||
) | [inline, virtual] |
initializes the number of sensors and motors on robot side, calculate number of sensors and motors on controller side
initializes the number of sensors and motors from robot, calculate
Reimplemented from One2OneWiring.
virtual bool wireMotorsIntern | ( | motor * | rmotors, | |
int | rmotornumber, | |||
const motor * | cmotors, | |||
int | cmotornumber | |||
) | [inline, virtual] |
Realizes one to one wiring from controller motor outputs to robot motors.
rmotors | pointer to array of motorvalues for robot | |
rmotornumber | number of robot motors | |
cmotors | pointer to array of motorvalues from controller | |
cmotornumber | number of motorvalues from controller |
Reimplemented from One2OneWiring.
NoiseGenerator* mNoiseGen [protected] |
double noiseStrength [protected] |