00001
00002
00003
00004
00005
00006
00007
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
00018
00019 class LEDValue
00020 {
00021 public:
00022
00023
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
00066 long data[jointDataBufferNumOfFrames];
00067 bool modeA;
00068
00069 #ifdef LEDINTENSITY
00070 unsigned char intensity[jointDataBufferNumOfFrames][numOfLED_ERS7];
00071 #endif
00072
00073 LEDValue();
00074 };
00075
00076
00077
00078
00079
00080
00081
00082 In& operator>>(In& stream,LEDValue& ledValue);
00083
00084
00085
00086
00087
00088
00089
00090 Out& operator<<(Out& stream, const LEDValue& ledValue);
00091
00092
00093 #endif //__LEDValue_h_