|
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 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 90 of file gpgga.hpp.
References getMessageID(), parseASCII(), and wasLastGPGGAValid().

|
overridevirtual |
Returns the ASCII message ID, here "$GPGGA".
Implements 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 RxMessage 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 BaseParser< rosaic::GpggaPtr >.
Definition at line 51 of file gpgga.cpp.
References parsing_utilities::convertDMSToDegrees(), parsing_utilities::convertUTCDoubleToSeconds(), parsing_utilities::convertUTCtoUnix(), g_frame_id, g_use_gnss_time, parsing_utilities::parseDouble(), parsing_utilities::parseFloat(), parsing_utilities::parseUInt32(), string_utilities::toDouble(), and was_last_gpgga_valid_.
Referenced by GpggaParser(), and io_comm_rx::RxMessage::read().


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

|
static |
Declares the string MESSAGE_ID.
Definition at line 114 of file gpgga.hpp.
Referenced by getMessageID().
|
private |
Declares a boolean representing whether or not the last GPGGA message was valid.
Definition at line 120 of file gpgga.hpp.
Referenced by parseASCII(), and wasLastGPGGAValid().
1.8.13