[16] | 1 | /// purpose: Dbite Player Stereo Manager header file
|
---|
| 2 | ///
|
---|
| 3 | /// created @date 2008/01/19 - 21:23
|
---|
| 4 | /// @author Sergio Rodriguez
|
---|
| 5 | /// @version $Id: $
|
---|
| 6 |
|
---|
| 7 | #ifndef DBTPLYSTEREOMANAGER_H
|
---|
| 8 | #define DBTPLYSTEREOMANAGER_H
|
---|
| 9 |
|
---|
| 10 | #include "StdDbtPlayerComponentsConfig.h"
|
---|
[50] | 11 | #include "Pacpus/kernel/ComponentBase.h"
|
---|
| 12 | #include "Pacpus/kernel/ComponentFactory.h"
|
---|
| 13 | #include "Pacpus/DbitePlayer/DbtPlyFileManager.h"
|
---|
| 14 | #include "Pacpus/PacpusTools/ShMem.h"
|
---|
[16] | 15 |
|
---|
| 16 | namespace pacpus {
|
---|
| 17 |
|
---|
| 18 | class STDDBTPLAYERCOMPONENTS_API DbtPlyStereoManager
|
---|
| 19 | : public DbtPlyFileManager
|
---|
| 20 | {
|
---|
| 21 | Q_OBJECT
|
---|
| 22 |
|
---|
| 23 | public:
|
---|
| 24 | DbtPlyStereoManager(QString name);
|
---|
| 25 | ~DbtPlyStereoManager();
|
---|
| 26 |
|
---|
| 27 | virtual COMPONENT_CONFIGURATION configureComponent(XmlComponentConfig config);
|
---|
| 28 | void displayUI();
|
---|
| 29 |
|
---|
| 30 | protected:
|
---|
| 31 | void processData(road_time_t t, road_timerange_t tr, void * buffer);
|
---|
| 32 | virtual void startActivity();
|
---|
| 33 | virtual void stopActivity();
|
---|
| 34 |
|
---|
| 35 | private:
|
---|
| 36 | ShMem * tobeRead; //Buffer flag
|
---|
| 37 |
|
---|
| 38 | ShMem * left0; //left image of Buffer 0
|
---|
| 39 | ShMem * right0; //right image of Buffer 0
|
---|
| 40 | ShMem * timeStamp0; //Timestamp of stereo images in Buffer 0
|
---|
| 41 | ShMem * timeRange0; //Uncertainty of timeStamp Buffer 0
|
---|
| 42 |
|
---|
| 43 | ShMem * left1; //left image of Buffer 1
|
---|
| 44 | ShMem * right1; //right image of Buffer 1
|
---|
| 45 | ShMem * timeStamp1; //Timestamp of stereo images in Buffer 1
|
---|
| 46 | ShMem * timeRange1; //Uncertainty of timeStamp Buffer 1
|
---|
| 47 | //#endif
|
---|
| 48 |
|
---|
| 49 | bool firstTime;
|
---|
| 50 | bool offset;
|
---|
| 51 | bool leftStatus;
|
---|
| 52 | bool rightStatus;
|
---|
| 53 | //image paramaters
|
---|
| 54 | int width_;
|
---|
| 55 | int height_;
|
---|
| 56 | int depth_;
|
---|
| 57 |
|
---|
| 58 | road_time_t tic_;
|
---|
| 59 | void tic();
|
---|
| 60 | void toc(char * text);
|
---|
| 61 | };
|
---|
| 62 |
|
---|
| 63 | } // namespace pacpus
|
---|
| 64 |
|
---|
| 65 | #endif // DBTPLYSTEREOMANAGER_H
|
---|