00001 // this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*- 00002 00003 // -- BEGIN LICENSE BLOCK ---------------------------------------------- 00004 // This file is part of the SCHUNK SVH Driver suite. 00005 // 00006 // This program is free software licensed under the LGPL 00007 // (GNU LESSER GENERAL PUBLIC LICENSE Version 3). 00008 // You can find a copy of this license in LICENSE folder in the top 00009 // directory of the source code. 00010 // 00011 // © Copyright 2014 SCHUNK Mobile Greifsysteme GmbH, Lauffen/Neckar Germany 00012 // © Copyright 2014 FZI Forschungszentrum Informatik, Karlsruhe, Germany 00013 // 00014 // -- END LICENSE BLOCK ------------------------------------------------ 00015 00016 //---------------------------------------------------------------------- 00029 //---------------------------------------------------------------------- 00030 #ifndef DRIVER_SVH_SVH_FEEDBACK_POLLING_THREAD_H_INCLUDED 00031 #define DRIVER_SVH_SVH_FEEDBACK_POLLING_THREAD_H_INCLUDED 00032 00033 #include <icl_core/TimeSpan.h> 00034 #include <icl_core_thread/PeriodicThread.h> 00035 #include <driver_svh/SVHController.h> 00036 00037 using icl_core::TimeSpan; 00038 using icl_core::thread::PeriodicThread; 00039 00040 namespace driver_svh { 00041 00042 // forward declaration as the fingermanager already uses this class 00043 class SVHFingerManager; 00044 00048 class SVHFeedbackPollingThread : public PeriodicThread 00049 { 00050 public: 00056 SVHFeedbackPollingThread(const TimeSpan& period, SVHFingerManager* finger_manager); 00057 00059 virtual ~SVHFeedbackPollingThread() {} 00060 00062 virtual void run(); 00063 00064 private: 00065 00067 SVHFingerManager* m_finger_manager; 00068 00069 }; 00070 00071 } 00072 00073 #endif