Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

DeltaMC.h

Go to the documentation of this file.
00001 
00002 //
00003 //       Title           : DeltaMC.hpp
00004 //       Project         : D&D
00005 //       Created         : Thursday  August 1, 1996
00006 //       Author          : Mitch Pryor & Chetan Kapoor
00007 //       Platforms       : WIN32                        
00008 //       Copyright       : The University of Texas at Austin
00009 //                         All Rights Reserved.
00010 //       Access          : Company Confidential
00011 //       Purpose         : develop a class hierarchy for manual controllers             
00012 //
00013 //-------------------------------------------------------------------------
00014 //
00015 //       Classes:
00016 //               DeltaMC
00017 //
00018 //       Global Functions:
00019 //               <none>
00020 //
00021 //       Global Variables:
00022 //               <none>
00023 //
00024 //-------------------------------------------------------------------------
00025 //
00026 //       $Revisions$
00027 //
00028 //       $Log: DeltaMC.h,v $
00029 //       Revision 1.3  2005/03/14 21:54:05  pmarch
00030 //       Added to namespace OSCAR and removed "RR" from front of class names.
00031 //
00032 //       Revision 1.2  2004/05/27 19:24:06  pmarch
00033 //       Added /defgroup and /ingroup tags.
00034 //
00035 //       Revision 1.1  2003/08/18 21:23:28  pmarch
00036 //       Initial commit of ManualController
00037 //
00038 //
00040 
00041 #ifndef DeltaMC_h
00042 #define DeltaMC_h
00043 
00044 //=========================================================================
00045 //      Includes
00046 //=========================================================================
00047 
00048 #include "ManualController.h"
00049 
00050 //=========================================================================
00051 //      Class declaration for ManualController begins
00052 //=========================================================================
00053 
00055 namespace OSCAR {
00056 
00061   class DeltaMC : public ManualController
00062   {
00063   public:
00064           //constructors
00065     DeltaMC(const int numberOfButtons,
00066               const HandPose& startingHand,
00067                           const int numberOfDeltas,
00068               const String& name,
00069                           MC_TYPE type);
00070           //destuctor
00071           ~DeltaMC();           
00072 
00073 
00074     int GetPacketFromServer();
00075     int Listen();       
00076     int SetDeadBand(Vector& deadBand);
00077           int GetDeadBand(Vector& deadBand) const;
00078   
00079   protected:
00080     Vector *deadBand; //band at center of workspace considered zero
00081           void ScaleDeltas();
00082     int  CheckDeltas();
00083 
00084   };
00085 
00086 }
00087 #endif //DeltaMC_h
RRG Homepage OSCAR Overview OSCAR Tutorials Simulations