24 #ifndef __DERIVATIVEWIRING_H
25 #define __DERIVATIVEWIRING_H
virtual bool wireSensorsIntern(const sensor *rsensors, int rsensornumber, sensor *csensors, int csensornumber, double noise)
Realizes a wiring from robot sensors to controller sensors.
Definition: derivativewiring.cpp:85
int rmotornumber
number of motors at robot side
Definition: abstractwiring.h:182
int csensornumber
number of sensors at controller side
Definition: abstractwiring.h:187
void calcSecondDerivative()
Calculate the secound derivative of the sensorvalues given by the robot f'(x) = f(x) - 2f(x-1) + f(x-...
Definition: derivativewiring.cpp:191
unsigned int blindMotors
number of motors that are blind (not given to robot)
Definition: derivativewiring.h:38
double eps
update rate for floating average (0 -> no sensor variation, 1 -> no smoothing)
Definition: derivativewiring.h:36
virtual void reset()
reset internal state
Definition: derivativewiring.cpp:157
double sensor
Definition: types.h:29
iparamkey name
Definition: inspectable.h:251
struct __DerivativeWiringConf DerivativeWiringConf
Configuration object for DerivativeWiring.
bool useFirstD
include first derivative
Definition: derivativewiring.h:34
sensor * second
current second derivative
Definition: derivativewiring.h:132
Abstract wiring-object between controller and robot.
Definition: abstractwiring.h:39
void calcFirstDerivative()
Calculate the first derivative of the sensorvalues given by the robot f'(x) = (f(x+1) - f(x-1)) / 2 s...
Definition: derivativewiring.cpp:182
motor * blindMotors
array that stored the values of the blind motors
Definition: derivativewiring.h:135
virtual bool wireMotorsIntern(motor *rmotors, int rmotornumber, const motor *cmotors, int cmotornumber)
Realizes wiring from controller motor outputs to robot motors.
Definition: derivativewiring.cpp:169
int time
Definition: derivativewiring.h:117
Implements a wiring (between controller and robot) which includes the first and second derivative of ...
Definition: derivativewiring.h:46
sensor * sensorbuffer[buffersize]
number timesteps the sensor values are delayed for calculation of the derivative
Definition: derivativewiring.h:123
static DerivativeWiringConf getDefaultConf()
Providing default configuration for DerivativeWiring with first derivative.
Definition: derivativewiring.h:63
virtual ~DerivativeWiring()
destructor
Definition: derivativewiring.cpp:44
double motor
Definition: types.h:30
DerivativeWiring(const DerivativeWiringConf &conf, NoiseGenerator *noise, const std::string &name="DerivativeWiring")
constructor
Definition: derivativewiring.cpp:30
virtual bool initIntern()
to be overloaded by subclasses The rsensornumber and rmotornumber are already stored in the member va...
Definition: derivativewiring.cpp:55
int cmotornumber
number of motors at controller side
Definition: abstractwiring.h:192
double derivativeScale
factor for the derivatives
Definition: derivativewiring.h:37
int rsensornumber
number of sensors at robot side
Definition: abstractwiring.h:177
static const int buffersize
Definition: derivativewiring.h:116
bool useSecondD
second include second derivative
Definition: derivativewiring.h:35
bool useId
Definition: derivativewiring.h:33
DerivativeWiringConf conf
used configuration
Definition: derivativewiring.h:115
Configuration object for DerivativeWiring.
Definition: derivativewiring.h:32
static DerivativeWiringConf getDefaultConf1()
Providing default configuration for DerivativeWiring for only first derivative.
Definition: derivativewiring.h:78
int c
Definition: hexapod.cpp:56
sensor * first
current sensors (with noise)
Definition: derivativewiring.h:129
Interface and basic class for noise generator.
Definition: noisegenerator.h:37