source: pacpusframework/branches/2.0-beta1/include/PacpusCityVIP/CPT/dbt/DbtPlyCPTComponent.h@ 89

Last change on this file since 89 was 89, checked in by morasjul, 11 years ago

PACPUS 2.0 Beta deployed in new branch

Major changes:
-Add communication interface between components
-Add examples for communications interface (TestComponents)
-Move to Qt5 support

  • Property svn:executable set to *
File size: 2.6 KB
Line 
1/*********************************************************************
2// created: 20011/07/06 - 16:51
3// filename: DbtPlyCPTComponent.h
4//
5// author: Sergio Rodriguez
6// Copyright Heudiasyc UMR UTC/CNRS 6599
7//
8// version: $Id: $
9//
10// purpose:
11*********************************************************************/
12
13#ifndef DBTPLYCPTCOMPONENT_H
14#define DBTPLYCPTCOMPONENT_H
15
16#include "DbitePlayer/DbtPlyFileManager.h"
17#include "extlib/NMEA0183/nmea0183.h"
18
19//#include <boost/scoped_ptr.hpp>
20//#include <QScopedPointer>
21
22#include "structure/structure_gps.h"
23#include "structure/genericStructures.h"
24
25// Export macro for DbtPlyCPTComponent DLL for Windows only
26#ifdef WIN32
27# ifdef DBTPLYCPTCOMPONENT_EXPORTS
28 // make DLL
29# define DBTPLYCPTCOMPONENT_API __declspec(dllexport)
30# else
31 // use DLL
32# define DBTPLYCPTCOMPONENT_API __declspec(dllimport)
33# endif
34#else
35 // On other platforms, simply ignore this
36# define DBTPLYCPTCOMPONENT_API
37#endif
38
39//#include "../PoseViewer/PoseViewer.h"
40
41namespace pacpus {
42
43//class PoseViewer;
44class ShMem;
45
46//struct Pose;
47
48struct Stream8Position
49{
50 int32_t dataPos;
51 int32_t length;
52};
53
54#define UNKNOWN_NMEA_FRAME -1
55
56class DBTPLYCPTCOMPONENT_API DbtPlyCPTComponent
57 : public DbtPlyFileManager
58{
59 Q_OBJECT
60
61public:
62 DbtPlyCPTComponent(QString name);
63 ~DbtPlyCPTComponent();
64
65protected:
66 void processData(road_time_t t, road_timerange_t tr , void * buf);
67 void displayUI();
68
69 virtual ComponentBase::COMPONENT_CONFIGURATION configureComponent(XmlComponentConfig config);
70 virtual void startActivity();
71 virtual void stopActivity();
72
73 void addInputOutput();
74
75//Q_SIGNALS:
76 //void newPoseAvailable(Pose pose);
77
78private:
79 //boost::scoped_ptr<PoseViewer> mPoseViewer;
80 //QScopedPointer<PoseViewer> mPoseViewer;
81
82 //ShMems
83 ShMem * mShMem;
84 //ShMem data variables
85 char * allFramesBuffer;
86
87 QString mDataFilename;
88
89 //NMEA to do
90 NMEA0183 nmea0183_;
91
92 trame_gga_dbl ggaFrame_;
93 trame_gsa gsaFrame_;
94 trame_gst gstFrame_;
95 trame_gsv gsvFrame_;
96 trame_hdt hdtFrame_;
97 trame_rmc rmcFrame_;
98 trame_rot rotFrame_;
99 trame_vtg vtgFrame_;
100 trame_zda zdaFrame_;
101
102 //SPAN done
103 TimestampedBestgpsposaFrame bestgpsposaFrame_;
104 TimestampedInspvaaFrame inspvaFrame_;
105 TimestampedInscovFrame inscovFrame_;
106 TimestampedRawimusaFrame rawimuFrame_;
107
108 Pose3D genericEnuPose_;
109};
110
111} // namespace pacpus
112
113#endif // DBTPLYCPTCOMPONENT_H
Note: See TracBrowser for help on using the repository browser.