ROSaic
|
Derived class for parsing GSA messages. More...
#include <gpgsa.hpp>
Public Member Functions | |
GpgsaParser () | |
Constructor of the class GpgsaParser. More... | |
const std::string | getMessageID () const override |
Returns the ASCII message ID, here "$GPGSA". More... | |
rosaic::GpgsaPtr | parseASCII (const NMEASentence &sentence) noexcept(false) override |
Parses one GSA message. More... | |
![]() | |
BaseParser ()=default | |
Default constructor of the class BaseParser. More... | |
virtual | ~BaseParser ()=default |
Default destructor of the class BaseParser. More... | |
rosaic::GpgsaPtr | 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 = "$GPGSA" |
Declares the string MESSAGE_ID. More... | |
|
inline |
Constructor of the class GpgsaParser.
Definition at line 89 of file gpgsa.hpp.
References getMessageID(), and parseASCII().
|
overridevirtual |
Returns the ASCII message ID, here "$GPGSA".
Implements BaseParser< rosaic::GpgsaPtr >.
Definition at line 41 of file gpgsa.cpp.
References MESSAGE_ID.
Referenced by GpgsaParser().
|
overridevirtualnoexcept |
Parses one GSA message.
[in] | sentence | The GSA 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()[18] if anybody ever needs it.
Reimplemented from BaseParser< rosaic::GpgsaPtr >.
Definition at line 51 of file gpgsa.cpp.
References g_frame_id, parsing_utilities::parseFloat(), and parsing_utilities::parseUInt8().
Referenced by GpgsaParser(), and io_comm_rx::RxMessage::read().
|
static |
Declares the string MESSAGE_ID.
Definition at line 107 of file gpgsa.hpp.
Referenced by getMessageID().