24 #ifndef __ABSTRACTMULTICONTROLLER_H
25 #define __ABSTRACTMULTICONTROLLER_H
77 virtual void init(
int sensornumber,
int motornumber,
RandGen* randGen = 0);
86 virtual void step(
const sensor* sensors,
int sensornumber,
87 motor* motors,
int motornumber)=0;
93 motor* motors,
int motornumber)=0;
127 virtual bool store(FILE* f)
const;
virtual void addPassiveController(AbstractController *passiveController)
Adds a passive controller to this MultiController.
Definition: abstractmulticontroller.cpp:36
std::list< std::string > controllerNameList
Definition: abstractmulticontroller.h:141
Abstract class for robot controller (with some basic functionality).
Definition: abstractcontroller.h:46
Abstract adapter class (interface) for robot controller.
Definition: abstractcontrolleradapter.h:52
virtual ~AbstractMultiController()
Definition: abstractmulticontroller.cpp:33
virtual void stepNoLearning(const sensor *sensors, int sensornumber, motor *motors, int motornumber)=0
performs one step without learning.
Abstract class (interface) for using multiple controller.
Definition: abstractmulticontroller.h:41
iparamkey name
Definition: inspectable.h:251
random generator with 48bit integer arithmentic
Definition: randomgenerator.h:34
AbstractController * controller
Definition: abstractcontrolleradapter.h:158
double sensor
Definition: abstractcontroller.h:48
AbstractMultiController(AbstractController *controller, const std::string &name, const std::string &revision)
contructor (hint: use $ID$ for revision)
Definition: abstractmulticontroller.cpp:28
std::list< AbstractController * > controllerList
Definition: abstractmulticontroller.h:140
virtual void step(const sensor *sensors, int sensornumber, motor *motors, int motornumber)=0
performs one step (includes learning).
virtual bool store(FILE *f) const
stores the object to the given file stream (binary).
Definition: abstractmulticontroller.cpp:68
virtual void init(int sensornumber, int motornumber, RandGen *randGen=0)
initialisation of the controller with the given sensor/ motornumber Must NORMALLY be called before us...
Definition: abstractmulticontroller.cpp:45
virtual bool restore(FILE *f)
loads the object from the given file stream (binary).
Definition: abstractmulticontroller.cpp:76
double motor
Definition: abstractcontroller.h:49