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

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

maj for armv5te

File size: 1.5 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 SIMULASER_H
14#define SIMULASER_H
15
16#include <LaserRangeFinder.h>
17#include <Thread.h>
18
19namespace flair {
20namespace core {
21class SharedMem;
22}
23namespace gui {
24class SpinBox;
25}
26}
27
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 *
39 * Construct a SimuUs.
40 *
41 * \param name name
42 * \param modelId Model id
43 * \param deviceId LaserRangeFinder id of the Model
44 * \param priority priority of the Thread
45 */
46 SimuLaser(std::string name,
47 uint32_t modelId,uint32_t deviceId, uint8_t priority);
48
49 /*!
50 * \brief Destructor
51 *
52 */
53 ~SimuLaser();
54
55protected:
56 /*!
57 * \brief SharedMem to access datas
58 *
59 */
60 core::SharedMem *shmem;
61
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){};
71
72 /*!
73 * \brief Run function
74 *
75 * Reimplemented from Thread.
76 *
77 */
78 void Run(void);
79
80 std::string ShMemName(uint32_t modelId,uint32_t deviceId);
81 gui::SpinBox *data_rate;
82};
83} // end namespace sensor
84} // end namespace flair
85#endif // SIMULASER_H
Note: See TracBrowser for help on using the repository browser.