source: pacpussensors/trunk/StdDbtPlayerComponents/DbtPlyStereoManager.h@ 16

Last change on this file since 16 was 16, checked in by DHERBOMEZ Gérald, 11 years ago

add standards replay components for some sensors that has to be used with DBITEPlayer application: StdDbtPlayerComponents

File size: 1.7 KB
Line 
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"
11#include "kernel/ComponentBase.h"
12#include "kernel/ComponentFactory.h"
13#include "DbitePlayer/DbtPlyFileManager.h"
14#include "PacpusTools/ShMem.h"
15
16namespace pacpus {
17
18class STDDBTPLAYERCOMPONENTS_API DbtPlyStereoManager
19 : public DbtPlyFileManager
20{
21 Q_OBJECT
22
23public:
24 DbtPlyStereoManager(QString name);
25 ~DbtPlyStereoManager();
26
27 virtual COMPONENT_CONFIGURATION configureComponent(XmlComponentConfig config);
28 void displayUI();
29
30protected:
31 void processData(road_time_t t, road_timerange_t tr, void * buffer);
32 virtual void startActivity();
33 virtual void stopActivity();
34
35private:
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
Note: See TracBrowser for help on using the repository browser.