|
ROSaic
|
Derived class for parsing GGA messages. More...
#include <gpgga.hpp>


Public Member Functions | |
| GpggaParser () | |
| Constructor of the class GpggaParser. More... | |
| const std::string | GetMessageID () const override |
| Returns the ASCII message ID, here "$GPGGA". More... | |
| rosaic::GpggaPtr | ParseASCII (const NMEASentence &sentence) noexcept(false) override |
| Parses one GGA message. More... | |
| bool | WasLastGPGGAValid () const |
| Tells us whether the last GGA message was valid or not. More... | |
Public Member Functions inherited from rosaic_driver::BaseParser< rosaic::GpggaPtr > | |
| BaseParser ()=default | |
| Default constructor of the class BaseParser. More... | |
| virtual | ~BaseParser ()=default |
| Default destructor of the class BaseParser. More... | |
| rosaic::GpggaPtr | ParseBinary (const SBFStructT &bin_msg) noexcept(false) |
| Converts bin_msg into a ROS message pointer (e.g. nmea_msgs::GpggaPtr) and returns it. More... | |
Static Public Attributes | |
| static const std::string | MESSAGE_ID = "$GPGGA" |
| Declares the string MESSAGE_ID. More... | |
Private Attributes | |
| bool | was_last_gpgga_valid_ |
| Declares a boolean representing whether or not the last GPGGA message was valid. More... | |
|
inline |
Constructor of the class GpggaParser.
Definition at line 93 of file gpgga.hpp.
References GetMessageID(), ParseASCII(), and WasLastGPGGAValid().

|
overridevirtual |
Returns the ASCII message ID, here "$GPGGA".
Implements rosaic_driver::BaseParser< rosaic::GpggaPtr >.
Definition at line 41 of file gpgga.cpp.
References MESSAGE_ID.
Referenced by GpggaParser().

|
overridevirtualnoexcept |
Parses one GGA message.
| [in] | sentence | The GGA message to be parsed |
Caution: Due to the occurrence of the throw keyword, this method ParseASCII should be called within a try / catch framework... Note: This method is called from within the read() method of the mosaicMessage class by including the checksum part in the argument "sentence" here, though the checksum is never parsed: It would be sentence.get_body()[15] if anybody ever needs it.
Reimplemented from rosaic_driver::BaseParser< rosaic::GpggaPtr >.
Definition at line 51 of file gpgga.cpp.
References rosaic_driver::ConvertDMSToDegrees(), frame_id, rosaic_driver::ParseDouble(), rosaic_driver::ParseFloat(), rosaic_driver::ParseUInt32(), string_utilities::ToDouble(), rosaic_driver::UTCDoubleToSeconds(), rosaic_driver::UTCtoUnix(), and was_last_gpgga_valid_.
Referenced by GpggaParser(), and io_comm_mosaic::mosaicMessage::Read().


| bool rosaic_driver::GpggaParser::WasLastGPGGAValid | ( | ) | const |
Tells us whether the last GGA message was valid or not.
Definition at line 131 of file gpgga.cpp.
References was_last_gpgga_valid_.
Referenced by GpggaParser().

|
static |
Declares the string MESSAGE_ID.
Definition at line 117 of file gpgga.hpp.
Referenced by GetMessageID().
|
private |
Declares a boolean representing whether or not the last GPGGA message was valid.
Definition at line 123 of file gpgga.hpp.
Referenced by ParseASCII(), and WasLastGPGGAValid().
1.8.13