00001 /** 00002 * @file JointDataBuffer.h 00003 * 00004 * Definition of JointDataBuffer class. 00005 * The jointdata struct is a non NDA violating description of joint vector data 00006 * 00007 * @author Max Risler 00008 */ 00009 #ifndef __JOINTDATABUFFER_H__ 00010 #define __JOINTDATABUFFER_H__ 00011 00012 #include "JointData.h" 00013 00014 #include "Tools/Streams/InOut.h" 00015 00016 /** Number of frames in the buffer. 00017 * This number defines how many frames are computed each run, 00018 * and therefore how often Motion::execute will be called. 00019 */ 00020 static const int jointDataBufferNumOfFrames = 1; 00021 00022 00023 /** 00024 * A buffer for joint data sets, containing all frames computed in one call of Motion::execute. 00025 * @author Max Risler 00026 */ 00027 struct JointDataBuffer 00028 { 00029 public: 00030 /** Constructor */ 00031 JointDataBuffer(); 00032 00033 /** The joint data frames */ 00034 JointData frame[jointDataBufferNumOfFrames]; 00035 }; 00036 00037 /** 00038 * Streaming operator that reads a JointDataBuffer from a stream. 00039 * @param stream The stream from which is read. 00040 * @param jointDataBuffer The JointDataBuffer object. 00041 * @return The stream. 00042 */ 00043 In& operator>>(In& stream,JointDataBuffer& jointDataBuffer); 00044 00045 /** 00046 * Streaming operator that writes a JointDataBuffer to a stream. 00047 * @param stream The stream to write on. 00048 * @param jointDataBuffer The JointDataBuffer object. 00049 * @return The stream. 00050 */ 00051 Out& operator<<(Out& stream, const JointDataBuffer& jointDataBuffer); 00052 00053 #endif //__JOINTDATABUFFER_H__ 00054 00055 /* 00056 * Change log : 00057 * 00058 * $Log: JointDataBuffer.h,v $ 00059 * Revision 1.1.1.1 2004/05/22 17:25:18 cvsadm 00060 * created new repository GT2004_WM 00061 * 00062 * Revision 1.1 2003/10/07 10:07:01 cvsadm 00063 * Created GT2004 (M.J.) 00064 * 00065 * Revision 1.2 2003/09/25 11:23:52 juengel 00066 * Removed BlobCollection. 00067 * 00068 * Revision 1.1.1.1 2003/07/02 09:40:22 cvsadm 00069 * created new repository for the competitions in Padova from the 00070 * tamara CVS (Tuesday 2:00 pm) 00071 * 00072 * removed unused solutions 00073 * 00074 * Revision 1.2 2002/10/14 13:14:24 dueffert 00075 * doxygen comments corrected 00076 * 00077 * Revision 1.1 2002/09/10 15:26:40 cvsadm 00078 * Created new project GT2003 (M.L.) 00079 * - Cleaned up the /Src/DataTypes directory 00080 * - Removed Challenge Code 00081 * - Removed processing of incoming audio data 00082 * - Renamed AcousticMessage to SoundRequest 00083 * 00084 * Revision 1.2 2002/07/23 13:32:57 loetzsch 00085 * new streaming classes 00086 * 00087 * removed many #include statements 00088 * 00089 * Revision 1.1.1.1 2002/05/10 12:40:13 cvsadm 00090 * Moved GT2002 Project from ute to tamara. 00091 * 00092 * Revision 1.5 2001/12/28 09:02:23 roefer 00093 * jointDataBufferNumOfFrames reduced to 1 00094 * 00095 * Revision 1.4 2001/12/10 17:47:05 risler 00096 * change log added 00097 * 00098 */