ControllerGenerator Struct Reference

generator for controller More...

#include <onecontrollerperchannel.h>

List of all members.

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 (  )  [inline, virtual]

Member Function Documentation

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

The documentation for this struct was generated from the following file:
Generated on Thu Jun 28 14:48:08 2012 for Robot Simulator of the Robotics Group for Self-Organization of Control by  doxygen 1.6.3