00001 00002 #include "Component/ModelComponent.H" 00003 #include "Component/ModelParam.H" 00004 #include "Media/FrameSeries.H" 00005 #include "Transport/FrameInfo.H" 00006 #include "Raster/GenericFrame.H" 00007 #include "Image/Image.H" 00008 #include "GUI/XWinManaged.H" 00009 #include "GUI/ImageDisplayStream.H" 00010 #include "Image/Image.H" 00011 #include "Image/Pixels.H" 00012 #include "Robots/RobotBrain/RobotBrainComponent.H" 00013 00014 #include "Ice/RobotBrainObjects.ice.H" 00015 #include "Ice/RobotSimEvents.ice.H" 00016 #include "Ice/IceImageUtils.H" 00017 #include <IceUtil/Thread.h> 00018 00019 class RetinaI : public RobotBrainComponent 00020 { 00021 public: 00022 00023 RetinaI(int id, OptionManager& mgr, 00024 const std::string& descrName = "Retina", 00025 const std::string& tagName = "Retina"); 00026 00027 ~RetinaI(); 00028 00029 virtual void evolve(); 00030 00031 //!Get a message 00032 virtual void updateMessage(const RobotSimEvents::EventMessagePtr& eMsg, 00033 const Ice::Current&); 00034 00035 virtual void registerTopics(); 00036 00037 private: 00038 nub::soft_ref<InputFrameSeries> itsIfs; 00039 bool itsRunning; 00040 }; 00041