00001 /** 00002 * @file HeadMotionRequest.h 00003 * 00004 * Declaration of class HeadMotionRequest 00005 * 00006 * @author Matthias Juengel 00007 * @author Martin Lötzsch 00008 * @author Nils Koschmieder 00009 */ 00010 00011 #ifndef __HeadMotionRequest_h_ 00012 #define __HeadMotionRequest_h_ 00013 00014 #include "Tools/Streams/InOut.h" 00015 #include "Tools/Streams/Streamable.h" 00016 00017 /** 00018 * @class HeadMotionRequest 00019 * 00020 * Represents a motion request for the head. 00021 */ 00022 class HeadMotionRequest : public Streamable 00023 { 00024 void serialize(In* in, Out* out) 00025 { 00026 STREAM_REGISTER_BEGIN(); 00027 STREAM(tilt); 00028 STREAM(pan); 00029 STREAM(roll); 00030 STREAM(mouth); 00031 STREAM_REGISTER_FINISH(); 00032 } 00033 00034 public: 00035 /** requested head joint angles */ 00036 signed long tilt,pan,roll,mouth; 00037 00038 /** constructor */ 00039 HeadMotionRequest(); 00040 00041 /** destructor */ 00042 ~HeadMotionRequest(); 00043 }; 00044 00045 00046 /** 00047 * Streaming operator that reads a HeadMotionRequest from a stream. 00048 * @param stream The stream from which is read. 00049 * @param headMotionRequest The HeadMotionRequest object. 00050 * @return The stream. 00051 */ 00052 // In& operator>>(In& stream,HeadMotionRequest& headMotionRequest); 00053 00054 /** 00055 * Streaming operator that writes a HeadMotionRequest to a stream. 00056 * @param stream The stream to write on. 00057 * @param headMotionRequest The HeadMotionRequest object. 00058 * @return The stream. 00059 */ 00060 // Out& operator<<(Out& stream, const HeadMotionRequest& headMotionRequest); 00061 00062 00063 00064 #endif //__HeadMotionRequest_h_
1.3.6