Last change
on this file since 255 was 245, checked in by Sanahuja Guillaume, 7 years ago |
added simupressuresensor
|
File size:
1.4 KB
|
Rev | Line | |
---|
[224] | 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 |
|
---|
| 18 | namespace flair {
|
---|
| 19 | namespace core {
|
---|
| 20 | class SharedMem;
|
---|
| 21 | }
|
---|
| 22 | namespace gui {
|
---|
| 23 | class SpinBox;
|
---|
| 24 | }
|
---|
| 25 | }
|
---|
| 26 |
|
---|
| 27 | namespace flair {
|
---|
| 28 | namespace sensor {
|
---|
| 29 | /*! \class SimuUs
|
---|
| 30 | *
|
---|
| 31 | * \brief Class for a simulation UsRangeFinder
|
---|
| 32 | */
|
---|
| 33 | class SimuUs : public core::IODevice {
|
---|
| 34 | public:
|
---|
| 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 |
|
---|
| 53 | protected:
|
---|
| 54 | /*!
|
---|
| 55 | * \brief SharedMem to access datas
|
---|
| 56 | *
|
---|
| 57 | */
|
---|
| 58 | core::SharedMem *shmem;
|
---|
| 59 |
|
---|
| 60 | private:
|
---|
| 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.