Flair
Framework Libre Air
SimulatedCamera.h
Go to the documentation of this file.
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}
13 #ifndef SIMULATEDCAMERA_H
14 #define SIMULATEDCAMERA_H
15 
16 #include <Camera.h>
17 #include <Thread.h>
18 #include <cxcore.h>
19 
20 namespace flair {
21  namespace core {
22  class SharedMem;
23  }
24 }
25 
26 namespace flair {
27 namespace sensor {
32 class SimulatedCamera : public core::Thread, public Camera {
33 public:
48  SimulatedCamera(std::string name,
49  uint16_t width, uint16_t height, uint8_t channels, uint32_t modelId,uint32_t deviceId,
50  uint8_t priority);
51 
52 
58 
59 protected:
65 
66 private:
73  void Run(void);
74 
82  void UpdateFrom(const core::io_data *data){};
83 
84  std::string ShMemName(uint32_t modelId,uint32_t deviceId);
85 
86  size_t buf_size;
87  char* shmemReadBuf;
88 };
89 } // end namespace sensor
90 } // end namespace flair
91 #endif // SIMULATEDCAMERA_H
Abstract class for data types.
Definition: io_data.h:94
Base class for Camera.
Definition: Camera.h:39
namespace of the flair Framework
Definition: Ahrs.h:19
SimulatedCamera(std::string name, uint16_t width, uint16_t height, uint8_t channels, uint32_t modelId, uint32_t deviceId, uint8_t priority)
Constructor.
Class for a simulation camera.
Definition: SimulatedCamera.h:32
core::SharedMem * shmem
SharedMem to access datas.
Definition: SimulatedCamera.h:64
Abstract class for a thread.
Class defining a shared memory.
Definition: SharedMem.h:32
Abstract class for a thread.
Definition: Thread.h:38
Base class for Camera.