Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
IPCMotionHook.hGo to the documentation of this file.00001 //-*-c++-*- 00002 #ifndef INCLUDED_IPCMotionHook_h_ 00003 #define INCLUDED_IPCMotionHook_h_ 00004 00005 #include "local/MotionHook.h" 00006 #include <list> 00007 00008 class MessageQueueBase; 00009 class RCRegion; 00010 00011 //! description of IPCMotionHook 00012 class IPCMotionHook : public MotionHook { 00013 public: 00014 IPCMotionHook(MessageQueueBase& q) : MotionHook(), mq(q), regions() {} 00015 virtual ~IPCMotionHook(); 00016 00017 virtual void motionCheck(const float outputs[][NumOutputs]); 00018 00019 protected: 00020 MessageQueueBase& mq; 00021 00022 RCRegion* getRegion(); 00023 typedef std::list<RCRegion* > msgbuf_t; //!< type of collection of shared data regions 00024 msgbuf_t regions; //!< for efficiency, reuse old buffers -- oldest at front, most recently used at back 00025 }; 00026 00027 /*! @file 00028 * @brief 00029 * @author Ethan Tira-Thompson (ejt) (Creator) 00030 * 00031 * $Author: ejt $ 00032 * $Name: tekkotsu-4_0 $ 00033 * $Revision: 1.1 $ 00034 * $State: Exp $ 00035 * $Date: 2007/06/03 17:03:26 $ 00036 */ 00037 00038 #endif |
Tekkotsu Hardware Abstraction Layer 4.0 |
Generated Thu Nov 22 01:00:53 2007 by Doxygen 1.5.4 |