Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

Representations/Motion/MotorCommands.h

Go to the documentation of this file.
00001 /**
00002  * @file MotorCommands.h
00003  * Declaration of class MotorCommands
00004  *
00005  * @author <A href="mailto:roefer@tzi.de">Thomas Röfer</A>
00006  */ 
00007 
00008 #ifndef __MotorCommands_h_
00009 #define __MotorCommands_h_
00010 
00011 #include "JointDataBuffer.h"
00012 #include "LEDValue.h"
00013 #include "PIDData.h"
00014 
00015 /**
00016  * A class representing a motor commands vector. 
00017  */
00018 class MotorCommands
00019 {
00020 public:
00021   /**
00022   * a buffer with joint data sets sent in one cycle
00023   */
00024   JointDataBuffer jointDataBuffer;
00025 
00026   /**
00027   * the current LED values
00028   */
00029   LEDValue ledValue;
00030 
00031   /**
00032   * the current PID values
00033   */
00034   PIDData pidData;
00035 
00036   /**
00037    * constructs a MotorCommands.
00038    */ 
00039   MotorCommands();
00040 
00041   /**
00042    * deconstructs a MotorCommands.
00043    */
00044   ~MotorCommands();
00045 
00046   /**
00047    * Fills the joint data buffer.
00048    * @param buffer The values that will be copied.
00049    */
00050   void setVector(const JointDataBuffer &buffer) {jointDataBuffer = buffer;}
00051 
00052   /**
00053    * Fills the led buffer.
00054    * @param led The values that will be copied.
00055    */
00056   void setLED(const LEDValue &led) {ledValue = led;}
00057 };
00058 
00059 /**
00060  * System-independent operator that reads motor commands from a stream.
00061  * @param stream The stream from which is read.
00062  * @param motorCommands The system independent motor commands object.
00063  * @return The stream.
00064  */ 
00065 In& operator>>(In& stream,MotorCommands& motorCommands);
00066 
00067 #endif //__MotorCommands_h_
00068 
00069 
00070 /*
00071  * Change log :
00072  * 
00073  * $Log: MotorCommands.h,v $
00074  * Revision 1.1.1.1  2004/05/22 17:25:30  cvsadm
00075  * created new repository GT2004_WM
00076  *
00077  * Revision 1.1  2003/10/07 10:07:01  cvsadm
00078  * Created GT2004 (M.J.)
00079  *
00080  * Revision 1.1.1.1  2003/07/02 09:40:22  cvsadm
00081  * created new repository for the competitions in Padova from the 
00082  * tamara CVS (Tuesday 2:00 pm)
00083  *
00084  * removed unused solutions
00085  *
00086  * Revision 1.2  2002/11/19 17:08:48  risler
00087  * added datatype PIDData
00088  * support for sending new pid values at runtime
00089  *
00090  * Revision 1.1  2002/09/10 15:26:40  cvsadm
00091  * Created new project GT2003 (M.L.)
00092  * - Cleaned up the /Src/DataTypes directory
00093  * - Removed Challenge Code
00094  * - Removed processing of incoming audio data
00095  * - Renamed AcousticMessage to SoundRequest
00096  *
00097  * Revision 1.1.1.1  2002/05/10 12:40:13  cvsadm
00098  * Moved GT2002 Project from ute to tamara.
00099  *
00100  * Revision 1.4  2001/12/28 09:01:15  roefer
00101  * Streaming operator inserted
00102  *
00103  * Revision 1.3  2001/12/10 17:47:06  risler
00104  * change log added
00105  *
00106  */

Generated on Thu Sep 23 19:57:35 2004 for GT2004 by doxygen 1.3.6