atomodeagent.h

Go to the documentation of this file.
00001 /*************************************************************************** 00002 * Copyright (C) 2005 by Robot Group Leipzig * 00003 * martius@informatik.uni-leipzig.de * 00004 * fhesse@informatik.uni-leipzig.de * 00005 * der@informatik.uni-leipzig.de * 00006 * * 00007 * This program is free software; you can redistribute it and/or modify * 00008 * it under the terms of the GNU General Public License as published by * 00009 * the Free Software Foundation; either version 2 of the License, or * 00010 * (at your option) any later version. * 00011 * * 00012 * This program is distributed in the hope that it will be useful, * 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00015 * GNU General Public License for more details. * 00016 * * 00017 * You should have received a copy of the GNU General Public License * 00018 * along with this program; if not, write to the * 00019 * Free Software Foundation, Inc., * 00020 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * 00021 * * 00022 * $Log: atomodeagent.h,v $ 00023 * Revision 1.5 2006/11/30 08:51:39 robot8 00024 * -update of the evolution projekt 00025 * -fitness changed 00026 * -replication changed 00027 * -added copy function 00028 * 00029 * Revision 1.4 2006/09/20 07:23:36 robot8 00030 * - added functiomnm for counting time (lifeCycle) 00031 * 00032 * Revision 1.3 2006/07/20 17:19:43 martius 00033 * removed using namespace std from matrix.h 00034 * 00035 * Revision 1.2 2006/07/14 12:23:30 martius 00036 * selforg becomes HEAD 00037 * 00038 * Revision 1.1.2.1 2006/06/12 13:50:21 robot8 00039 * -added atomodeagent 00040 * 00041 * Revision 1.1.2.6 2006/05/15 13:14:10 robot3 00042 * STRG-R now makes screenshots in jpg-format 00043 * STRG-F now toggles the file logging (controller stuff) on/off 00044 * STRG-G now restarts the GuiLogger 00045 * 00046 * Revision 1.1.2.5 2006/03/31 16:16:58 fhesse 00047 * changed trace() to init_tracing() 00048 * and check for init at beginning of step 00049 * 00050 * Revision 1.1.2.4 2006/03/29 15:08:06 martius 00051 * Agent::interninit not necessary 00052 * 00053 * Revision 1.1.2.3 2006/03/28 14:14:44 fhesse 00054 * tracing of a given primitive (in the osg window) added 00055 * 00056 * Revision 1.1.2.2 2005/12/06 10:13:23 martius 00057 * openscenegraph integration started 00058 * 00059 * Revision 1.1.2.1 2005/11/15 12:29:18 martius 00060 * new selforg structure and OdeAgent, OdeRobot ... 00061 * 00062 * * 00063 ***************************************************************************/ 00064 00065 #ifndef __ATOMODEAGENT_H 00066 #define __ATOMODEAGENT_H 00067 00068 #include <selforg/agent.h> 00069 #include <selforg/abstractcontroller.h> 00070 #include "odeagent.h" 00071 00072 00073 namespace lpzrobots { 00074 00075 /** Specialised agent for ode robots 00076 */ 00077 class AtomOdeAgent : public OdeAgent { 00078 private: 00079 int lifecycle; 00080 00081 public: 00082 /** constructor 00083 */ 00084 00085 AtomOdeAgent(const PlotOption& plotOption); 00086 AtomOdeAgent(const std::list<PlotOption>& plotOptions); 00087 00088 /** destructor 00089 */ 00090 // virtual ~AtomOdeAgent() {} 00091 00092 /** initializes the object with the given controller, robot and wiring 00093 and initializes pipe to guilogger 00094 */ 00095 virtual bool init(AbstractController* controller, OdeRobot* robot, AbstractWiring* wiring); 00096 00097 virtual void setLifeCycle ( int newLifeCycleValue ); 00098 00099 virtual int getLifeCycle (); 00100 00101 virtual void updateFitness (); 00102 00103 virtual double getFitness (); 00104 00105 virtual void resetFitness (); 00106 }; 00107 00108 } 00109 00110 #endif

Generated on Tue Jan 16 02:14:34 2007 for Robotsystem of the Robot Group Leipzig by doxygen 1.3.8