source: flair-dev/trunk/include/FlairSensorActuator/LaserRangeFinder.h@ 88

Last change on this file since 88 was 68, checked in by Sanahuja Guillaume, 6 years ago

maj for armv5te

File size: 2.3 KB
RevLine 
[4]1// %flair:license{
[13]2// This file is part of the Flair framework distributed under the
3// CECILL-C License, Version 1.0.
[4]4// %flair:license}
5/*!
6 * \file LaserRangeFinder.h
7 * \brief Classe generique des telemetres laser
8 * \author César RICHARD, Copyright Heudiasyc UMR UTC/CNRS 7253
9 * \date 2014/07/22
10 * \version 1.0
11 */
12
13#ifndef LASERRANGEFINDER_H
14#define LASERRANGEFINDER_H
15
16#include <IODevice.h>
17
[13]18namespace flair {
19namespace core {
20class FrameworkManager;
[68]21class Matrix;
[4]22}
[13]23namespace gui {
24class Tab;
25class TabWidget;
26class GroupBox;
27class Layout;
28class RangeFinderPlot;
29}
30}
[4]31
[13]32namespace flair {
33namespace sensor {
34/*! \class LaserRangeFinder
35*
36* \brief Classe generique intégrant les telemetres laser
37*/
38class LaserRangeFinder : public core::IODevice {
39public:
40 /*!
41 * \brief Constructor
42 *
43 * Construct a Laser Range Finder.
[50]44 * It will be child of the FrameworkManager
[13]45 *
46 * \param name name
47 */
[50]48 LaserRangeFinder(std::string name);
[13]49 /*!
50 * \brief Constructor
51 *
52 * Construct a UsRangeFinder. Simulation part.
53 *
54 * \param parent parent
55 * \param name name
56 */
57 LaserRangeFinder(const core::IODevice *parent, std::string name);
58 /*!
59 * \brief Destructor
60 *
61 */
62 ~LaserRangeFinder();
[4]63
[13]64 /*!
65 * \brief Use default plot
66 *
67 */
68 void UseDefaultPlot(void);
[4]69
[13]70 /*!
71 * \brief Plot
72 *
73 * \return DataPlot1D
74 */
75 gui::RangeFinderPlot *GetPlot(void) const;
[4]76
[13]77 /*!
78 * \brief Setup Layout
79 *
80 * \return a Layout available
81 */
82 gui::Layout *GetLayout(void) const;
[4]83
[13]84 /*!
85 * \brief Plot tab
86 *
87 * \return plot Tab
88 */
89 gui::Tab *GetPlotTab(void) const;
[4]90
[13]91 /*!
92 * \brief Value
93 *
94 * \return output value
95 */
96 float Value(void) const;
[4]97
[13]98protected:
99 /*!
100 * \brief Output matrix
101 *
102 * \return output matrix
103 */
[68]104 core::Matrix *output;
[4]105
[13]106 /*!
107 * \brief Setup GroupBox
108 *
109 * \return a GroupBox available
110 */
111 gui::GroupBox *GetGroupBox(void) const;
[4]112
[13]113private:
114 /*!
115 * \brief Update using provided datas
116 *
117 * Reimplemented from IODevice.
118 *
119 * \param data data from the parent to process
120 */
121 void UpdateFrom(const core::io_data *data){};
[4]122
[13]123 gui::Tab *main_tab;
124 gui::TabWidget *tab;
125 gui::GroupBox *setup_groupbox;
126 gui::Tab *sensor_tab;
127 gui::RangeFinderPlot *plot;
128 gui::Tab *plot_tab;
129};
[4]130} // end namespace sensor
[50]131} // end namespace flair
[4]132#endif // LASERRANGEFINDER_H
Note: See TracBrowser for help on using the repository browser.