Last change
on this file since 97 was 68, checked in by Sanahuja Guillaume, 7 years ago |
maj for armv5te
|
File size:
1.4 KB
|
Rev | Line | |
---|
[68] | 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 SIMULASER_H
|
---|
| 14 | #define SIMULASER_H
|
---|
| 15 |
|
---|
| 16 | #include <LaserRangeFinder.h>
|
---|
| 17 | #include <Thread.h>
|
---|
| 18 |
|
---|
| 19 | namespace flair {
|
---|
| 20 | namespace core {
|
---|
| 21 | class SharedMem;
|
---|
| 22 | }
|
---|
| 23 | }
|
---|
| 24 |
|
---|
| 25 | namespace flair {
|
---|
| 26 | namespace sensor {
|
---|
| 27 | /*! \class SimuUs
|
---|
| 28 | *
|
---|
| 29 | * \brief Class for a simulation UsRangeFinder
|
---|
| 30 | */
|
---|
| 31 | class SimuLaser : public core::IODevice {
|
---|
| 32 | public:
|
---|
| 33 |
|
---|
| 34 | /*!
|
---|
| 35 | * \brief Constructor
|
---|
| 36 | *
|
---|
| 37 | * Construct a SimuUs.
|
---|
| 38 | *
|
---|
| 39 | * \param parent parent
|
---|
| 40 | * \param name name
|
---|
| 41 | * \param modelId Model id
|
---|
| 42 | * \param deviceId LaserRangeFinder id of the Model
|
---|
| 43 | */
|
---|
| 44 | SimuLaser(const core::IODevice *parent, std::string name, uint32_t modelId,uint32_t deviceId);
|
---|
| 45 |
|
---|
| 46 | /*!
|
---|
| 47 | * \brief Destructor
|
---|
| 48 | *
|
---|
| 49 | */
|
---|
| 50 | ~SimuLaser();
|
---|
| 51 |
|
---|
| 52 | protected:
|
---|
| 53 | /*!
|
---|
| 54 | * \brief SharedMem to access datas
|
---|
| 55 | *
|
---|
| 56 | */
|
---|
| 57 | core::SharedMem *shmem;
|
---|
| 58 |
|
---|
| 59 | private:
|
---|
| 60 | /*!
|
---|
| 61 | * \brief Update using provided datas
|
---|
| 62 | *
|
---|
| 63 | * Reimplemented from IODevice.
|
---|
| 64 | *
|
---|
| 65 | * \param data data from the parent to process
|
---|
| 66 | */
|
---|
| 67 | void UpdateFrom(const core::io_data *data){};
|
---|
| 68 |
|
---|
| 69 | std::string ShMemName(uint32_t modelId,uint32_t deviceId);
|
---|
| 70 | };
|
---|
| 71 | } // end namespace sensor
|
---|
| 72 | } // end namespace flair
|
---|
| 73 | #endif // SIMULASER_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.