00001 /** 00002 * @file PackageMotionCognition.h 00003 * 00004 * Definition of class PackageMotionCognition. 00005 * 00006 * @author Martin Lötzsch 00007 */ 00008 00009 #ifndef __PackageMotionCognition_h_ 00010 #define __PackageMotionCognition_h_ 00011 00012 #include "Representations/Motion/MotionInfo.h" 00013 00014 /** 00015 * @class PackageMotionCognition 00016 * 00017 * Contains all data that are sent from the Motion process to the Cognition process 00018 * in the CMD process layout. 00019 * 00020 * @author Martin Lötzsch 00021 */ 00022 class PackageMotionCognition 00023 { 00024 public: 00025 /** The time when the package was sent */ 00026 unsigned long timeStamp; 00027 00028 /** the MotionRequest that is currently executed be the MotionControl */ 00029 MotionInfo motionInfo; 00030 }; 00031 00032 /** 00033 * Streaming operator that reads a PackageMotionCognition from a stream. 00034 * @param stream The stream from which is read. 00035 * @param packageMotionCognition The PackageMotionCognition object. 00036 * @return The stream. 00037 */ 00038 In& operator>>(In& stream, PackageMotionCognition& packageMotionCognition); 00039 00040 /** 00041 * Streaming operator that writes a PackageMotionCognition to a stream. 00042 * @param stream The stream to write on. 00043 * @param packageMotionCognition The PackageMotionCognition object. 00044 * @return The stream. 00045 */ 00046 Out& operator<<(Out& stream, const PackageMotionCognition& packageMotionCognition); 00047 00048 00049 #endif //__PackageMotionCognition_h_ 00050 00051 /* 00052 * Change Log: 00053 * 00054 * $Log: PackageMotionCognition.h,v $ 00055 * Revision 1.3 2004/06/17 17:27:56 spranger 00056 * added timestamp to package 00057 * 00058 * Revision 1.2 2004/05/26 17:31:34 dueffert 00059 * better data types used 00060 * 00061 * Revision 1.1.1.1 2004/05/22 17:25:01 cvsadm 00062 * created new repository GT2004_WM 00063 * 00064 * Revision 1.1 2003/10/07 10:07:01 cvsadm 00065 * Created GT2004 (M.J.) 00066 * 00067 * Revision 1.2 2003/09/26 15:30:39 juengel 00068 * Renamed DataTypes to representations. 00069 * 00070 * Revision 1.1.1.1 2003/07/02 09:40:25 cvsadm 00071 * created new repository for the competitions in Padova from the 00072 * tamara CVS (Tuesday 2:00 pm) 00073 * 00074 * removed unused solutions 00075 * 00076 * Revision 1.5 2003/05/13 12:04:45 goehring 00077 * JointState removed 00078 * 00079 * Revision 1.4 2003/04/25 19:49:56 goehring 00080 * Added JointState 00081 * 00082 * Revision 1.3 2002/09/18 19:52:36 loetzsch 00083 * the head state is now sent from Motion to Cognition using the package. 00084 * 00085 * Revision 1.2 2002/09/17 23:55:22 loetzsch 00086 * - unraveled several datatypes 00087 * - changed the WATCH macro 00088 * - completed the process restructuring 00089 * 00090 * Revision 1.1 2002/09/11 13:42:54 loetzsch 00091 * Created a package for all data that are sent from Motion to Cognition 00092 * 00093 */