Flair
Framework Libre Air
VrpnClient.h
Go to the documentation of this file.
1 // %flair:license{
2 // This file is part of the Flair framework distributed under the
3 // CECILL-C License, Version 1.0.
4 // %flair:license}
14 #ifndef VRPNCLIENT_H
15 #define VRPNCLIENT_H
16 
17 #include <Thread.h>
18 
19 namespace flair {
20  namespace core {
21  class SerialPort;
22  }
23  namespace gui {
24  class TabWidget;
25  class Layout;
26  }
27 }
28 
29 class VrpnClient_impl;
30 class VrpnObject_impl;
31 
32 namespace flair {
33 namespace sensor {
40 class VrpnClient : public core::Thread {
41  friend class ::VrpnObject_impl;
42 
43 public:
53  VrpnClient(std::string name,
54  std::string address, uint8_t priority);
55 
66  VrpnClient(std::string name,
67  core::SerialPort *serialport, uint16_t us_period,
68  uint8_t priority);
69 
74  ~VrpnClient();
75 
81  gui::Layout *GetLayout(void) const;
82 
88  gui::TabWidget *GetTabWidget(void) const;
89 
95  bool UseXbee(void) const;
96 
97 private:
104  void Run(void);
105 
106  class VrpnClient_impl *pimpl_;
107 };
108 
115 
116 } // end namespace sensor
117 } // end namespace flair
118 #endif // VRPNCLIENT_H
namespace of the flair Framework
Definition: Ahrs.h:19
Base class for serial port.
Definition: SerialPort.h:25
Abstract class to display a layout on the ground station.
Definition: Layout.h:33
Class displaying a QTabWidget on the ground station.
Definition: TabWidget.h:29
Abstract class for a thread.
gui::Layout * GetLayout(void) const
Setup Layout.
Abstract class for a thread.
Definition: Thread.h:38
bool UseXbee(void) const
Is XBee used?
gui::TabWidget * GetTabWidget(void) const
Setup Tab.
VrpnClient * GetVrpnClient(void)
get VrpnClient
Class to connect to a Vrpn server. The Thread is created with the FrameworkManager as parent...
Definition: VrpnClient.h:40
VrpnClient(std::string name, std::string address, uint8_t priority)
Constructor.