Robot Simulator of the Robotics Group for Self-Organization of Control  0.8.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ControllerGenerator Struct Referenceabstract

generator for controller More...

#include <onecontrollerperchannel.h>

Inheritance diagram for ControllerGenerator:
Collaboration diagram for ControllerGenerator:

Public Member Functions

virtual ~ControllerGenerator ()
 
virtual AbstractControlleroperator() (int index)=0
 

Detailed Description

generator for controller

derive a struct and overload the operator. For example:

struct ControlGen : public ControllerGenerator { virtual ~ControlGen(){} virtual AbstractController* operator()( int index) { AbstractController* c; c= new Sox(0.8); c->setParam("epsC",0.02); c->setParam("epsA",0.01); return c; } };

to see the values in the inspectable do after agent = new OdeAgent(global); this line agent->addInspectable(((OneControllerPerChannel*)controller)->getControllers()[0]); .... Make sure you initialize the OneControllerPerChannel with sufficiently many initial controller.

Constructor & Destructor Documentation

virtual ~ControllerGenerator ( )
inlinevirtual

Member Function Documentation

virtual AbstractController* operator() ( int  index)
pure virtual

The documentation for this struct was generated from the following file: