[9] | 1 | // %flair:license{
|
---|
[13] | 2 | // This file is part of the Flair framework distributed under the
|
---|
| 3 | // CECILL-C License, Version 1.0.
|
---|
[9] | 4 | // %flair:license}
|
---|
[7] | 5 | /*!
|
---|
| 6 | * \file MetaVrpnObject.h
|
---|
| 7 | * \brief Classe haut niveau intégrant un objet VRPN
|
---|
| 8 | * \author Guillaume Sanahuja, Copyright Heudiasyc UMR UTC/CNRS 7253
|
---|
| 9 | * \date 2013/04/08
|
---|
| 10 | * \version 3.4
|
---|
| 11 | */
|
---|
| 12 |
|
---|
| 13 | #ifndef METAVRPNOBJECT_H
|
---|
| 14 | #define METAVRPNOBJECT_H
|
---|
| 15 |
|
---|
| 16 | #include <VrpnObject.h>
|
---|
| 17 | #include "io_data.h"
|
---|
| 18 |
|
---|
[13] | 19 | namespace flair {
|
---|
| 20 | namespace core {
|
---|
| 21 | class Vector3D;
|
---|
| 22 | class FloatType;
|
---|
[7] | 23 | }
|
---|
[13] | 24 | namespace gui {
|
---|
| 25 | class DataPlot1D;
|
---|
| 26 | class DataPlot2D;
|
---|
| 27 | class Tab;
|
---|
| 28 | }
|
---|
| 29 | namespace filter {
|
---|
| 30 | class EulerDerivative;
|
---|
| 31 | class LowPassFilter;
|
---|
| 32 | }
|
---|
| 33 | namespace sensor {
|
---|
| 34 | class VrpnClient;
|
---|
| 35 | }
|
---|
| 36 | }
|
---|
[7] | 37 |
|
---|
[13] | 38 | namespace flair {
|
---|
| 39 | namespace meta {
|
---|
[7] | 40 |
|
---|
[13] | 41 | /*! \class MetaVrpnObject
|
---|
| 42 | *
|
---|
| 43 | * \brief Classe haut niveau intégrant un objet VRPN
|
---|
| 44 | *
|
---|
| 45 | * Contient un objet VRPN et une dérivée, d'euler.
|
---|
| 46 | */
|
---|
| 47 | class MetaVrpnObject : public sensor::VrpnObject {
|
---|
| 48 | public:
|
---|
| 49 | MetaVrpnObject(const sensor::VrpnClient *parent, std::string name);
|
---|
| 50 | MetaVrpnObject(const sensor::VrpnClient *parent, std::string name,
|
---|
| 51 | uint8_t id);
|
---|
| 52 | ~MetaVrpnObject();
|
---|
| 53 | gui::DataPlot1D *VxPlot(void) const; // 1,0
|
---|
| 54 | gui::DataPlot1D *VyPlot(void) const; // 1,1
|
---|
| 55 | gui::DataPlot1D *VzPlot(void) const; // 1,2
|
---|
| 56 | gui::DataPlot2D *XyPlot(void) const;
|
---|
| 57 | void GetSpeed(core::Vector3D &speed) const;
|
---|
[7] | 58 |
|
---|
[13] | 59 | private:
|
---|
| 60 | void ConstructorCommon(const sensor::VrpnClient *parent, std::string name);
|
---|
| 61 | filter::LowPassFilter *pbas;
|
---|
| 62 | filter::EulerDerivative *euler;
|
---|
| 63 | gui::DataPlot2D *xy_plot;
|
---|
| 64 | gui::DataPlot1D *vx_opti_plot, *vy_opti_plot, *vz_opti_plot;
|
---|
| 65 | gui::Tab *plot_tab;
|
---|
| 66 | core::FloatType elementDataType;
|
---|
| 67 | };
|
---|
[7] | 68 | } // end namespace meta
|
---|
| 69 | } // end namespace flair
|
---|
[13] | 70 | #endif // METAVRPNOBJECT_H
|
---|