MotorNoiseWiring Class Reference

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.

Collaboration diagram for MotorNoiseWiring:
Collaboration graph
[legend]

List of all members.

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

NoiseGeneratormNoiseGen
double noiseStrength

Detailed Description

Implements a one to one wiring that adds noise to the motor signals (the sensors will get no noise).


Constructor & Destructor Documentation

MotorNoiseWiring ( NoiseGenerator noise,
double  noiseStrength 
) [inline]

constructor

Parameters:
noise NoiseGenerator that is used for adding noise to motor values
virtual ~MotorNoiseWiring (  )  [inline, virtual]

Member Function Documentation

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.

Parameters:
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.


Member Data Documentation

NoiseGenerator* mNoiseGen [protected]
double noiseStrength [protected]

The documentation for this class was generated from the following file:
Generated on Fri Nov 4 10:59:40 2011 for Robot Simulator of the Robotics Group for Self-Organization of Control by  doxygen 1.6.3