Flair
Framework Libre Air
MetaVrpnObject.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}
13 #ifndef METAVRPNOBJECT_H
14 #define METAVRPNOBJECT_H
15 
16 #include <VrpnObject.h>
17 #include <VrpnClient.h>
18 #include <io_data.h>
19 #include <Vector3D.h>
20 
21 namespace flair {
22  namespace gui {
23  class DataPlot1D;
24  class DataPlot2D;
25  class Tab;
26  }
27  namespace filter {
28  class EulerDerivative;
29  class LowPassFilter;
30  }
31 }
32 
33 namespace flair {
34 namespace meta {
35 
43 public:
44  MetaVrpnObject(std::string name,sensor::VrpnClient *client=sensor::GetVrpnClient());
45  MetaVrpnObject(std::string name,uint8_t id,sensor::VrpnClient *client=sensor::GetVrpnClient());
46  ~MetaVrpnObject();
47  gui::DataPlot1D *VxPlot(void) const; // 1,0
48  gui::DataPlot1D *VyPlot(void) const; // 1,1
49  gui::DataPlot1D *VzPlot(void) const; // 1,2
50  gui::DataPlot2D *XyPlot(void) const;
51  void GetSpeed(core::Vector3Df &speed) const;
52 
53 private:
54  void ConstructorCommon(std::string name,sensor::VrpnClient *client);
57  gui::DataPlot2D *xy_plot;
58  gui::DataPlot1D *vx_opti_plot, *vy_opti_plot, *vz_opti_plot;
59  gui::Tab *plot_tab;
60 };
61 } // end namespace meta
62 } // end namespace flair
63 #endif // METAVRPNOBJECT_H
namespace of the flair Framework
Definition: Ahrs.h:19
Class for VRPN object. The IODevice is created with the VrpnClient as parent. VrpnClient must be crea...
Definition: VrpnObject.h:45
Class to connect to a Vrpn server.
Abstract class for data types.
Class defining a 3D vector.
Class defining a first order low pass filter.
Definition: LowPassFilter.h:36
VrpnClient * GetVrpnClient(void)
get VrpnClient
Class for VRPN object.
Classe haut niveau int├ęgrant un objet VRPN.
Definition: MetaVrpnObject.h:42
Class to connect to a Vrpn server. The Thread is created with the FrameworkManager as parent...
Definition: VrpnClient.h:40
Class defining an euler derivative.
Definition: EulerDerivative.h:36
Class displaying a 2D plot on the ground station.
Definition: DataPlot2D.h:34
Class displaying a 1D plot on the ground station.
Definition: DataPlot1D.h:33
Class displaying a QTab on the ground station.
Definition: Tab.h:29