SelectiveNoiseWiring Class Reference
Implements a one to one wiring and allows to select the noise strength per sensor channel.
More...
#include <selectivenoisewiring.h>
Inherits One2OneWiring.
List of all members.
Detailed Description
Implements a one to one wiring and allows to select the noise strength per sensor channel.
Constructor & Destructor Documentation
constructor
- Parameters:
-
| noise | NoiseGenerator that is used for adding noise to motor values |
| noiseStrengths | for each channel the noise strength (no noise if channel is out of array bounds) |
| plotMode | see AbstractWiring |
Member Function Documentation
double getNoiseStrength |
( |
unsigned int |
i |
) |
[inline, protected] |
virtual bool wireSensorsIntern |
( |
const sensor * |
rsensors, |
|
|
int |
rsensornumber, |
|
|
sensor * |
csensors, |
|
|
int |
csensornumber, |
|
|
double |
noise | |
|
) |
| | [inline, virtual] |
Realizes one to one wiring from robot sensors to controller sensors.
- Parameters:
-
| rsensors | pointer to array of sensorvalues from robot |
| rsensornumber | number of sensors from robot |
| csensors | pointer to array of sensorvalues for controller |
| csensornumber | number of sensors to controller |
| noise | size of the noise added to the sensors |
Reimplemented from One2OneWiring.
Member Data Documentation
The documentation for this class was generated from the following file: