source: flair-src/trunk/lib/FlairSimulator/src/SimuUs.h@ 299

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

added simupressuresensor

File size: 1.4 KB
Line 
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}
5/*!
6 * \file SimuUs.h
7 * \brief Class for a simulation UsRangeFinder
8 * \author Guillaume Sanahuja, Copyright Heudiasyc UMR UTC/CNRS 7253
9 * \date 2014/02/07
10 * \version 4.0
11 */
12
13#ifndef SIMUUS_H
14#define SIMUUS_H
15
16#include <IODevice.h>
17
18namespace flair {
19namespace core {
20class SharedMem;
21}
22namespace gui {
23class SpinBox;
24}
25}
26
27namespace flair {
28namespace sensor {
29/*! \class SimuUs
30*
31* \brief Class for a simulation UsRangeFinder
32*/
33class SimuUs : public core::IODevice {
34public:
35 /*!
36 * \brief Constructor
37 *
38 * Construct a SimuUs
39 *
40 * \param parent parent
41 * \param name name
42 * \param modelId Model id
43 * \param deviceId UsRangeFinder id of the Model
44 */
45 SimuUs(const core::IODevice *parent, std::string name, uint32_t modelId,uint32_t deviceId);
46
47 /*!
48 * \brief Destructor
49 *
50 */
51 ~SimuUs();
52
53protected:
54 /*!
55 * \brief SharedMem to access datas
56 *
57 */
58 core::SharedMem *shmem;
59
60private:
61 /*!
62 * \brief Update using provided datas
63 *
64 * Reimplemented from IODevice.
65 *
66 * \param data data from the parent to process
67 */
68 void UpdateFrom(const core::io_data *data){};
69
70 std::string ShMemName(uint32_t modelId,uint32_t deviceId);
71 gui::SpinBox *data_rate;
72};
73} // end namespace sensor
74} // end namespace flair
75#endif // SIMUUS_H
Note: See TracBrowser for help on using the repository browser.