00001 #ifndef SIGEL_ROBOT_SIG_JOINTSENSOR_H 00002 #define SIGEL_ROBOT_SIG_JOINTSENSOR_H 00003 00004 namespace SIGEL_Robot { class SIG_JointSensor; } 00005 00006 #include "SIGEL_Robot/SIG_Robot.h" 00007 #include "SIGEL_Robot/SIG_Sensor.h" 00008 #include "SIGEL_Robot/SIG_Joint.h" 00009 00010 namespace SIGEL_Robot { 00017 class SIG_JointSensor : public SIG_Sensor { 00018 private: 00019 SIG_Joint *theJoint; 00020 00021 public: 00022 SIG_JointSensor (SIG_Robot *par, QString n, int nr = -1); 00023 SIG_JointSensor (SIG_Robot *par, QTextStream & tx); 00024 virtual ~SIG_JointSensor (void); 00025 00026 virtual SensorType getSensorType (void) const; 00027 void setJoint (SIG_Joint *j); 00028 SIG_Joint const *getJoint (void) const; 00029 virtual void writeToFileTransfer (QTextStream & tx); 00030 }; 00031 } 00032 00033 #endif