Main MRPT website > C++ reference for MRPT 1.4.0
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-2016, 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 namespace obs {
16 namespace gnss {
17 
18 /** GPS datum for TopCon's mmGPS devices: PZS. \sa mrpt::obs::CObservationGPS */
20 {
21  static const gnss_message_type_t msg_type = TOPCON_PZS; //!< Static msg type (member expected by templates)
22 
23  double latitude_degrees; //!< The measured latitude, in degrees (North:+ , South:-)
24  double longitude_degrees; //!< The measured longitude, in degrees (East:+ , West:-)
25  double height_meters; //!< ellipsoidal height from N-beam [m] perhaps weighted with regular gps
26  double RTK_height_meters; //!< ellipsoidal height [m] without N-beam correction
27  float PSigma; //!< position SEP [m]
28  double angle_transmitter; //!< Vertical angle of N-beam
29  uint8_t nId; //!< ID of the transmitter [1-4], 0 if none.
30  uint8_t Fix; //!< 1: GPS, 2: mmGPS
31  uint8_t TXBattery; //!< battery level on transmitter
32  uint8_t RXBattery; //!< battery level on receiver
33  uint8_t error; //! system error indicator
34 
36  double cartesian_x,cartesian_y,cartesian_z; //!< Only if hasCartesianPosVel is true
37  double cartesian_vx,cartesian_vy,cartesian_vz; //!< Only if hasCartesianPosVel is true
38 
39  bool hasPosCov;
40  mrpt::math::CMatrixFloat44 pos_covariance; //!< Only if hasPosCov is true
41 
42  bool hasVelCov;
43  mrpt::math::CMatrixFloat44 vel_covariance; //!< Only if hasPosCov is true
44 
45  bool hasStats;
46  uint8_t stats_GPS_sats_used, stats_GLONASS_sats_used; //<! Only if hasStats is true
47  uint8_t stats_rtk_fix_progress; //!< [0,100] %, only in modes other than RTK FIXED.
48 
50  /** Return the geodetic coords as a mrpt::topography::TGeodeticCoords structure (requires linking against mrpt-topography)
51  * Call as: getAsStruct<TGeodeticCoords>(); */
52  template <class TGEODETICCOORDS>
53  inline TGEODETICCOORDS getAsStruct() const {
54  return TGEODETICCOORDS(latitude_degrees,longitude_degrees,height_meters);
55  }
56  void dumpToStream( mrpt::utils::CStream &out ) const MRPT_OVERRIDE; // See docs in base
57 protected:
58  void internal_writeToStream(mrpt::utils::CStream &out) const MRPT_OVERRIDE;
59  void internal_readFromStream(mrpt::utils::CStream &in) MRPT_OVERRIDE;
60 };
61 
62 /** TopCon mmGPS devices: SATS, a generic structure for statistics about tracked satelites and their positions. \sa mrpt::obs::CObservationGPS */
64 {
65  static const gnss_message_type_t msg_type = TOPCON_SATS; //!< Static msg type (member expected by templates)
66 
68 
69  mrpt::vector_byte USIs; //!< The list of USI (Universal Sat ID) for the detected sats (See GRIL Manual, pag 4-31).
70  mrpt::vector_signed_byte ELs; //!< Elevation (in degrees, 0-90) for each satellite in USIs.
71  mrpt::vector_signed_word AZs; //!< Azimuth (in degrees, 0-360) for each satellite in USIs.
72 
73  void dumpToStream( mrpt::utils::CStream &out ) const MRPT_OVERRIDE; // See docs in base
74 protected:
75  void internal_writeToStream(mrpt::utils::CStream &out) const MRPT_OVERRIDE;
76  void internal_readFromStream(mrpt::utils::CStream &in) MRPT_OVERRIDE;
77 };
78 
79 } } } // End of namespaces
80 
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:63
mrpt::obs::gnss::Message_TOPCON_PZS::hasPosCov
bool hasPosCov
Definition: gnss_messages_topcon.h:39
mrpt::obs::gnss::gnss_message_type_t
gnss_message_type_t
List of all known GNSS message types.
Definition: gnss_messages_type_list.h:21
CMatrixFixedNumeric.h
mrpt::obs::gnss::TOPCON_SATS
Definition: gnss_messages_type_list.h:35
mrpt::obs::gnss::Message_TOPCON_PZS::error
uint8_t error
Definition: gnss_messages_topcon.h:33
mrpt::obs::gnss::Message_TOPCON_PZS::TXBattery
uint8_t TXBattery
battery level on transmitter
Definition: gnss_messages_topcon.h:31
mrpt::obs::gnss::Message_TOPCON_PZS::hasCartesianPosVel
bool hasCartesianPosVel
system error indicator
Definition: gnss_messages_topcon.h:35
mrpt::obs::gnss::Message_TOPCON_PZS::vel_covariance
mrpt::math::CMatrixFloat44 vel_covariance
Only if hasPosCov is true.
Definition: gnss_messages_topcon.h:43
mrpt::obs::gnss::Message_TOPCON_SATS::USIs
mrpt::vector_byte USIs
The list of USI (Universal Sat ID) for the detected sats (See GRIL Manual, pag 4-31).
Definition: gnss_messages_topcon.h:69
mrpt
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Definition: CParticleFilter.h:16
mrpt::obs::gnss::Message_TOPCON_SATS::AZs
mrpt::vector_signed_word AZs
Azimuth (in degrees, 0-360) for each satellite in USIs.
Definition: gnss_messages_topcon.h:71
mrpt::vector_byte
std::vector< uint8_t > vector_byte
Definition: types_simple.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:47
mrpt::utils::CStream
This base class is used to provide a unified interface to files,memory buffers,..Please see the deriv...
Definition: CStream.h:38
mrpt::obs::gnss::Message_TOPCON_SATS::ELs
mrpt::vector_signed_byte ELs
Elevation (in degrees, 0-90) for each satellite in USIs.
Definition: gnss_messages_topcon.h:70
mrpt::obs::gnss::Message_TOPCON_PZS::angle_transmitter
double angle_transmitter
Vertical angle of N-beam.
Definition: gnss_messages_topcon.h:28
mrpt::obs::gnss::Message_TOPCON_PZS
GPS datum for TopCon's mmGPS devices: PZS.
Definition: gnss_messages_topcon.h:19
mrpt::obs::gnss::Message_TOPCON_PZS::hasVelCov
bool hasVelCov
Definition: gnss_messages_topcon.h:42
mrpt::obs::gnss::Message_TOPCON_PZS::nId
uint8_t nId
ID of the transmitter [1-4], 0 if none.
Definition: gnss_messages_topcon.h:29
mrpt::vector_signed_byte
std::vector< int8_t > vector_signed_byte
Definition: types_simple.h:21
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:53
mrpt::obs::gnss::Message_TOPCON_PZS::latitude_degrees
double latitude_degrees
The measured latitude, in degrees (North:+ , South:-)
Definition: gnss_messages_topcon.h:23
mrpt::obs::gnss::Message_TOPCON_PZS::longitude_degrees
double longitude_degrees
The measured longitude, in degrees (East:+ , West:-)
Definition: gnss_messages_topcon.h:24
mrpt::math::CMatrixFixedNumeric
A numeric matrix of compile-time fixed size.
Definition: CMatrixFixedNumeric.h:34
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:26
mrpt::obs::gnss::Message_TOPCON_PZS::stats_GPS_sats_used
uint8_t stats_GPS_sats_used
Definition: gnss_messages_topcon.h:46
mrpt::vector_signed_word
std::vector< int16_t > vector_signed_word
Definition: types_simple.h:22
mrpt::obs::gnss::Message_TOPCON_PZS::cartesian_vz
double cartesian_vz
Only if hasCartesianPosVel is true.
Definition: gnss_messages_topcon.h:37
gnss_messages_common.h
mrpt::obs::gnss::Message_TOPCON_PZS::cartesian_z
double cartesian_z
Only if hasCartesianPosVel is true.
Definition: gnss_messages_topcon.h:36
mrpt::obs::gnss::Message_TOPCON_PZS::RXBattery
uint8_t RXBattery
battery level on receiver
Definition: gnss_messages_topcon.h:32
mrpt::obs::gnss::Message_TOPCON_PZS::hasStats
bool hasStats
Definition: gnss_messages_topcon.h:45
mrpt::obs::gnss::Message_TOPCON_PZS::PSigma
float PSigma
position SEP [m]
Definition: gnss_messages_topcon.h:27
mrpt::obs::gnss::gnss_message
Pure virtual base for all message types.
Definition: gnss_messages_common.h:24
mrpt::obs::gnss::Message_TOPCON_PZS::pos_covariance
mrpt::math::CMatrixFloat44 pos_covariance
Only if hasPosCov is true.
Definition: gnss_messages_topcon.h:40
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:25
mrpt::obs::gnss::TOPCON_PZS
Definition: gnss_messages_type_list.h:34
MRPT_OVERRIDE
#define MRPT_OVERRIDE
C++11 "override" for virtuals:
Definition: mrpt_macros.h:28
mrpt::obs::gnss::Message_TOPCON_PZS::Fix
uint8_t Fix
1: GPS, 2: mmGPS
Definition: gnss_messages_topcon.h:30



Page generated by Doxygen 1.8.16 for MRPT 1.4.0 SVN: at Mon Oct 14 23:08:25 UTC 2019