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 00068 LEDValue(); 00069 }; 00070 00071 /** 00072 * Streaming operator that reads a LEDValue from a stream. 00073 * @param stream The stream from which is read. 00074 * @param ledValue The LEDValue object. 00075 * @return The stream. 00076 */ 00077 In& operator>>(In& stream,LEDValue& ledValue); 00078 00079 /** 00080 * Streaming operator that writes a LEDValue to a stream. 00081 * @param stream The stream to write on. 00082 * @param ledValue The LEDValue object. 00083 * @return The stream. 00084 */ 00085 Out& operator<<(Out& stream, const LEDValue& ledValue); 00086 00087 00088 #endif //__LEDValue_h_ 00089 00090 /* 00091 * Change log : 00092 * 00093 * $Log: LEDValue.h,v $ 00094 * Revision 1.1.1.1 2004/05/22 17:25:18 cvsadm 00095 * created new repository GT2004_WM 00096 * 00097 * Revision 1.3 2003/12/31 14:29:20 roefer 00098 * Joints and LEDs for ERS-7 00099 * 00100 * Revision 1.2 2003/10/14 07:30:33 roefer 00101 * Added type name for LED enum 00102 * 00103 * Revision 1.1 2003/10/07 10:07:01 cvsadm 00104 * Created GT2004 (M.J.) 00105 * 00106 * Revision 1.2 2003/09/26 15:27:27 juengel 00107 * Renamed DataTypes to representations. 00108 * 00109 * Revision 1.1.1.1 2003/07/02 09:40:22 cvsadm 00110 * created new repository for the competitions in Padova from the 00111 * tamara CVS (Tuesday 2:00 pm) 00112 * 00113 * removed unused solutions 00114 * 00115 * Revision 1.2 2003/02/25 11:43:45 dueffert 00116 * line feed and doxygen bugs fixed 00117 * 00118 * Revision 1.1 2002/09/10 15:26:40 cvsadm 00119 * Created new project GT2003 (M.L.) 00120 * - Cleaned up the /Src/DataTypes directory 00121 * - Removed Challenge Code 00122 * - Removed processing of incoming audio data 00123 * - Renamed AcousticMessage to SoundRequest 00124 * 00125 * Revision 1.4 2002/08/27 08:55:37 risler 00126 * removed old todo 00127 * 00128 * Revision 1.3 2002/08/22 14:41:03 risler 00129 * added some doxygen comments 00130 * 00131 * Revision 1.2 2002/07/23 13:32:57 loetzsch 00132 * new streaming classes 00133 * 00134 * removed many #include statements 00135 * 00136 * Revision 1.1.1.1 2002/05/10 12:40:13 cvsadm 00137 * Moved GT2002 Project from ute to tamara. 00138 * 00139 * Revision 1.6 2002/05/07 05:49:56 dueffert 00140 * new LED handling implemented 00141 * 00142 * Revision 1.5 2001/12/10 17:47:05 risler 00143 * change log added 00144 * 00145 */