Rev | Line | |
---|
[224] | 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 SimuCamera.h
|
---|
| 7 | * \brief Class for a simulation camera
|
---|
| 8 | * \author Guillaume Sanahuja, Copyright Heudiasyc UMR UTC/CNRS 7253
|
---|
| 9 | * \date 2014/03/06
|
---|
| 10 | * \version 4.0
|
---|
| 11 | */
|
---|
| 12 |
|
---|
| 13 | #ifndef SIMUCAMERA_H
|
---|
| 14 | #define SIMUCAMERA_H
|
---|
| 15 |
|
---|
| 16 | #include <IODevice.h>
|
---|
| 17 |
|
---|
| 18 | namespace flair {
|
---|
| 19 | namespace core {
|
---|
| 20 | class SharedMem;
|
---|
| 21 | }
|
---|
| 22 | }
|
---|
| 23 |
|
---|
| 24 | namespace flair {
|
---|
| 25 | namespace sensor {
|
---|
| 26 | /*! \class SimuCamera
|
---|
| 27 | *
|
---|
| 28 | * \brief Class for a simulation camera
|
---|
| 29 | */
|
---|
| 30 | class SimuCamera : public core::IODevice {
|
---|
| 31 | public:
|
---|
| 32 |
|
---|
| 33 | /*!
|
---|
| 34 | * \brief Constructor
|
---|
| 35 | *
|
---|
| 36 | * Construct a SimuCamera.
|
---|
| 37 | *
|
---|
| 38 | * \param parent parent
|
---|
| 39 | * \param name name
|
---|
| 40 | * \param width width
|
---|
| 41 | * \param height height
|
---|
| 42 | * \param channels number of channels
|
---|
| 43 | * \param modelId Model id
|
---|
| 44 | * \param deviceId Camera id of the Model
|
---|
| 45 | */
|
---|
| 46 | SimuCamera(const core::IODevice *parent, std::string name, uint16_t width,
|
---|
| 47 | uint16_t height, uint8_t channels, uint32_t modelId,uint32_t deviceId);
|
---|
| 48 |
|
---|
| 49 | /*!
|
---|
| 50 | * \brief Destructor
|
---|
| 51 | *
|
---|
| 52 | */
|
---|
| 53 | ~SimuCamera();
|
---|
| 54 |
|
---|
| 55 | protected:
|
---|
| 56 | /*!
|
---|
| 57 | * \brief SharedMem to access datas
|
---|
| 58 | *
|
---|
| 59 | */
|
---|
| 60 | core::SharedMem *shmem;
|
---|
| 61 |
|
---|
| 62 | private:
|
---|
| 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 | std::string ShMemName(uint32_t modelId,uint32_t deviceId);
|
---|
| 73 |
|
---|
| 74 | };
|
---|
| 75 | } // end namespace sensor
|
---|
| 76 | } // end namespace flair
|
---|
| 77 | #endif // SIMUCAMERA_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.