// created: 2019/03/12 // filename: VrpnLite.h // // author: Guillaume Sanahuja // Copyright Heudiasyc UMR UTC/CNRS 7253 // // version: $Id: $ // // purpose: vrpnlite, to forward it to bth for exemple // usefull to reduce vrpn frame size // /*********************************************************************/ #ifndef VRPNLITE_H #define VRPNLITE_H #include #include namespace flair { namespace core { class UdpSocket; } namespace gui { class PushButton; } namespace sensor { class VrpnClient; class VrpnObject; } } class VrpnLite: public flair::core::Thread { public: VrpnLite(int vrpnLitePort,std::string vrpnServerAddress); ~VrpnLite(); private: flair::gui::PushButton* killButton; void Run(void); flair::sensor::VrpnClient* vrpnclient; std::vector vrpnobjects; std::vector> vrpnobjects_list; flair::core::UdpSocket* dataSocket; void SendObjects(void) const; int16_t ConvertPosition(float value) const; int16_t ConvertQuaternion(float value) const; }; #endif // VRPNLITE_H