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 CLUSTERDETECTOR_H
00020 #define CLUSTERDETECTOR_H
00021 
00022 #define XML_NODE_CLUSTERDETECTOR "ClusterDetector"
00023 
00024 #include "LocateAlgorithm.h"
00025 class PlaneClusterResult;
00026 
00027 namespace cop
00028 {
00029   class SegmentPrototype;
00030 
00031   class ClusterDetector : public LocateAlgorithm
00032   {
00033   public:
00034     ClusterDetector(int swiss, int ptu_base);
00035     ClusterDetector();
00036 
00037     ~ClusterDetector();
00038 
00039     std::vector<RelPose*> Perform(std::vector<Sensor*> sensors, RelPose* pose, Signature& object, int &numOfObjects, double& qualityMeasure);
00040 
00041     std::vector<RelPose*> Inner(Sensor* sens, SegmentPrototype* proto, int &numOfObjects, double& qualityMeasure);
00042 
00043     double CheckSignature(const Signature& object, const std::vector<Sensor*> &sensors);
00044 
00045     bool TrackingPossible(const Reading& img, const Signature& sig, RelPose* pose);
00046 
00047     XMLTag* Save();
00048     void SetData(XMLTag* tag);
00049 
00050     virtual std::string GetName(){return XML_NODE_CLUSTERDETECTOR;}
00051 
00052     static bool CallStaticPlaneClusterExtractor(Sensor* sens, PlaneClusterResult* response, int m_ptu_jlo_id, bool parallel);
00053 
00054   private:
00055     int m_swissranger_jlo_id;
00056     int m_ptu_jlo_id;
00057   };
00058 }
00059 #endif