Last change
on this file since 364 was 324, checked in by Sanahuja Guillaume, 5 years ago |
removing opencv dependency
|
File size:
1005 bytes
|
Rev | Line | |
---|
[324] | 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 |
|
---|
| 20 | namespace flair {
|
---|
| 21 | namespace core {
|
---|
| 22 | class UdpSocket;
|
---|
| 23 | }
|
---|
| 24 | namespace sensor {
|
---|
| 25 | class VrpnClient;
|
---|
| 26 | class VrpnObject;
|
---|
| 27 | }
|
---|
| 28 | }
|
---|
| 29 |
|
---|
| 30 | class VrpnLite: public flair::core::Thread {
|
---|
| 31 | public:
|
---|
| 32 | VrpnLite(std::string clientAddress,std::string serveurAddress);
|
---|
| 33 | ~VrpnLite();
|
---|
| 34 |
|
---|
| 35 | private:
|
---|
| 36 | void Run(void);
|
---|
| 37 | flair::sensor::VrpnClient* vrpnclient;
|
---|
| 38 | std::vector<flair::sensor::VrpnObject*> vrpnobjects;
|
---|
| 39 | flair::core::UdpSocket* dataSocket;
|
---|
| 40 | void SendObject(const flair::sensor::VrpnObject* vrpnobject,uint8_t id) const;
|
---|
| 41 |
|
---|
| 42 | };
|
---|
| 43 |
|
---|
| 44 | #endif // VRPNLITE_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.