24 #ifndef __ABSTRACTWIRING_H
25 #define __ABSTRACTWIRING_H
92 double noiseStrength);
123 virtual std::list<SensorMotorInfo>
wireSensorInfos(
const std::list<SensorMotorInfo>& robotSensorInfos);
126 virtual std::list<SensorMotorInfo>
wireMotorInfos(
const std::list<SensorMotorInfo>& robotMotorInfos);
133 const std::list<SensorMotorInfo>& robotMotorInfos,
134 const std::list<SensorMotorInfo>& controllerSensorInfos,
135 const std::list<SensorMotorInfo>& controllerMotorInfos);
158 double noiseStrength) = 0;
Matrix type.
Definition: matrix.h:65
virtual int getRobotSensornumber()
Returns the number of sensors on robot side.
Definition: abstractwiring.h:108
virtual void reset()
reset internal state
Definition: abstractwiring.h:129
int rmotornumber
number of motors at robot side
Definition: abstractwiring.h:182
int csensornumber
number of sensors at controller side
Definition: abstractwiring.h:187
virtual bool wireMotorsIntern(motor *rmotors, int rmotornumber, const motor *cmotors, int cmotornumber)=0
to be overloaded by subclasses
virtual int getControllerMotornumber()
Returns the number of motors on controller side.
Definition: abstractwiring.h:120
int plotMode
using plotTypes this variables defines what is plotted
Definition: abstractwiring.h:168
virtual bool wireSensors(const sensor *rsensors, int rsensornumber, sensor *csensors, int csensornumber, double noiseStrength)
Realizes wiring from robot sensors to controller sensors.
Definition: abstractwiring.cpp:88
matrix::Matrix mCsensors
copy of the last controller sensors
Definition: abstractwiring.h:189
double sensor
Definition: types.h:29
AbstractWiring(NoiseGenerator *noise, int plotMode=Controller, const std::string &name="AbstractWiring")
constructor
Definition: abstractwiring.h:50
iparamkey name
Definition: inspectable.h:251
random generator with 48bit integer arithmentic
Definition: randomgenerator.h:34
virtual int getControllerSensornumber()
Returns the number of sensors on controller side.
Definition: abstractwiring.h:116
matrix::Matrix mRmotors
copy of the last robot motors
Definition: abstractwiring.h:184
Abstract wiring-object between controller and robot.
Definition: abstractwiring.h:39
virtual bool initIntern()=0
to be overloaded by subclasses The rsensornumber and rmotornumber are already stored in the member va...
void addSensorMotorInfosToInspectable(const std::list< SensorMotorInfo > &robotSensorInfos, const std::list< SensorMotorInfo > &robotMotorInfos, const std::list< SensorMotorInfo > &controllerSensorInfos, const std::list< SensorMotorInfo > &controllerMotorInfos)
used by WiredController to pass infos to inspectable
Definition: abstractwiring.cpp:73
matrix::Matrix mCmotors
copy of the last controller motors
Definition: abstractwiring.h:194
int noisenumber
Definition: abstractwiring.h:174
virtual bool init(int robotsensornumber, int robotmotornumber, RandGen *randGen=0)
Initializes the number of sensors and motors from robot (to be precise the internal parameters rsenso...
Definition: abstractwiring.cpp:30
matrix::Matrix mRsensors
copy of the last robot sensors
Definition: abstractwiring.h:179
virtual int getRobotMotornumber()
Returns the number of motors on robot side.
Definition: abstractwiring.h:112
virtual std::list< SensorMotorInfo > wireSensorInfos(const std::list< SensorMotorInfo > &robotSensorInfos)
routes the infos of the motors from robot to controller
Definition: abstractwiring.cpp:111
Interface for inspectable objects.
Definition: inspectable.h:48
Definition: abstractwiring.h:44
sensor * noisevals
Definition: abstractwiring.h:172
Definition: abstractwiring.h:44
double motor
Definition: types.h:30
double motor
Definition: abstractwiring.h:42
virtual bool wireMotors(motor *rmotors, int rmotornumber, const motor *cmotors, int cmotornumber)
Realizes wiring from controller motor outputs to robot motors.
Definition: abstractwiring.cpp:102
Definition: abstractwiring.h:44
int cmotornumber
number of motors at controller side
Definition: abstractwiring.h:192
Definition: abstractwiring.h:44
PlotTypes
Definition: abstractwiring.h:44
int rsensornumber
number of sensors at robot side
Definition: abstractwiring.h:177
virtual ~AbstractWiring()
destructor
Definition: abstractwiring.h:63
double sensor
Definition: abstractwiring.h:41
RandGen * randGen
random generator used in NoiseGenerator (in case it is needed by subclasses)
Definition: abstractwiring.h:200
virtual bool wireSensorsIntern(const sensor *rsensors, int rsensornumber, sensor *csensors, int csensornumber, double noiseStrength)=0
to be overloaded by subclasses
bool initialised
Definition: abstractwiring.h:202
matrix::Matrix mNoise
for storing the noise values
Definition: abstractwiring.h:171
virtual std::list< SensorMotorInfo > wireMotorInfos(const std::list< SensorMotorInfo > &robotMotorInfos)
routes the infos of the motors from robot to controller
Definition: abstractwiring.cpp:115
NoiseGenerator * noiseGenerator
noise generator
Definition: abstractwiring.h:197
Interface and basic class for noise generator.
Definition: noisegenerator.h:37