25 #ifndef INCLUDED_Oculus_DK2_h_GUID_EA07F823_BC38_47B0_F60A_E525110E2C1C 
   26 #define INCLUDED_Oculus_DK2_h_GUID_EA07F823_BC38_47B0_F60A_E525110E2C1C 
   32 #include <vrpn_HumanInterface.h> 
   33 #include <vrpn_Shared.h> 
   34 #include <opencv2/core/core.hpp>  
   40 namespace oculus_dk2 {
 
   47         vrpn_uint16 timestamp;
 
   61         std::vector<OCULUS_IMU_REPORT> 
poll();
 
   64         vrpn_HidAcceptor *m_filter;
 
   65         double m_keepAliveSeconds;
 
   66         struct timeval m_lastKeepAlive;
 
   69         std::vector<OCULUS_IMU_REPORT> m_reports;
 
   74         writeLEDControl(
bool enable = 
true, vrpn_uint16 exposureLength = 350,
 
   75                         vrpn_uint16 frameInterval = 16666,
 
   76                         vrpn_uint16 vSyncOffset = 0,
 
   77                         vrpn_uint8 dutyCycle = 127 
 
   79                         vrpn_uint8 pattern = 1, 
bool autoIncrement = 
true,
 
   80                         bool useCarrier = 
true, 
bool syncInput = 
false,
 
   81                         bool vSyncLock = 
false, 
bool customPattern = 
false,
 
   82                         vrpn_uint16 commandId = 0 
 
   90             vrpn_uint16 interval = 10000 
 
   92             vrpn_uint16 commandId = 0 
 
   99         void on_data_received(
size_t bytes, vrpn_uint8 *buffer);
 
  110     extern cv::Mat unscramble_image(
const cv::Mat &image);
 
  115 #endif // INCLUDED_Oculus_DK2_h_GUID_EA07F823_BC38_47B0_F60A_E525110E2C1C 
std::vector< OCULUS_IMU_REPORT > poll()