24 #ifndef __SELECTIVEONE2ONEWIRING_H
25 #define __SELECTIVEONE2ONEWIRING_H
36 virtual bool operator()(
int index,
int len) {
return true; }
43 virtual bool operator()(
int index,
int len) {
return index < len/2; }
50 virtual bool operator()(
int index,
int len) {
return (index >=
from) && (index <=
to); }
predicate to select sensors.
Definition: selectiveone2onewiring.h:34
Implements one to one wiring of robot sensors to inputs of the controller and controller outputs to r...
Definition: one2onewiring.h:32
select sensors in the range (inclusively)
Definition: selectiveone2onewiring.h:47
virtual bool operator()(int index, int len)
Definition: selectiveone2onewiring.h:36
virtual ~select_predicate()
Definition: selectiveone2onewiring.h:35
int csensornumber
number of sensors at controller side
Definition: abstractwiring.h:187
select_predicate * sel_sensor
Definition: selectiveone2onewiring.h:77
Definition: selectiveone2onewiring.h:39
Implements a selective one to one wiring of robot sensors to inputs of the controller and controller ...
Definition: selectiveone2onewiring.h:59
int plotMode
using plotTypes this variables defines what is plotted
Definition: abstractwiring.h:168
iparamkey name
Definition: inspectable.h:251
virtual ~select_firsthalf()
Definition: selectiveone2onewiring.h:42
virtual ~select_from_to()
Definition: selectiveone2onewiring.h:48
virtual bool wireSensorsIntern(const sensor *rsensors, int rsensornumber, sensor *csensors, int csensornumber, double noise)
Realizes selective one to one wiring from robot sensors to controller sensors.
Definition: selectiveone2onewiring.cpp:61
SelectiveOne2OneWiring(NoiseGenerator *noise, select_predicate *sel_sensor, int plotMode=Controller, const std::string &name="SelectiveOne2OneWiring")
constructor
Definition: selectiveone2onewiring.cpp:30
int to
Definition: selectiveone2onewiring.h:52
int from
Definition: selectiveone2onewiring.h:51
virtual bool initIntern()
initializes the number of sensors and motors on robot side, calculate
Definition: selectiveone2onewiring.cpp:44
virtual ~SelectiveOne2OneWiring()
Definition: selectiveone2onewiring.cpp:37
Definition: abstractwiring.h:44
Definition: selectiveone2onewiring.h:41
int rsensornumber
number of sensors at robot side
Definition: abstractwiring.h:177
double sensor
Definition: abstractwiring.h:41
select_from_to(int from, int to)
Definition: selectiveone2onewiring.h:49
virtual bool operator()(int index, int len)
Definition: selectiveone2onewiring.h:43
virtual bool operator()(int index, int len)
Definition: selectiveone2onewiring.h:50
Interface and basic class for noise generator.
Definition: noisegenerator.h:37