HawkSimulator.H
00001
00002
00003
00004
00005
00006
00007
00008 #include <string>
00009 #include <Ice/Ice.h>
00010 #include "Robots/BeoHawk/core/HawkMessages.ice.H"
00011 #include "Robots/BeoHawk/computer/HawkAgent.H"
00012
00013 class HawkSimulator : public HawkAgent {
00014 public:
00015
00016 HawkSimulator(std::string myName, int argc, char* argv[]);
00017
00018
00019 bool scheduler();
00020
00021
00022 void registerTopics();
00023
00024
00025 void catchMessage(const HawkMessages::MessagePtr& msg, const Ice::Current&);
00026
00027 private:
00028
00029 enum States {LOOP};
00030 States state;
00031
00032
00033 void sendSensorDataMessage();
00034
00035
00036 void laserScan();
00037
00038
00039 void startDisplay();
00040
00041
00042 void stopDisplay();
00043
00044
00045 void updateDisplay();
00046 };