experiments/include/robots.h
00001 /******************************************************************************** 00002 * FARSA Experiments Library * 00003 * Copyright (C) 2007-2012 * 00004 * Tomassino Ferrauto <tomassino.ferrauto@istc.cnr.it> * 00005 * Stefano Nolfi <stefano.nolfi@istc.cnr.it> * 00006 * Onofrio Gigliotta <onofrio.gigliotta@istc.cnr.it> * 00007 * Gianluca Massera <emmegian@yahoo.it> * 00008 * * 00009 * This program is free software; you can redistribute it and/or modify * 00010 * it under the terms of the GNU General Public License as published by * 00011 * the Free Software Foundation; either version 2 of the License, or * 00012 * (at your option) any later version. * 00013 * * 00014 * This program is distributed in the hope that it will be useful, * 00015 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00017 * GNU General Public License for more details. * 00018 * * 00019 * You should have received a copy of the GNU General Public License * 00020 * along with this program; if not, write to the Free Software * 00021 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * 00022 ********************************************************************************/ 00023 00024 #ifndef ROBOTS_H 00025 #define ROBOTS_H 00026 00027 #include "experimentsconfig.h" 00028 #include "parametersettable.h" 00029 #include "configurationparameters.h" 00030 #include "phyicub.h" 00031 #include "phymarxbot.h" 00032 00033 namespace farsa { 00034 00040 class FARSA_EXPERIMENTS_TEMPLATE Robot : public ParameterSettableInConstructor 00041 { 00042 public: 00053 Robot(ConfigurationParameters& params, QString prefix) : 00054 ParameterSettableInConstructor(params, prefix) 00055 { 00056 } 00057 00061 virtual ~Robot() 00062 { 00063 } 00064 }; 00065 00066 #ifdef FARSA_USE_YARP_AND_ICUB 00067 00072 class FARSA_EXPERIMENTS_API iCubRobot : public Robot, public PhyiCub 00073 { 00074 public: 00075 00086 iCubRobot(ConfigurationParameters& params, QString prefix); 00087 00098 virtual void save(ConfigurationParameters& params, QString prefix); 00099 00107 static void describe(QString type); 00108 00112 virtual ~iCubRobot(); 00113 }; 00114 #endif // FARSA_USE_YARP_AND_ICUB 00115 00121 class FARSA_EXPERIMENTS_API MarXbot : public Robot, public PhyMarXbot 00122 { 00123 public: 00124 00135 MarXbot(ConfigurationParameters& params, QString prefix); 00136 00147 virtual void save(ConfigurationParameters& params, QString prefix); 00148 00156 static void describe(QString type); 00157 00161 virtual ~MarXbot(); 00162 }; 00163 00164 } //end namespace farsa 00165 00166 #endif