source: flair-dev/trunk/include/FlairSimulator/SimuLaser.h @ 68

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

maj for armv5te

File size: 1.4 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}
23}
24
25namespace flair {
26namespace sensor {
27/*! \class SimuUs
28*
29* \brief Class for a simulation UsRangeFinder
30*/
31class SimuLaser : public core::IODevice {
32public:
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
52protected:
53  /*!
54  * \brief SharedMem to access datas
55  *
56  */
57  core::SharedMem *shmem;
58
59private:
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.