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