Main MRPT website > C++ reference for MRPT 1.9.9
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions
mrpt::obs::gnss::Message_TOPCON_PZS Struct Reference

Detailed Description

GPS datum for TopCon's mmGPS devices: PZS.

See also
mrpt::obs::CObservationGPS

Definition at line 21 of file gnss_messages_topcon.h.

#include <mrpt/obs/gnss_messages_topcon.h>

Inheritance diagram for mrpt::obs::gnss::Message_TOPCON_PZS:
Inheritance graph

Public Types

enum  { msg_type = TOPCON_PZS }
 Static msg type (member expected by templates) More...
 

Public Member Functions

 Message_TOPCON_PZS ()
 
template<class TGEODETICCOORDS >
TGEODETICCOORDS getAsStruct () const
 Return the geodetic coords as a mrpt::topography::TGeodeticCoords structure (requires linking against mrpt-topography) Call as: getAsStruct<TGeodeticCoords>();. More...
 
void dumpToStream (std::ostream &out) const override
 Dumps the contents of the observation in a human-readable form to a given output stream. More...
 
void writeToStream (mrpt::serialization::CArchive &out) const
 Save to binary stream. More...
 
void readFromStream (mrpt::serialization::CArchive &in)
 Load from binary stream into this existing object. More...
 
bool isOfType (const gnss_message_type_t type_id) const
 
template<class MSG_CLASS >
bool isOfClass () const
 
void dumpToConsole (std::ostream &o) const
 Dumps the contents of the observation in a human-readable form to an std::ostream (set to std::cout to print to console) More...
 
virtual bool getAllFieldDescriptions (std::ostream &o) const
 Dumps a header for getAllFieldValues() More...
 
virtual bool getAllFieldValues (std::ostream &o) const
 Dumps a line with the sequence of all field values (without a line feed at the end). More...
 
const std::stringgetMessageTypeAsString () const
 Returns "NMEA_GGA", etc. More...
 

Static Public Member Functions

static gnss_messagereadAndBuildFromStream (mrpt::serialization::CArchive &in)
 Load from binary stream and creates object detecting its type (class factory). More...
 
static gnss_messageFactory (const gnss_message_type_t msg_id)
 Creates message. More...
 
static bool FactoryKnowsMsgType (const gnss_message_type_t msg_id)
 Returns true if Factory() has a registered constructor for this msg type. More...
 

Public Attributes

double latitude_degrees
 The measured latitude, in degrees (North:+ , South:-) More...
 
double longitude_degrees
 The measured longitude, in degrees (East:+ , West:-) More...
 
double height_meters
 ellipsoidal height from N-beam [m] perhaps weighted with regular gps More...
 
double RTK_height_meters
 ellipsoidal height [m] without N-beam correction More...
 
float PSigma
 position SEP [m] More...
 
double angle_transmitter
 Vertical angle of N-beam. More...
 
uint8_t nId
 ID of the transmitter [1-4], 0 if none. More...
 
uint8_t Fix
 1: GPS, 2: mmGPS More...
 
uint8_t TXBattery
 battery level on transmitter More...
 
uint8_t RXBattery
 battery level on receiver More...
 
uint8_t error
 
bool hasCartesianPosVel
 system error indicator More...
 
double cartesian_x
 Only if hasCartesianPosVel is true. More...
 
double cartesian_y
 
double cartesian_z
 
double cartesian_vx
 Only if hasCartesianPosVel is true. More...
 
double cartesian_vy
 
double cartesian_vz
 
bool hasPosCov
 
mrpt::math::CMatrixFloat44 pos_covariance
 Only if hasPosCov is true. More...
 
bool hasVelCov
 
mrpt::math::CMatrixFloat44 vel_covariance
 Only if hasPosCov is true. More...
 
bool hasStats
 
uint8_t stats_GPS_sats_used
 
uint8_t stats_GLONASS_sats_used
 
uint8_t stats_rtk_fix_progress
 [0,100] %, only in modes other than RTK FIXED. More...
 
gnss_message_type_t message_type
 Type of GNSS message. More...
 

Protected Member Functions

void internal_writeToStream (mrpt::serialization::CArchive &out) const override
 Save to binary stream. More...
 
void internal_readFromStream (mrpt::serialization::CArchive &in) override
 Save to binary stream. More...
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Static msg type (member expected by templates)

Enumerator
msg_type 

Definition at line 24 of file gnss_messages_topcon.h.

Constructor & Destructor Documentation

◆ Message_TOPCON_PZS()

Message_TOPCON_PZS::Message_TOPCON_PZS ( )

Definition at line 18 of file gnss_messages_topcon.cpp.

Member Function Documentation

◆ dumpToConsole()

void mrpt::obs::gnss::gnss_message::dumpToConsole ( std::ostream &  o) const
inherited

Dumps the contents of the observation in a human-readable form to an std::ostream (set to std::cout to print to console)

◆ dumpToStream()

void Message_TOPCON_PZS::dumpToStream ( std::ostream &  out) const
overridevirtual

◆ Factory()

gnss_message * gnss_message::Factory ( const gnss_message_type_t  msg_id)
staticinherited

Creates message.

Returns
nullptr on unknown msg type

Definition at line 47 of file gnss_messages_common.cpp.

References LIST_ALL_MSGS.

◆ FactoryKnowsMsgType()

bool gnss_message::FactoryKnowsMsgType ( const gnss_message_type_t  msg_id)
staticinherited

Returns true if Factory() has a registered constructor for this msg type.

Definition at line 60 of file gnss_messages_common.cpp.

References LIST_ALL_MSGS.

◆ getAllFieldDescriptions()

virtual bool mrpt::obs::gnss::gnss_message::getAllFieldDescriptions ( std::ostream &  o) const
inlinevirtualinherited

◆ getAllFieldValues()

virtual bool mrpt::obs::gnss::gnss_message::getAllFieldValues ( std::ostream &  o) const
inlinevirtualinherited

Dumps a line with the sequence of all field values (without a line feed at the end).

See also
getAllFieldDescriptions()
Returns
false if not implemented for this message type

Reimplemented in mrpt::obs::gnss::Message_NMEA_ZDA, mrpt::obs::gnss::Message_NMEA_VTG, mrpt::obs::gnss::Message_NMEA_RMC, mrpt::obs::gnss::Message_NMEA_GLL, and mrpt::obs::gnss::Message_NMEA_GGA.

Definition at line 70 of file gnss_messages_common.h.

◆ getAsStruct()

template<class TGEODETICCOORDS >
TGEODETICCOORDS mrpt::obs::gnss::Message_TOPCON_PZS::getAsStruct ( ) const
inline

Return the geodetic coords as a mrpt::topography::TGeodeticCoords structure (requires linking against mrpt-topography) Call as: getAsStruct<TGeodeticCoords>();.

Definition at line 76 of file gnss_messages_topcon.h.

References height_meters, latitude_degrees, and longitude_degrees.

◆ getMessageTypeAsString()

const std::string & gnss_message::getMessageTypeAsString ( ) const
inherited

Returns "NMEA_GGA", etc.

Definition at line 74 of file gnss_messages_common.cpp.

References LIST_ALL_MSGS.

Referenced by mrpt::hwdrivers::CGPSInterface::implement_parser_NOVATEL_OEM6().

◆ internal_readFromStream()

void Message_TOPCON_PZS::internal_readFromStream ( mrpt::serialization::CArchive in)
overrideprotectedvirtual

◆ internal_writeToStream()

void Message_TOPCON_PZS::internal_writeToStream ( mrpt::serialization::CArchive out) const
overrideprotectedvirtual

◆ isOfClass()

template<class MSG_CLASS >
bool mrpt::obs::gnss::gnss_message::isOfClass ( ) const
inlineinherited

Definition at line 40 of file gnss_messages_common.h.

References mrpt::obs::gnss::gnss_message::isOfType().

◆ isOfType()

bool mrpt::obs::gnss::gnss_message::isOfType ( const gnss_message_type_t  type_id) const
inherited

◆ readAndBuildFromStream()

gnss_message * gnss_message::readAndBuildFromStream ( mrpt::serialization::CArchive in)
staticinherited

Load from binary stream and creates object detecting its type (class factory).

Launches an exception upon error

Definition at line 107 of file gnss_messages_common.cpp.

References mrpt::obs::gnss::gnss_message::internal_readFromStream(), and THROW_EXCEPTION_FMT.

Referenced by mrpt::obs::gnss::gnss_message_ptr::gnss_message_ptr(), and mrpt::obs::gnss::gnss_message_ptr::operator=().

◆ readFromStream()

void gnss_message::readFromStream ( mrpt::serialization::CArchive in)
inherited

Load from binary stream into this existing object.

Launches an exception upon error.

Definition at line 97 of file gnss_messages_common.cpp.

References ASSERT_EQUAL_.

◆ writeToStream()

void gnss_message::writeToStream ( mrpt::serialization::CArchive out) const
inherited

Save to binary stream.

Launches an exception upon error

Definition at line 90 of file gnss_messages_common.cpp.

References mrpt::serialization::CArchive::WriteAs().

Referenced by mrpt::obs::gnss::gnss_message_ptr::gnss_message_ptr(), and mrpt::obs::gnss::gnss_message_ptr::operator=().

Member Data Documentation

◆ angle_transmitter

double mrpt::obs::gnss::Message_TOPCON_PZS::angle_transmitter

◆ cartesian_vx

double mrpt::obs::gnss::Message_TOPCON_PZS::cartesian_vx

Only if hasCartesianPosVel is true.

Definition at line 55 of file gnss_messages_topcon.h.

Referenced by dumpToStream(), internal_readFromStream(), internal_writeToStream(), and mrpt::obs::CObservationGPS::serializeFrom().

◆ cartesian_vy

double mrpt::obs::gnss::Message_TOPCON_PZS::cartesian_vy

◆ cartesian_vz

double mrpt::obs::gnss::Message_TOPCON_PZS::cartesian_vz

◆ cartesian_x

double mrpt::obs::gnss::Message_TOPCON_PZS::cartesian_x

Only if hasCartesianPosVel is true.

Definition at line 53 of file gnss_messages_topcon.h.

Referenced by dumpToStream(), internal_readFromStream(), internal_writeToStream(), and mrpt::obs::CObservationGPS::serializeFrom().

◆ cartesian_y

double mrpt::obs::gnss::Message_TOPCON_PZS::cartesian_y

◆ cartesian_z

double mrpt::obs::gnss::Message_TOPCON_PZS::cartesian_z

◆ error

uint8_t mrpt::obs::gnss::Message_TOPCON_PZS::error

◆ Fix

uint8_t mrpt::obs::gnss::Message_TOPCON_PZS::Fix

◆ hasCartesianPosVel

bool mrpt::obs::gnss::Message_TOPCON_PZS::hasCartesianPosVel

◆ hasPosCov

bool mrpt::obs::gnss::Message_TOPCON_PZS::hasPosCov

◆ hasStats

bool mrpt::obs::gnss::Message_TOPCON_PZS::hasStats

◆ hasVelCov

bool mrpt::obs::gnss::Message_TOPCON_PZS::hasVelCov

◆ height_meters

double mrpt::obs::gnss::Message_TOPCON_PZS::height_meters

ellipsoidal height from N-beam [m] perhaps weighted with regular gps

Definition at line 34 of file gnss_messages_topcon.h.

Referenced by dumpToStream(), getAsStruct(), internal_readFromStream(), internal_writeToStream(), and mrpt::obs::CObservationGPS::serializeFrom().

◆ latitude_degrees

double mrpt::obs::gnss::Message_TOPCON_PZS::latitude_degrees

The measured latitude, in degrees (North:+ , South:-)

Definition at line 30 of file gnss_messages_topcon.h.

Referenced by dumpToStream(), getAsStruct(), internal_readFromStream(), internal_writeToStream(), and mrpt::obs::CObservationGPS::serializeFrom().

◆ longitude_degrees

double mrpt::obs::gnss::Message_TOPCON_PZS::longitude_degrees

The measured longitude, in degrees (East:+ , West:-)

Definition at line 32 of file gnss_messages_topcon.h.

Referenced by dumpToStream(), getAsStruct(), internal_readFromStream(), internal_writeToStream(), and mrpt::obs::CObservationGPS::serializeFrom().

◆ message_type

gnss_message_type_t mrpt::obs::gnss::gnss_message::message_type
inherited

◆ nId

uint8_t mrpt::obs::gnss::Message_TOPCON_PZS::nId

ID of the transmitter [1-4], 0 if none.

Definition at line 42 of file gnss_messages_topcon.h.

Referenced by dumpToStream(), internal_readFromStream(), internal_writeToStream(), and mrpt::obs::CObservationGPS::serializeFrom().

◆ pos_covariance

mrpt::math::CMatrixFloat44 mrpt::obs::gnss::Message_TOPCON_PZS::pos_covariance

◆ PSigma

float mrpt::obs::gnss::Message_TOPCON_PZS::PSigma

◆ RTK_height_meters

double mrpt::obs::gnss::Message_TOPCON_PZS::RTK_height_meters

ellipsoidal height [m] without N-beam correction

Definition at line 36 of file gnss_messages_topcon.h.

Referenced by dumpToStream(), internal_readFromStream(), internal_writeToStream(), and mrpt::obs::CObservationGPS::serializeFrom().

◆ RXBattery

uint8_t mrpt::obs::gnss::Message_TOPCON_PZS::RXBattery

◆ stats_GLONASS_sats_used

uint8_t mrpt::obs::gnss::Message_TOPCON_PZS::stats_GLONASS_sats_used

◆ stats_GPS_sats_used

uint8_t mrpt::obs::gnss::Message_TOPCON_PZS::stats_GPS_sats_used

◆ stats_rtk_fix_progress

uint8_t mrpt::obs::gnss::Message_TOPCON_PZS::stats_rtk_fix_progress

[0,100] %, only in modes other than RTK FIXED.

Definition at line 69 of file gnss_messages_topcon.h.

Referenced by dumpToStream(), internal_readFromStream(), internal_writeToStream(), and mrpt::obs::CObservationGPS::serializeFrom().

◆ TXBattery

uint8_t mrpt::obs::gnss::Message_TOPCON_PZS::TXBattery

◆ vel_covariance

mrpt::math::CMatrixFloat44 mrpt::obs::gnss::Message_TOPCON_PZS::vel_covariance



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