24 #ifndef __ABSTRACTCONTROLLERADAPTER_H
25 #define __ABSTRACTCONTROLLERADAPTER_H
29 #include <selforg/stl_adds.h>
80 virtual void init(
int sensornumber,
int motornumber,
RandGen* randGen = 0){
99 virtual void step(
const sensor* sensors,
int sensornumber,
100 motor* motors,
int motornumber) {
108 motor* motors,
int motornumber) {
Abstract class for robot controller (with some basic functionality).
Definition: abstractcontroller.h:46
virtual void addConfigurable(Configurable *conf)
Adds a configurable as a child object.
Definition: configurable.cpp:427
Abstract adapter class (interface) for robot controller.
Definition: abstractcontrolleradapter.h:52
virtual bool store(FILE *f) const
Definition: abstractcontrolleradapter.h:142
random generator with 48bit integer arithmentic
Definition: randomgenerator.h:34
AbstractController * controller
Definition: abstractcontrolleradapter.h:158
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: abstractcontrolleradapter.h:80
AbstractControllerAdapter(AbstractController *controller, const std::string &name, const std::string &revision)
Definition: abstractcontrolleradapter.h:55
double sensor
Definition: abstractcontroller.h:48
virtual void addInspectable(Inspectable *insp)
Adds an inspectable as a child object.
Definition: inspectable.cpp:128
virtual int getMotorNumber() const
Definition: abstractcontrolleradapter.h:90
virtual void stepNoLearning(const sensor *sensors, int sensornumber, motor *motors, int motornumber)
performs one step without learning.
Definition: abstractcontrolleradapter.h:107
virtual ~AbstractControllerAdapter()
Definition: abstractcontrolleradapter.h:63
virtual void init(int sensornumber, int motornumber, RandGen *randGen=0)=0
initialisation of the controller with the given sensor/ motornumber Must be called before use...
virtual void stepNoLearning(const sensor *, int number_sensors, motor *, int number_motors)=0
performs one step without learning.
virtual bool restore(FILE *f)
Definition: abstractcontrolleradapter.h:147
virtual int getSensorNumber() const
Definition: abstractcontrolleradapter.h:86
virtual void step(const sensor *sensors, int sensornumber, motor *motors, int motornumber)=0
performs one step (includes learning).
virtual void step(const sensor *sensors, int sensornumber, motor *motors, int motornumber)
performs one step (includes learning).
Definition: abstractcontrolleradapter.h:99
double motor
Definition: abstractcontroller.h:49
virtual bool store(FILE *f) const =0
stores the object to the given file stream (ASCII preferred).
virtual bool restore(FILE *f)=0
loads the object from the given file stream (ASCII preferred).
virtual int getMotorNumber() const =0
virtual int getSensorNumber() const =0