00001 /*************************************************************************** 00002 ForceSensor.h - description 00003 ------------------- 00004 begin : mer jun 08 2003 00005 copyright : (C) 2003 by Yann Le Guyadec, Michel DUBOIS 00006 email : Yann.Le-Guyadec@univ-ubs.fr, Michel.Dubois@univ-ubs.fr 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00018 /* 00019 * changes : 00020 * - 08/06/03 MD Creation ! 00021 */ 00022 00023 00024 #ifndef __FORCESENSOR__ 00025 #define __FORCESENSOR__ 00026 00027 00028 // Include files 00029 #include "Sensor.h" 00030 #include "Leg.h" 00031 namespace API { 00032 class Leg; 00040 class ForceSensor : public Sensor 00041 { 00042 public: 00043 00049 double toNewton() const; 00050 00056 Leg * getLeg() const; 00057 00063 unsigned int getID() const; 00064 00065 protected : 00066 00071 ForceSensor(); 00072 00077 virtual ~ForceSensor(); 00078 00083 void setLeg(Leg * aLeg); 00084 00090 void setID(unsigned int aForceSensorID); 00091 00092 private : 00093 Leg * leg; 00094 unsigned int ID; 00095 00096 00097 };// END CLASS DEFINITION ForceSensor 00098 } 00099 #endif // __FORCESENSOR__