24 #ifndef __COPYWIRING_H
25 #define __COPYWIRING_H
27 #include <selforg/abstractwiring.h>
28 #include <selforg/matrix.h>
int rmotornumber
number of motors at robot side
Definition: abstractwiring.h:182
virtual bool wireMotorsIntern(motor *rmotors, int rmotornumber, const motor *cmotors, int cmotornumber)
Realizes one to one wiring from controller motor outputs to robot motors.
Definition: copywiring.cpp:98
int csensornumber
number of sensors at controller side
Definition: abstractwiring.h:187
virtual bool initIntern()
initializes the number of sensors and motors on robot side, calculate number of sensors and motors on...
Definition: copywiring.cpp:58
int plotMode
using plotTypes this variables defines what is plotted
Definition: abstractwiring.h:168
Assignment m_assign
Definition: copywiring.h:86
virtual void reset()
reset internal state
Definition: copywiring.cpp:118
iparamkey name
Definition: inspectable.h:251
Implements a wiring where the motors are copied to several motors and the sensors are fusioned...
Definition: copywiring.h:35
Abstract wiring-object between controller and robot.
Definition: abstractwiring.h:39
Assignment s_assign
Definition: copywiring.h:85
std::vector< std::list< int > > Assignment
Definition: copywiring.h:37
CopyWiring(const Assignment &sensor_assignment, const Assignment &motor_assignment, NoiseGenerator *noise, int plotMode=Controller|Robot, const std::string &name="CopyWiring")
constructor
Definition: copywiring.cpp:35
double motor
Definition: abstractwiring.h:42
Definition: abstractwiring.h:44
int cmotornumber
number of motors at controller side
Definition: abstractwiring.h:192
Definition: abstractwiring.h:44
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.
Definition: copywiring.cpp:73
int rsensornumber
number of sensors at robot side
Definition: abstractwiring.h:177
double sensor
Definition: abstractwiring.h:41
static Assignment motorFromSensorAssignment(const Assignment &sensor_assignment)
returns the inverse Assignment of the given sensor assignemnt (typically the right thing) ...
Definition: copywiring.cpp:47
virtual ~CopyWiring()
destructor
Definition: copywiring.cpp:43
Interface and basic class for noise generator.
Definition: noisegenerator.h:37