LandmarkDBWorker.C

00001 #include "Robots/Beobot2/Localization/LandmarkDBWorker.H"
00002 
00003 #ifndef LANDMARKDBWORKERI_C
00004 #define LANDMARKDBWORKERI_C
00005 
00006 
00007 // ######################################################################
00008 LandmarkDBWorkerI::LandmarkDBWorkerI(OptionManager& mgr,
00009     const std::string& descrName, const std::string& tagName) :
00010   RobotBrainComponent(mgr, descrName, tagName)
00011 {
00012 }
00013 
00014 // ######################################################################
00015 LandmarkDBWorkerI::~LandmarkDBWorkerI()
00016 {
00017 
00018 }
00019 
00020 void LandmarkDBWorkerI::registerTopics()
00021 {
00022   this->registerSubscription("LandmarkSearchQueueMessageTopic");
00023 }
00024 
00025 void LandmarkDBWorkerI::evolve()
00026 {
00027 
00028 }
00029 
00030 // ######################################################################
00031 void LandmarkDBWorkerI::updateMessage(const RobotSimEvents::EventMessagePtr& eMsg,
00032     const Ice::Current&)
00033 {
00034   //Get a retina message
00035   if(eMsg->ice_isA("::BeobotEvents::LandmarkSearchQueueMessage"))
00036   {
00037     BeobotEvents::LandmarkSearchQueueMessagePtr LandmarkQueueMsg = BeobotEvents::LandmarkSearchQueueMessagePtr::dynamicCast(eMsg);
00038 
00039     //Get the current request ID
00040     int currRequestID = LandmarkQueueMsg->RequestID;
00041 
00042     LINFO("Got A New Landmark Queue Message with Request ID = %d", currRequestID);
00043 
00044   }
00045 }
00046 
00047 #endif
Generated on Sun May 8 08:41:18 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3