Last change
on this file since 463 was 286, checked in by Sanahuja Guillaume, 6 years ago |
draw vrpn axis in simulator
|
File size:
1.6 KB
|
Rev | Line | |
---|
[3] | 1 | // %flair:license{
|
---|
[15] | 2 | // This file is part of the Flair framework distributed under the
|
---|
| 3 | // CECILL-C License, Version 1.0.
|
---|
[3] | 4 | // %flair:license}
|
---|
| 5 | /*!
|
---|
[286] | 6 | * \file SimulatedUs.h
|
---|
[3] | 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 |
|
---|
[286] | 13 | #ifndef SIMULATEDUS_H
|
---|
| 14 | #define SIMULATEDUS_H
|
---|
[3] | 15 |
|
---|
| 16 | #include <UsRangeFinder.h>
|
---|
| 17 | #include <Thread.h>
|
---|
| 18 |
|
---|
[15] | 19 | namespace flair {
|
---|
| 20 | namespace core {
|
---|
| 21 | class SharedMem;
|
---|
[3] | 22 | }
|
---|
[15] | 23 | namespace gui {
|
---|
| 24 | class SpinBox;
|
---|
| 25 | }
|
---|
| 26 | }
|
---|
[3] | 27 |
|
---|
[15] | 28 | namespace flair {
|
---|
| 29 | namespace sensor {
|
---|
[286] | 30 | /*! \class SimulatedUs
|
---|
[15] | 31 | *
|
---|
| 32 | * \brief Class for a simulation UsRangeFinder
|
---|
| 33 | */
|
---|
[286] | 34 | class SimulatedUs : public core::Thread, public UsRangeFinder {
|
---|
[15] | 35 | public:
|
---|
| 36 | /*!
|
---|
| 37 | * \brief Constructor
|
---|
| 38 | *
|
---|
[286] | 39 | * Construct a SimulatedUs.
|
---|
[137] | 40 | * It will be child of the FrameworkManager.
|
---|
[15] | 41 | *
|
---|
| 42 | * \param name name
|
---|
[158] | 43 | * \param modelId Model id
|
---|
| 44 | * \param deviceId UsRangeFinder id of the Model
|
---|
[15] | 45 | * \param priority priority of the Thread
|
---|
| 46 | */
|
---|
[286] | 47 | SimulatedUs(std::string name,
|
---|
[158] | 48 | uint32_t modelId,uint32_t deviceId, uint8_t priority);
|
---|
[3] | 49 |
|
---|
[15] | 50 | /*!
|
---|
| 51 | * \brief Destructor
|
---|
| 52 | *
|
---|
| 53 | */
|
---|
[286] | 54 | ~SimulatedUs();
|
---|
[3] | 55 |
|
---|
[15] | 56 | protected:
|
---|
| 57 | /*!
|
---|
| 58 | * \brief SharedMem to access datas
|
---|
| 59 | *
|
---|
| 60 | */
|
---|
| 61 | core::SharedMem *shmem;
|
---|
[3] | 62 |
|
---|
[15] | 63 | private:
|
---|
| 64 | /*!
|
---|
| 65 | * \brief Update using provided datas
|
---|
| 66 | *
|
---|
| 67 | * Reimplemented from IODevice.
|
---|
| 68 | *
|
---|
| 69 | * \param data data from the parent to process
|
---|
| 70 | */
|
---|
| 71 | void UpdateFrom(const core::io_data *data){};
|
---|
[3] | 72 |
|
---|
[15] | 73 | /*!
|
---|
| 74 | * \brief Run function
|
---|
| 75 | *
|
---|
| 76 | * Reimplemented from Thread.
|
---|
| 77 | *
|
---|
| 78 | */
|
---|
| 79 | void Run(void);
|
---|
[158] | 80 |
|
---|
| 81 | std::string ShMemName(uint32_t modelId,uint32_t deviceId);
|
---|
[15] | 82 | gui::SpinBox *data_rate;
|
---|
| 83 | };
|
---|
[3] | 84 | } // end namespace sensor
|
---|
| 85 | } // end namespace flair
|
---|
[286] | 86 | #endif // SIMULATEDUS_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.