Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef COMM_H
00020 #define COMM_H
00021
00022
00023 #define STD_LO_RPC_PORT_INTERNAL "/located_object"
00024 #define XML_PROPERTY_LO_RPC_PORT "LO_SERVICE_PORT"
00025 class Matrix;
00026 #include "ElemTypes.h"
00027
00028 namespace cop
00029 {
00030 class RelPose;
00031 class Signature;
00032
00033 class Comm
00034 {
00035 public:
00036 Comm()
00037 {
00038 m_commID = s_lastCommID;
00039 }
00040
00041 virtual void NotifyPoseUpdate(RelPose* , bool )=0;
00042 virtual void NotifyNewObject(Signature*, RelPose*){throw "Comm CreateNewPose: Not implemented";};
00043 virtual RelPose* CreateNewPose(RelPose* , Matrix* , Matrix* ){throw "Comm CreateNewPose: Not implemented";}
00044 virtual RelPose* CreateNewPose(LocatedObjectID_t , Matrix* , Matrix* ){throw "Comm CreateNewPose: Not implemented";}
00045 virtual RelPose* UpdatePose(RelPose* , LocatedObjectID_t , Matrix* , Matrix* ){throw "Comm CreateNewPose: Not implemented";}
00046 virtual RelPose* GetPose(LocatedObjectID_t ){throw "Comm GetPose: Not implemented";}
00047 virtual RelPose* GetPose(const std::string , bool wait = true){throw "Comm GetPose: Not implemented";}
00048 virtual RelPose* GetPoseRelative(LocatedObjectID_t , LocatedObjectID_t ){throw "Comm GetPoseRelative: Not implemented";}
00049 virtual bool FreePose(LocatedObjectID_t ){return false;}
00050
00051 unsigned long GetCommID(){return m_commID;}
00052 private:
00053 unsigned long m_commID;
00054 static unsigned long s_lastCommID;
00055 };
00056
00057 }
00058 #endif