Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

Representations/Motion/LEDValue.h

Go to the documentation of this file.
00001 /**
00002  * @file LEDValue.h
00003  *
00004  * Definition of LEDValue.
00005  * Description of LED value data.
00006  *
00007  * @author Max Risler
00008  */
00009 
00010 #ifndef __LEDValue_h_
00011 #define __LEDValue_h_
00012 
00013 #include "Tools/Streams/InOut.h"
00014 #include "Representations/Motion/JointDataBuffer.h"
00015 
00016 /**
00017 * Description of LED value data.
00018 */
00019 class LEDValue
00020 {
00021 public:
00022   /**
00023    * enum describing indexes of LEDs 
00024    */
00025   enum LED {
00026     redLB,
00027     greenL,
00028     redLT,
00029     redRB,
00030     greenR,
00031     redRT,
00032     greenT, 
00033     tailBlue,
00034     tailRed,
00035     numOfLED_ERS210,
00036     headOrange = 0,
00037     headWhite,
00038     modeRed,
00039     modeGreen,
00040     modeBlue,
00041     wireless,
00042     face1,
00043     face2,
00044     face3,
00045     face4,
00046     face5,
00047     face6,
00048     face7,
00049     face8,
00050     face9,
00051     face10,
00052     face11,
00053     face12,
00054     face13,
00055     face14,
00056     backFrontBlue,
00057     backFrontWhite,
00058     backMiddleOrange,
00059     backMiddleWhite,
00060     backRearRed,
00061     backRearWhite,
00062     numOfLED_ERS7
00063   };
00064 
00065   /** the LED data buffer */
00066   long data[jointDataBufferNumOfFrames];
00067   bool modeA;
00068 //#define LEDINTENSITY
00069 #ifdef LEDINTENSITY
00070   unsigned char intensity[jointDataBufferNumOfFrames][numOfLED_ERS7];
00071 #endif
00072 
00073   LEDValue();
00074 };
00075 
00076 /**
00077  * Streaming operator that reads a LEDValue from a stream.
00078  * @param stream The stream from which is read.
00079  * @param ledValue The LEDValue object.
00080  * @return The stream.
00081  */ 
00082 In& operator>>(In& stream,LEDValue& ledValue);
00083  
00084 /**
00085  * Streaming operator that writes a LEDValue to a stream.
00086  * @param stream The stream to write on.
00087  * @param ledValue The LEDValue object.
00088  * @return The stream.
00089  */ 
00090 Out& operator<<(Out& stream, const LEDValue& ledValue);
00091 
00092 
00093 #endif //__LEDValue_h_

Generated on Mon Mar 20 22:00:02 2006 for GT2005 by doxygen 1.3.6