NMEA datum: RMC.
Definition at line 93 of file gnss_messages_ascii_nmea.h.
#include <mrpt/obs/gnss_messages_ascii_nmea.h>
Classes | |
struct | content_t |
Public Types | |
enum | { msg_type = NMEA_RMC } |
Public Member Functions | |
Message_NMEA_RMC () | |
mrpt::system::TTimeStamp | getDateAsTimestamp () const |
Build an MRPT timestamp with the year/month/day of this observation. More... | |
void | dumpToStream (mrpt::utils::CStream &out) const MRPT_OVERRIDE |
Dumps the contents of the observation in a human-readable form to a given output stream. More... | |
bool | getAllFieldDescriptions (std::ostream &o) const MRPT_OVERRIDE |
Dumps a header for getAllFieldValues() More... | |
bool | getAllFieldValues (std::ostream &o) const MRPT_OVERRIDE |
Dumps a line with the sequence of all field values (without a line feed at the end). More... | |
void | writeToStream (mrpt::utils::CStream &out) const |
Save to binary stream. Launches an exception upon error. More... | |
void | readFromStream (mrpt::utils::CStream &in) |
Load from binary stream into this existing object. Launches an exception upon error. More... | |
bool | isOfType (const gnss_message_type_t type_id) const |
template<class MSG_CLASS > | |
bool | isOfClass () const |
void | dumpToConsole (std::ostream &o=std::cout) const |
Dumps the contents of the observation in a human-readable form to an std::ostream (default=console) More... | |
const std::string & | getMessageTypeAsString () const |
Returns "NMEA_GGA", etc. More... | |
Static Public Member Functions | |
static gnss_message * | readAndBuildFromStream (mrpt::utils::CStream &in) |
Load from binary stream and creates object detecting its type (class factory). Launches an exception upon error. More... | |
static gnss_message * | Factory (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 | |
content_t | fields |
Message content, accesible by individual fields. More... | |
gnss_message_type_t | message_type |
Type of GNSS message. More... | |
Protected Member Functions | |
virtual void | internal_writeToStream (mrpt::utils::CStream &out) const =0 |
Save to binary stream. Launches an exception upon error. More... | |
virtual void | internal_readFromStream (mrpt::utils::CStream &in)=0 |
Save to binary stream. Launches an exception upon error. More... | |
anonymous enum |
Enumerator | |
---|---|
msg_type |
Definition at line 96 of file gnss_messages_ascii_nmea.h.
|
inline |
Definition at line 97 of file gnss_messages_ascii_nmea.h.
|
inherited |
Dumps the contents of the observation in a human-readable form to an std::ostream (default=console)
|
virtual |
Dumps the contents of the observation in a human-readable form to a given output stream.
Implements mrpt::obs::gnss::gnss_message.
Definition at line 197 of file gnss_messages_ascii_nmea.cpp.
References mrpt::obs::gnss::Message_NMEA_RMC::content_t::date_day, mrpt::obs::gnss::Message_NMEA_RMC::content_t::date_month, mrpt::obs::gnss::Message_NMEA_RMC::content_t::date_year, mrpt::obs::gnss::Message_NMEA_RMC::content_t::direction_degrees, fields, mrpt::obs::gnss::UTC_time::hour, mrpt::obs::gnss::Message_NMEA_RMC::content_t::latitude_degrees, mrpt::obs::gnss::Message_NMEA_RMC::content_t::longitude_degrees, mrpt::obs::gnss::Message_NMEA_RMC::content_t::magnetic_dir, mrpt::obs::gnss::UTC_time::minute, mrpt::obs::gnss::Message_NMEA_RMC::content_t::positioning_mode, mrpt::utils::CStream::printf(), mrpt::obs::gnss::UTC_time::sec, mrpt::obs::gnss::Message_NMEA_RMC::content_t::speed_knots, mrpt::obs::gnss::Message_NMEA_RMC::content_t::UTCTime, and mrpt::obs::gnss::Message_NMEA_RMC::content_t::validity_char.
|
staticinherited |
Creates message.
Definition at line 47 of file gnss_messages_common.cpp.
References LIST_ALL_MSGS.
|
staticinherited |
Returns true if Factory() has a registered constructor for this msg type.
Definition at line 58 of file gnss_messages_common.cpp.
References LIST_ALL_MSGS.
|
virtual |
Dumps a header for getAllFieldValues()
Reimplemented from mrpt::obs::gnss::gnss_message.
Definition at line 220 of file gnss_messages_ascii_nmea.cpp.
|
virtual |
Dumps a line with the sequence of all field values (without a line feed at the end).
Reimplemented from mrpt::obs::gnss::gnss_message.
Definition at line 225 of file gnss_messages_ascii_nmea.cpp.
References mrpt::obs::gnss::Message_NMEA_RMC::content_t::date_day, mrpt::obs::gnss::Message_NMEA_RMC::content_t::date_month, mrpt::obs::gnss::Message_NMEA_RMC::content_t::date_year, mrpt::obs::gnss::Message_NMEA_RMC::content_t::direction_degrees, fields, mrpt::mrpt::format(), mrpt::obs::gnss::UTC_time::hour, mrpt::obs::gnss::Message_NMEA_RMC::content_t::latitude_degrees, mrpt::obs::gnss::Message_NMEA_RMC::content_t::longitude_degrees, mrpt::obs::gnss::UTC_time::minute, mrpt::obs::gnss::UTC_time::sec, mrpt::obs::gnss::Message_NMEA_RMC::content_t::speed_knots, and mrpt::obs::gnss::Message_NMEA_RMC::content_t::UTCTime.
mrpt::system::TTimeStamp Message_NMEA_RMC::getDateAsTimestamp | ( | ) | const |
Build an MRPT timestamp with the year/month/day of this observation.
Definition at line 174 of file gnss_messages_ascii_nmea.cpp.
References mrpt::system::buildTimestampFromParts(), mrpt::obs::gnss::Message_NMEA_RMC::content_t::date_day, mrpt::obs::gnss::Message_NMEA_RMC::content_t::date_month, mrpt::obs::gnss::Message_NMEA_RMC::content_t::date_year, mrpt::system::TTimeParts::day, fields, mrpt::system::TTimeParts::hour, mrpt::system::TTimeParts::minute, mrpt::system::TTimeParts::month, mrpt::system::now(), mrpt::system::TTimeParts::second, mrpt::system::timestampToParts(), and mrpt::system::TTimeParts::year.
Referenced by mrpt::hwdrivers::CVelodyneScanner::getNextObservation(), and mrpt::hwdrivers::CGPSInterface::parse_NMEA().
|
inherited |
Returns "NMEA_GGA", etc.
Definition at line 70 of file gnss_messages_common.cpp.
References LIST_ALL_MSGS.
Referenced by mrpt::hwdrivers::CGPSInterface::implement_parser_NOVATEL_OEM6().
|
protectedpure virtualinherited |
Save to binary stream. Launches an exception upon error.
Implemented in mrpt::obs::gnss::Message_NV_OEM6_VERSION, mrpt::obs::gnss::Message_NV_OEM6_RANGECMP, mrpt::obs::gnss::Message_NV_OEM6_GENERIC_SHORT_FRAME, mrpt::obs::gnss::Message_NV_OEM6_GENERIC_FRAME, mrpt::obs::gnss::Message_TOPCON_SATS, and mrpt::obs::gnss::Message_TOPCON_PZS.
Referenced by mrpt::obs::gnss::gnss_message::readAndBuildFromStream().
|
protectedpure virtualinherited |
Save to binary stream. Launches an exception upon error.
Implemented in mrpt::obs::gnss::Message_NV_OEM6_VERSION, mrpt::obs::gnss::Message_NV_OEM6_RANGECMP, mrpt::obs::gnss::Message_NV_OEM6_GENERIC_SHORT_FRAME, mrpt::obs::gnss::Message_NV_OEM6_GENERIC_FRAME, mrpt::obs::gnss::Message_TOPCON_SATS, and mrpt::obs::gnss::Message_TOPCON_PZS.
|
inlineinherited |
Definition at line 33 of file gnss_messages_common.h.
|
inherited |
|
staticinherited |
Load from binary stream and creates object detecting its type (class factory). Launches an exception upon error.
Definition at line 104 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=().
|
inherited |
Load from binary stream into this existing object. Launches an exception upon error.
Definition at line 95 of file gnss_messages_common.cpp.
References ASSERT_EQUAL_.
|
inherited |
Save to binary stream. Launches an exception upon error.
Definition at line 87 of file gnss_messages_common.cpp.
Referenced by mrpt::obs::gnss::gnss_message_ptr::gnss_message_ptr(), and mrpt::obs::gnss::gnss_message_ptr::operator=().
content_t mrpt::obs::gnss::Message_NMEA_RMC::fields |
Message content, accesible by individual fields.
Definition at line 113 of file gnss_messages_ascii_nmea.h.
Referenced by mrpt::hwdrivers::CIMUXSens_MT4::doProcess(), dumpToStream(), getAllFieldValues(), getDateAsTimestamp(), mrpt::hwdrivers::CVelodyneScanner::getNextObservation(), mrpt::hwdrivers::CGPSInterface::parse_NMEA(), mrpt::obs::CObservationGPS::readFromStream(), and TEST().
|
inherited |
Type of GNSS message.
Definition at line 25 of file gnss_messages_common.h.
Referenced by mrpt::hwdrivers::CGPSInterface::implement_parser_NOVATEL_OEM6(), and mrpt::obs::CObservationGPS::readFromStream().
Page generated by Doxygen 1.8.14 for MRPT 1.5.5 Git: e06b63dbf Fri Dec 1 14:41:11 2017 +0100 at lun oct 28 01:31:35 CET 2019 |