00001 // ---------------------------------------------------------------------------- 00002 // 00003 // $Id$ 00004 // 00005 // Copyright 2008, 2009, 2010, 2011, 2012 Antonio Franchi and Paolo Stegagno 00006 // 00007 // This file is part of MIP. 00008 // 00009 // MIP 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 3 of the License, or 00012 // (at your option) any later version. 00013 // 00014 // MIP 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 MIP. If not, see <http://www.gnu.org/licenses/>. 00021 // 00022 // Contact info: antonio.franchi@tuebingen.mpg.de stegagno@diag.uniroma1.it 00023 // 00024 // ---------------------------------------------------------------------------- 00025 00026 00032 00033 00034 00035 #ifndef __WEBOTS_KOREMOT_H_ 00036 #define __WEBOTS_KOREMOT_H_ 00037 00038 #include <stdlib.h> 00039 #include <stdio.h> 00040 #include <string.h> 00041 #include <iostream> 00042 #include <fstream> 00043 00044 #include <baselib.h> 00045 #include "WebotsDiffDrive.h" 00046 00047 00048 namespace MipResources{ 00050 /* @{ */ 00051 00052 00056 // class WebotsKoremotPar : public WebotsDiffDrivePar{ 00057 // private: 00058 // static const string _webotsKoremotName; 00059 // static const Decimal _maxWheelTurnRate; /*Computed imposing 0.5 m/s */ 00060 // static const Decimal _leftDiam; 00061 // static const Decimal _rightDiam; 00062 // static const Decimal _axelTrack; 00063 // static const Decimal _encoderResol; 00064 // 00065 // string _providedName(){return _webotsKoremotName;} 00066 // Decimal _providedMaxWheelTurnRate(void){return _maxWheelTurnRate;} 00067 // Decimal _providedLeftDiam(void){return _leftDiam;} 00068 // Decimal _providedRightDiam(void){return _rightDiam;} 00069 // Decimal _providedAxelTrack(void){return _axelTrack;} 00070 // Decimal _providedEncoderResol(void){return _encoderResol;} 00071 // public: 00072 // /// \brief Default constructor. 00073 // WebotsKoremotPar(){ 00074 // } 00075 // /// \brief Destructor. 00076 // ~WebotsKoremotPar(){ 00077 // } 00078 // }; 00079 00080 00084 class WebotsKoremot : public WebotsDiffDrive{ 00085 private: 00086 static const ResourcePlate _plate = MM_WEBKM_RES; 00087 00088 protected: 00089 /* PROMEMO from more abstract classes */ 00090 /* UnicyclePar *_par; */ 00091 /* UnicycleVar *_var; */ 00092 /* DiffDrivePar *_ddPar; */ 00093 /* DiffDriveVar *_ddVar; */ 00094 /* WebotsDiffDrivePar *_weboPar; */ 00095 00096 00097 00098 // WebotsKoremotPar *_weKmPar; 00099 00100 public: 00101 00105 WebotsKoremot(int argc, const char* argv[]); 00106 00108 ~WebotsKoremot(); 00109 00111 ResourcePlate getPlate() const { 00112 return _plate; 00113 } 00114 }; 00115 00116 00117 /* @} */ 00118 00119 };// end namespace MipResources{ 00120 00121 00122 #endif 00123 00124 00125 00126 00127