Main MRPT website > C++ reference for MRPT 1.9.9
gnss_messages_topcon.h
Go to the documentation of this file.
1 /* +------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | http://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2018, Individual contributors, see AUTHORS file |
6  | See: http://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See details in http://www.mrpt.org/License |
8  +------------------------------------------------------------------------+ */
9 #pragma once
10 
11 #include "gnss_messages_common.h"
13 
14 namespace mrpt
15 {
16 namespace obs
17 {
18 namespace gnss
19 {
20 /** GPS datum for TopCon's mmGPS devices: PZS. \sa mrpt::obs::CObservationGPS */
22 {
23  /** Static msg type (member expected by templates) */
24  enum
25  {
27  };
28 
29  /** The measured latitude, in degrees (North:+ , South:-) */
31  /** The measured longitude, in degrees (East:+ , West:-) */
33  /** ellipsoidal height from N-beam [m] perhaps weighted with regular gps */
34  double height_meters;
35  /** ellipsoidal height [m] without N-beam correction */
37  /** position SEP [m] */
38  float PSigma;
39  /** Vertical angle of N-beam */
41  /** ID of the transmitter [1-4], 0 if none. */
43  /** 1: GPS, 2: mmGPS */
45  /** battery level on transmitter */
47  /** battery level on receiver */
49  uint8_t error; //! system error indicator
50 
52  /** Only if hasCartesianPosVel is true */
54  /** Only if hasCartesianPosVel is true */
56 
57  bool hasPosCov;
58  /** Only if hasPosCov is true */
60 
61  bool hasVelCov;
62  /** Only if hasPosCov is true */
64 
65  bool hasStats;
67  stats_GLONASS_sats_used; //<! Only if hasStats is true
68  /** [0,100] %, only in modes other than RTK FIXED. */
70 
72  /** Return the geodetic coords as a mrpt::topography::TGeodeticCoords
73  * structure (requires linking against mrpt-topography)
74  * Call as: getAsStruct<TGeodeticCoords>(); */
75  template <class TGEODETICCOORDS>
76  inline TGEODETICCOORDS getAsStruct() const
77  {
78  return TGEODETICCOORDS(
80  }
81  void dumpToStream(std::ostream& out) const override; // See docs in base
82 
83  protected:
85  mrpt::serialization::CArchive& out) const override;
87 
88  public:
90 };
91 
92 /** TopCon mmGPS devices: SATS, a generic structure for statistics about tracked
93  * satelites and their positions. \sa mrpt::obs::CObservationGPS */
95 {
96  /** Static msg type (member expected by templates) */
97  enum
98  {
100  };
101 
103 
104  /** The list of USI (Universal Sat ID) for the detected sats (See GRIL
105  * Manual, pag 4-31). */
106  std::vector<uint8_t> USIs;
107  /** Elevation (in degrees, 0-90) for each satellite in USIs. */
108  std::vector<int8_t> ELs;
109  /** Azimuth (in degrees, 0-360) for each satellite in USIs. */
110  std::vector<int16_t> AZs;
111 
112  void dumpToStream(std::ostream& out) const override; // See docs in base
113  protected:
115  mrpt::serialization::CArchive& out) const override;
117 };
118 }
119 }
120 } // End of namespaces
mrpt::obs::gnss::Message_TOPCON_SATS::internal_readFromStream
void internal_readFromStream(mrpt::serialization::CArchive &in) override
Save to binary stream.
Definition: gnss_messages_topcon.cpp:134
mrpt::obs::gnss::Message_TOPCON_SATS
TopCon mmGPS devices: SATS, a generic structure for statistics about tracked satelites and their posi...
Definition: gnss_messages_topcon.h:94
mrpt::obs::gnss::Message_TOPCON_PZS::hasPosCov
bool hasPosCov
Definition: gnss_messages_topcon.h:57
CMatrixFixedNumeric.h
mrpt::obs::gnss::TOPCON_SATS
@ TOPCON_SATS
Definition: gnss_messages_type_list.h:40
mrpt::obs::gnss::Message_TOPCON_PZS::Message_TOPCON_PZS
Message_TOPCON_PZS()
Definition: gnss_messages_topcon.cpp:18
mrpt::obs::gnss::Message_TOPCON_PZS::error
uint8_t error
Definition: gnss_messages_topcon.h:49
mrpt::obs::gnss::Message_TOPCON_PZS::TXBattery
uint8_t TXBattery
battery level on transmitter
Definition: gnss_messages_topcon.h:46
mrpt::obs::gnss::Message_TOPCON_PZS::hasCartesianPosVel
bool hasCartesianPosVel
system error indicator
Definition: gnss_messages_topcon.h:51
mrpt::obs::gnss::Message_TOPCON_PZS::vel_covariance
mrpt::math::CMatrixFloat44 vel_covariance
Only if hasPosCov is true.
Definition: gnss_messages_topcon.h:63
mrpt
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Definition: CKalmanFilterCapable.h:30
mrpt::obs::gnss::Message_TOPCON_SATS::msg_type
@ msg_type
Definition: gnss_messages_topcon.h:99
uint8_t
unsigned char uint8_t
Definition: rptypes.h:41
mrpt::obs::gnss::Message_TOPCON_PZS::cartesian_vx
double cartesian_vx
Only if hasCartesianPosVel is true.
Definition: gnss_messages_topcon.h:55
mrpt::serialization::CArchive
Virtual base class for "archives": classes abstracting I/O streams.
Definition: CArchive.h:48
mrpt::obs::gnss::Message_TOPCON_PZS::msg_type
@ msg_type
Definition: gnss_messages_topcon.h:26
mrpt::obs::gnss::Message_TOPCON_PZS::stats_rtk_fix_progress
uint8_t stats_rtk_fix_progress
[0,100] %, only in modes other than RTK FIXED.
Definition: gnss_messages_topcon.h:69
mrpt::obs::gnss::Message_TOPCON_PZS::cartesian_vy
double cartesian_vy
Definition: gnss_messages_topcon.h:55
mrpt::obs::gnss::Message_TOPCON_PZS::cartesian_x
double cartesian_x
Only if hasCartesianPosVel is true.
Definition: gnss_messages_topcon.h:53
mrpt::obs::gnss::Message_TOPCON_PZS::stats_GLONASS_sats_used
uint8_t stats_GLONASS_sats_used
Definition: gnss_messages_topcon.h:67
mrpt::obs::gnss::Message_TOPCON_PZS::dumpToStream
void dumpToStream(std::ostream &out) const override
Dumps the contents of the observation in a human-readable form to a given output stream.
Definition: gnss_messages_topcon.cpp:48
mrpt::obs::gnss::Message_TOPCON_PZS::angle_transmitter
double angle_transmitter
Vertical angle of N-beam.
Definition: gnss_messages_topcon.h:40
mrpt::obs::gnss::Message_TOPCON_SATS::internal_writeToStream
void internal_writeToStream(mrpt::serialization::CArchive &out) const override
Save to binary stream.
Definition: gnss_messages_topcon.cpp:128
mrpt::obs::gnss::Message_TOPCON_PZS::internal_readFromStream
void internal_readFromStream(mrpt::serialization::CArchive &in) override
Save to binary stream.
Definition: gnss_messages_topcon.cpp:101
mrpt::obs::gnss::Message_TOPCON_PZS
GPS datum for TopCon's mmGPS devices: PZS.
Definition: gnss_messages_topcon.h:21
mrpt::obs::gnss::Message_TOPCON_PZS::hasVelCov
bool hasVelCov
Definition: gnss_messages_topcon.h:61
mrpt::obs::gnss::Message_TOPCON_SATS::ELs
std::vector< int8_t > ELs
Elevation (in degrees, 0-90) for each satellite in USIs.
Definition: gnss_messages_topcon.h:108
mrpt::obs::gnss::Message_TOPCON_PZS::nId
uint8_t nId
ID of the transmitter [1-4], 0 if none.
Definition: gnss_messages_topcon.h:42
mrpt::obs::gnss::Message_TOPCON_PZS::getAsStruct
TGEODETICCOORDS getAsStruct() const
Return the geodetic coords as a mrpt::topography::TGeodeticCoords structure (requires linking against...
Definition: gnss_messages_topcon.h:76
mrpt::obs::gnss::Message_TOPCON_PZS::latitude_degrees
double latitude_degrees
The measured latitude, in degrees (North:+ , South:-)
Definition: gnss_messages_topcon.h:30
mrpt::obs::gnss::Message_TOPCON_PZS::longitude_degrees
double longitude_degrees
The measured longitude, in degrees (East:+ , West:-)
Definition: gnss_messages_topcon.h:32
mrpt::math::CMatrixFixedNumeric
A numeric matrix of compile-time fixed size.
Definition: CMatrixFixedNumeric.h:40
mrpt::obs::gnss::Message_TOPCON_PZS::RTK_height_meters
double RTK_height_meters
ellipsoidal height [m] without N-beam correction
Definition: gnss_messages_topcon.h:36
mrpt::obs::gnss::Message_TOPCON_PZS::cartesian_y
double cartesian_y
Definition: gnss_messages_topcon.h:53
mrpt::obs::gnss::Message_TOPCON_PZS::stats_GPS_sats_used
uint8_t stats_GPS_sats_used
Definition: gnss_messages_topcon.h:66
mrpt::obs::gnss::Message_TOPCON_PZS::cartesian_vz
double cartesian_vz
Definition: gnss_messages_topcon.h:55
mrpt::obs::gnss::Message_TOPCON_PZS::internal_writeToStream
void internal_writeToStream(mrpt::serialization::CArchive &out) const override
Save to binary stream.
Definition: gnss_messages_topcon.cpp:89
gnss_messages_common.h
mrpt::obs::gnss::Message_TOPCON_PZS::cartesian_z
double cartesian_z
Definition: gnss_messages_topcon.h:53
mrpt::obs::gnss::Message_TOPCON_PZS::RXBattery
uint8_t RXBattery
battery level on receiver
Definition: gnss_messages_topcon.h:48
MRPT_MAKE_ALIGNED_OPERATOR_NEW
#define MRPT_MAKE_ALIGNED_OPERATOR_NEW
Put this macro inside any class with members that require {16,32,64}-byte memory alignment (e....
Definition: aligned_allocator.h:90
mrpt::obs::gnss::Message_TOPCON_SATS::USIs
std::vector< uint8_t > USIs
The list of USI (Universal Sat ID) for the detected sats (See GRIL Manual, pag 4-31).
Definition: gnss_messages_topcon.h:106
mrpt::obs::gnss::Message_TOPCON_PZS::hasStats
bool hasStats
Definition: gnss_messages_topcon.h:65
in
GLuint in
Definition: glext.h:7274
mrpt::obs::gnss::Message_TOPCON_PZS::PSigma
float PSigma
position SEP [m]
Definition: gnss_messages_topcon.h:38
mrpt::obs::gnss::gnss_message
Pure virtual base for all message types.
Definition: gnss_messages_common.h:26
mrpt::obs::gnss::Message_TOPCON_PZS::pos_covariance
mrpt::math::CMatrixFloat44 pos_covariance
Only if hasPosCov is true.
Definition: gnss_messages_topcon.h:59
mrpt::obs::gnss::Message_TOPCON_PZS::height_meters
double height_meters
ellipsoidal height from N-beam [m] perhaps weighted with regular gps
Definition: gnss_messages_topcon.h:34
mrpt::obs::gnss::Message_TOPCON_SATS::dumpToStream
void dumpToStream(std::ostream &out) const override
Dumps the contents of the observation in a human-readable form to a given output stream.
Definition: gnss_messages_topcon.cpp:115
mrpt::obs::gnss::TOPCON_PZS
@ TOPCON_PZS
Definition: gnss_messages_type_list.h:39
mrpt::obs::gnss::Message_TOPCON_PZS::Fix
uint8_t Fix
1: GPS, 2: mmGPS
Definition: gnss_messages_topcon.h:44
mrpt::obs::gnss::Message_TOPCON_SATS::Message_TOPCON_SATS
Message_TOPCON_SATS()
Definition: gnss_messages_topcon.cpp:114
mrpt::obs::gnss::Message_TOPCON_SATS::AZs
std::vector< int16_t > AZs
Azimuth (in degrees, 0-360) for each satellite in USIs.
Definition: gnss_messages_topcon.h:110



Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST