Esempio n. 1
0
bool hotspot::talk(hextree::plannertalk::Request  &req,
         hextree::plannertalk::Response &res)
{
    debugger("SEEKER REQUEST ACCEPT");
    sleep(1);
   if(req.option>3){



       switch(req.option){
        case 4:{

           debugger("SEEKER_1.20 ACTIVATED");
           findHotspot();
           break;}
        case 5:{

           debugger("SEEKER_1.20 SIMULATION");
           simulation();
           break;}
       }
       return true;
   }
     return (res.result=false);



}
Esempio n. 2
0
void hotspot::callback_choice(const std_msgs::Int8ConstPtr msg)
{
    switch(msg->data){
        case 4:{

           debugger("SEEKER_1.20 ACTIVATED");
           findHotspot();
           break;}
        case 5:{

           debugger("SEEKER_1.20 SIMULATION");
           simulation();
           break;}
       }

}
Esempio n. 3
0
HotSpotID HotspotList::findHotspotID(const Common::Point where) {
	Hotspot *hotspot = findHotspot(where);
	return hotspot ? hotspot->getObjectID() : kNoHotSpotID;
}