1 | // *********************************************************************
|
---|
2 | // created: 2014-02-11 - 16:51
|
---|
3 | // filename: DbtPlySickLDMRSManager.h
|
---|
4 | //
|
---|
5 | // author: Cyril Fougeray
|
---|
6 | // Copyright Heudiasyc UMR UTC/CNRS 6599
|
---|
7 | //
|
---|
8 | // version: $Id: $
|
---|
9 | //
|
---|
10 | // purpose:
|
---|
11 | // *********************************************************************
|
---|
12 |
|
---|
13 | #ifndef DBTPLYSICKLDMRSMANAGER_H
|
---|
14 | #define DBTPLYSICKLDMRSMANAGER_H
|
---|
15 |
|
---|
16 | #include <fstream>
|
---|
17 |
|
---|
18 | #include "Pacpus/DbitePlayer/DbtPlyFileManager.h"
|
---|
19 | #include <Pacpus/kernel/InputOutputInterface.h>
|
---|
20 | #include "../Sick/SickLDMRSData.h"
|
---|
21 |
|
---|
22 | // Export macro for DbtPlySick DLL for Windows only
|
---|
23 | #ifdef WIN32
|
---|
24 | # ifdef DBTPLYSICK_EXPORTS
|
---|
25 | // make DLL
|
---|
26 | # define DBTPLYSICK_API __declspec(dllexport)
|
---|
27 | # else
|
---|
28 | // use DLL
|
---|
29 | # define DBTPLYSICK_API __declspec(dllimport)
|
---|
30 | # endif
|
---|
31 | #else
|
---|
32 | // On other platforms, simply ignore this
|
---|
33 | # define DBTPLYSICK_API
|
---|
34 | #endif
|
---|
35 |
|
---|
36 | namespace pacpus {
|
---|
37 |
|
---|
38 | class ShMem;
|
---|
39 |
|
---|
40 | class DBTPLYSICK_API DbtPlySickLDMRSManager
|
---|
41 | : public DbtPlyFileManager
|
---|
42 | {
|
---|
43 | public:
|
---|
44 | DbtPlySickLDMRSManager(QString name);
|
---|
45 | ~DbtPlySickLDMRSManager();
|
---|
46 |
|
---|
47 | virtual void startActivity();
|
---|
48 | virtual void stopActivity();
|
---|
49 | virtual ComponentBase::COMPONENT_CONFIGURATION configureComponent(XmlComponentConfig config);
|
---|
50 |
|
---|
51 | virtual void addInputs();
|
---|
52 | virtual void addOutputs();
|
---|
53 |
|
---|
54 | protected:
|
---|
55 | void processData(road_time_t t, road_timerange_t tr, void * buffer);
|
---|
56 | void displayUI();
|
---|
57 |
|
---|
58 | private:
|
---|
59 | SickLDMRS_dbt mSickDbt;
|
---|
60 |
|
---|
61 | // .dbt file ("sickldmrs_0.dbt")
|
---|
62 | std::ifstream mDataFile;
|
---|
63 | // .utc data file ("sickldmrs_0_data.utc")
|
---|
64 | QString mDataFilename;
|
---|
65 |
|
---|
66 | // local copy of each scan
|
---|
67 | SickLDMRSScan mScan;
|
---|
68 |
|
---|
69 | // Declaration of outputs
|
---|
70 | OutputInterface<SickLDMRSScan, DbtPlySickLDMRSManager>* outScan;
|
---|
71 | };
|
---|
72 |
|
---|
73 | } // namespace pacpus
|
---|
74 |
|
---|
75 | #endif
|
---|