TnEHProvider
tn_mm_feedback.h
Go to the documentation of this file.
1 
9 #ifndef __TN_MM_FEEDBACK_H__
10 #define __TN_MM_FEEDBACK_H__
11 
12 #include "tn_export.h"
14 
15 namespace tn
16 {
17 namespace ehp
18 {
23 {
24 public:
25  virtual ~MMFeedback()
26  {
27  }
28 
29 public:
35  virtual uint64_t getDrTimeStamp() const = 0;
42  virtual double getLatitude() const = 0;
43 
50  virtual double getLongtitude() const = 0;
51 
58  virtual uint16_t getMMHeading() const = 0;
59 
65  virtual float getMMSpeed() const = 0;
66 
72  virtual double getMMBestPosUnc() const = 0;
73 
79  virtual double getMMWorstPosUnc() const = 0;
80 
86  virtual double getMMAnglePosUnc() const = 0;
87 
93  virtual double getMMHdgUnc() const = 0;
94 
100  virtual bool IsRightHandTraffic() const = 0;
101 
107  virtual bool IsOneWayEdge() const = 0;
108 
114  virtual bool IsInServiceArea() const = 0;
115 
121  virtual bool IsInParkingLot() const = 0;
122 
128  virtual bool IsTunnel() const = 0;
129 
135  virtual bool IsOffRoad() const = 0;
136 
142  virtual bool IsFerry() const = 0;
143 
150  virtual float getAltitude() const = 0;
151 
157  virtual uint16_t getMMConfidence() const = 0;
158 
164  virtual uint16_t getMMProbability() const = 0; // MM probability range:0 to 30
165 
171  virtual uint16_t getRoadCandidates() const = 0;
172 
178  virtual int getNumberOfLanes() const = 0;
179 };
180 typedef std::shared_ptr<MMFeedback> MMFeedbackPtr;
181 } // namespace ehp
182 } // namespace tn
183 
184 #endif //__TN_MM_FEEDBACK_H__
tn::ehp::MMFeedback::getLatitude
virtual double getLatitude() const =0
latitude of the location of map matching feedback in WGS84.
tn::ehp::MMFeedback
map matching feedback to DR
Definition: tn_mm_feedback.h:23
tn::ehp::MMFeedback::~MMFeedback
virtual ~MMFeedback()
Definition: tn_mm_feedback.h:25
tn::ehp::MMFeedbackPtr
std::shared_ptr< MMFeedback > MMFeedbackPtr
Definition: tn_mm_feedback.h:180
tn::ehp::MMFeedback::IsOneWayEdge
virtual bool IsOneWayEdge() const =0
Is one way edge.
tn::ehp::MMFeedback::getMMAnglePosUnc
virtual double getMMAnglePosUnc() const =0
get angle of best axis relative to north, radians
tn::ehp::MMFeedback::getMMConfidence
virtual uint16_t getMMConfidence() const =0
get the MM confidence level. range: 0 to 6. 0 is the highest confidence, 6 is the lowest confidence.
tn::ehp::MMFeedback::getMMBestPosUnc
virtual double getMMBestPosUnc() const =0
get best axis position error uncertainty, 1 sigma m
tn::ehp::MMFeedback::getMMHeading
virtual uint16_t getMMHeading() const =0
get the heading of map matching feedback, in unit of degree, North is zero; clockwise; 0-359,...
tn_export.h
definitions for export and import Copyright (c) 2021 Telenav, Inc All rights reserved This program is...
tn_vehicle_location_info.h
tn::ehp::MMFeedback::getDrTimeStamp
virtual uint64_t getDrTimeStamp() const =0
get the time stamp of the raw GPS data. this is CPU time stamp in milliseconds
tn::ehp::MMFeedback::getMMProbability
virtual uint16_t getMMProbability() const =0
get the MM probability level. range: 0 to 30. 30 is the highest probability, 0 is the lowest probabil...
tn::ehp::MMFeedback::IsInServiceArea
virtual bool IsInServiceArea() const =0
whether vehicle is on the roads inside service area
tn
Definition: tn_adas_message.h:15
tn::ehp::MMFeedback::getLongtitude
virtual double getLongtitude() const =0
longtitude of the location of map matching feedback in WGS84.
tn::ehp::MMFeedback::IsInParkingLot
virtual bool IsInParkingLot() const =0
whether vehicle is on the roads inside parking lot
tn::ehp::MMFeedback::IsTunnel
virtual bool IsTunnel() const =0
whether car in tunnel
tn::ehp::MMFeedback::getMMWorstPosUnc
virtual double getMMWorstPosUnc() const =0
get Worst axis position error uncertainty, 1 sigma m
tn::ehp::MMFeedback::IsFerry
virtual bool IsFerry() const =0
whether car on ferry.
TN_EHP_API_DECL
#define TN_EHP_API_DECL
Definition: tn_export.h:46
tn::ehp::MMFeedback::getAltitude
virtual float getAltitude() const =0
get the altitude of the map matched position. less than -1000 meters will be considered as invalid,...
tn::ehp::MMFeedback::getMMHdgUnc
virtual double getMMHdgUnc() const =0
get heading error uncertainty, 1 sigma radians
tn::ehp::MMFeedback::getRoadCandidates
virtual uint16_t getRoadCandidates() const =0
get the number of candidates
tn::ehp::MMFeedback::getNumberOfLanes
virtual int getNumberOfLanes() const =0
get number of lanes in the traffic direction user is driving, 0 if unsure
tn::ehp::MMFeedback::getMMSpeed
virtual float getMMSpeed() const =0
get the speed of map matching feedback, in unit of m/s
tn::ehp::MMFeedback::IsOffRoad
virtual bool IsOffRoad() const =0
whether car off road
tn::ehp::MMFeedback::IsRightHandTraffic
virtual bool IsRightHandTraffic() const =0
Is right hand traffic.