Homepage Demos Overview Downloads Tutorials Reference
Credits

ASCIIVisionBehavior.h

Go to the documentation of this file.
00001 //-*-c++-*-
00002 
00003 // This is an empty Behavior template file.
00004 // Replace ASCIIVisionBehavior and streams low-resolution ASCII-art of the camera image to sout as appropriate, and go to town!
00005 
00006 #ifndef INCLUDED_ASCIIVisionBehavior_h_
00007 #define INCLUDED_ASCIIVisionBehavior_h_
00008 
00009 #include "Behaviors/BehaviorBase.h"
00010 #include "Events/EventRouter.h"
00011 
00012 //! streams low-resolution ASCII-art of the camera image to sout
00013 class ASCIIVisionBehavior : public BehaviorBase {
00014 public:
00015   //! constructor
00016   ASCIIVisionBehavior() : BehaviorBase() {}
00017 
00018   static const unsigned int charMapSize=64;
00019   static const char charMap[charMapSize];
00020 
00021   virtual void DoStart() {
00022     BehaviorBase::DoStart(); // do this first
00023     erouter->addListener(this,EventBase::visRawCameraEGID);
00024   }
00025 
00026   virtual void DoStop() {
00027     erouter->removeListener(this);
00028     BehaviorBase::DoStop(); // do this last
00029   }
00030 
00031   virtual void processEvent(const EventBase& e);
00032 
00033   virtual std::string getName() const { return "ASCIIVisionBehavior"; }
00034 
00035   static std::string getClassDescription() { return "streams low-resolution ASCII-art of the camera image to sout"; }
00036   
00037 protected:
00038   
00039 };
00040 
00041 /*! @file
00042  * @brief Defines ASCIIVisionBehavior, which streams low-resolution ASCII-art of the camera image to sout
00043  * @author ejt (Creator)
00044  *
00045  * $Author: ejt $
00046  * $Name: tekkotsu-2_2 $
00047  * $Revision: 1.2 $
00048  * $State: Exp $
00049  * $Date: 2004/10/19 00:46:54 $
00050  */
00051 
00052 #endif

Tekkotsu v2.2
Generated Tue Oct 19 14:19:13 2004 by Doxygen 1.3.9.1