source: flair-dev/trunk/include/FlairSensorActuator/SimuLaser.h @ 76

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

maj for armv5te

File size: 1.5 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 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
[13]19namespace flair {
20namespace core {
21class SharedMem;
[4]22}
[13]23namespace gui {
24class SpinBox;
25}
26}
[4]27
[13]28namespace flair {
29namespace sensor {
30/*! \class SimuUs
31*
32* \brief Class for a simulation UsRangeFinder
33*/
34class SimuLaser : public core::Thread, public LaserRangeFinder {
35public:
36  /*!
37  * \brief Constructor
38  *
[68]39  * Construct a SimuUs.
[13]40  *
41  * \param name name
[50]42  * \param modelId Model id
43  * \param deviceId LaserRangeFinder id of the Model
[13]44  * \param priority priority of the Thread
45  */
[50]46  SimuLaser(std::string name,
47            uint32_t modelId,uint32_t deviceId, uint8_t priority);
[4]48
[13]49  /*!
50  * \brief Destructor
51  *
52  */
53  ~SimuLaser();
[4]54
[13]55protected:
56  /*!
57  * \brief SharedMem to access datas
58  *
59  */
60  core::SharedMem *shmem;
[4]61
[13]62private:
63  /*!
64  * \brief Update using provided datas
65  *
66  * Reimplemented from IODevice.
67  *
68  * \param data data from the parent to process
69  */
70  void UpdateFrom(const core::io_data *data){};
[4]71
[13]72  /*!
73  * \brief Run function
74  *
75  * Reimplemented from Thread.
76  *
77  */
78  void Run(void);
[50]79 
80  std::string ShMemName(uint32_t modelId,uint32_t deviceId);
[13]81  gui::SpinBox *data_rate;
82};
[4]83} // end namespace sensor
84} // end namespace flair
85#endif // SIMULASER_H
Note: See TracBrowser for help on using the repository browser.