Implements a selective one to one wiring of robot sensors to inputs of the controller and controller outputs to robot motors. More...
#include <selectiveone2onewiring.h>
Inherits One2OneWiring.
Public Member Functions | |
SelectiveOne2OneWiring (NoiseGenerator *noise, select_predicate *sel_sensor, int plotMode=Controller) | |
constructor | |
virtual | ~SelectiveOne2OneWiring () |
Protected Member Functions | |
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 | wireSensorsIntern (const sensor *rsensors, int rsensornumber, sensor *csensors, int csensornumber, double noise) |
Realizes one to one wiring from robot sensors to controller sensors. | |
Protected Attributes | |
select_predicate * | sel_sensor |
Implements a selective one to one wiring of robot sensors to inputs of the controller and controller outputs to robot motors.
SelectiveOne2OneWiring | ( | NoiseGenerator * | noise, | |
select_predicate * | sel_sensor, | |||
int | plotMode = Controller | |||
) |
constructor
noise | NoiseGenerator that is used for adding noise to sensor values | |
sel_sensor | binary predicate taking the index and the length (number of sensors) and decides which sensor to select |
~SelectiveOne2OneWiring | ( | ) | [virtual] |
bool initIntern | ( | int | robotsensornumber, | |
int | robotmotornumber, | |||
RandGen * | randGen = 0 | |||
) | [protected, 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 on robot side, calculate
Reimplemented from One2OneWiring.
bool wireSensorsIntern | ( | const sensor * | rsensors, | |
int | rsensornumber, | |||
sensor * | csensors, | |||
int | csensornumber, | |||
double | noise | |||
) | [protected, virtual] |
Realizes one to one wiring from robot sensors to controller sensors.
Realizes selective one to one wiring from robot sensors to controller sensors.
Reimplemented from One2OneWiring.
select_predicate* sel_sensor [protected] |