00001 #include "Component/ModelManager.H" 00002 #include "Component/OptionManager.H" 00003 00004 #include "Component/ModelComponent.H" 00005 #include "Component/ModelParam.H" 00006 #include "Media/FrameSeries.H" 00007 #include "Transport/FrameInfo.H" 00008 #include "Raster/GenericFrame.H" 00009 #include "Image/Image.H" 00010 #include "GUI/XWinManaged.H" 00011 #include "GUI/ImageDisplayStream.H" 00012 #include "Image/Image.H" 00013 #include "Image/Pixels.H" 00014 #include "Robots/RobotBrain/RobotBrainComponent.H" 00015 00016 #include "Ice/RobotBrainObjects.ice.H" 00017 #include "Ice/RobotSimEvents.ice.H" 00018 #include "Ice/IceImageUtils.H" 00019 #include <IceUtil/Thread.h> 00020 00021 #ifndef BASICBRAINCOMPONENTI_H 00022 #define BASICBRAINCOMPONENTI_H 00023 00024 class BasicBrainComponentI : public RobotBrainComponent 00025 { 00026 public: 00027 00028 //!Constructor 00029 BasicBrainComponentI(int id, OptionManager& mgr, 00030 const std::string& descrName = "BasicBrainComponent", 00031 const std::string& tagName = "BasicBrainComponent"); 00032 00033 //!Destructor 00034 ~BasicBrainComponentI(); 00035 00036 //!Main run loop 00037 virtual void evolve(); 00038 00039 //!Get a message 00040 virtual void updateMessage(const RobotSimEvents::EventMessagePtr& eMsg, 00041 const Ice::Current&); 00042 00043 //!Component registers itself as publisher/subscriber to topic(s) 00044 virtual void registerTopics(); 00045 00046 }; 00047 00048 #endif