ChangeFloor.h
Go to the documentation of this file.
00001 #ifndef bwi_krexec_ChangeFloor_h__guard
00002 #define bwi_krexec_ChangeFloor_h__guard
00003 
00004 #include <boost/shared_ptr.hpp>
00005 
00006 #include "actasp/Action.h"
00007 #include "CallGUI.h"
00008 
00009 namespace bwi_krexec {
00010   
00011 struct ChangeFloor : public actasp::Action {
00012 
00013   ChangeFloor();
00014 
00015   int paramNumber() const {return 1;}
00016   
00017   std::string getName() const{return "changefloor";}
00018   
00019   void run();
00020   
00021   bool hasFinished() const;
00022   
00023   bool hasFailed() const;
00024   
00025   actasp::Action *cloneAndInit(const actasp::AspFluent & fluent) const;
00026   
00027   actasp::Action *clone() const {return new ChangeFloor(*this);}
00028 
00029 private:
00030  
00031 std::vector<std::string> getParameters() const;
00032 
00033 std::string dest_room;
00034 
00035 bool asked;
00036 bool done;
00037 bool failed;
00038 
00039 boost::shared_ptr<CallGUI> askToChangeFloor;
00040 
00041 };
00042   
00043   
00044 }
00045 
00046 #endif


bwi_kr_execution
Author(s): Matteo Leonetti, Piyush Khandelwal
autogenerated on Thu Jun 6 2019 17:57:37