source: flair-src/trunk/tools/VrpnLite/src/VrpnLite.h @ 446

Last change on this file since 446 was 446, checked in by Sanahuja Guillaume, 3 months ago

vrpnlite: add headless mode and kill button

File size: 1.2 KB
Line 
1//  created:    2019/03/12
2//  filename:   VrpnLite.h
3//
4//  author:     Guillaume Sanahuja
5//              Copyright Heudiasyc UMR UTC/CNRS 7253
6//
7//  version:    $Id: $
8//
9//  purpose:    vrpnlite, to forward it to bth for exemple
10//              usefull to reduce vrpn frame size
11//
12/*********************************************************************/
13
14#ifndef VRPNLITE_H
15#define VRPNLITE_H
16
17#include <string>
18#include <Thread.h>
19
20namespace flair {
21  namespace core {
22    class UdpSocket;
23  }
24  namespace gui {
25    class PushButton;
26  }
27        namespace sensor {
28                class VrpnClient;
29                class VrpnObject;
30        }
31}
32
33class VrpnLite: public flair::core::Thread {
34  public:
35      VrpnLite(int vrpnLitePort,std::string vrpnServerAddress);
36      ~VrpnLite();
37
38private:
39      flair::gui::PushButton* killButton;
40      void Run(void);
41      flair::sensor::VrpnClient* vrpnclient;
42      std::vector<flair::sensor::VrpnObject*> vrpnobjects;
43      std::vector<std::vector<flair::sensor::VrpnObject*>> vrpnobjects_list;
44      flair::core::UdpSocket* dataSocket;
45      void SendObjects(void) const;
46      int16_t ConvertPosition(float value) const;
47      int16_t ConvertQuaternion(float value) const;
48};
49
50#endif // VRPNLITE_H
Note: See TracBrowser for help on using the repository browser.