Public Member Functions | Static Public Attributes | List of all members
GpgsaParser Class Reference

Derived class for parsing GSA messages. More...

#include <gpgsa.hpp>

Inheritance diagram for GpgsaParser:
Inheritance graph
[legend]

Public Member Functions

const std::string getMessageID () const override
 Returns the ASCII message ID, here "$GPGSA". More...
 
 GpgsaParser ()
 Constructor of the class GpgsaParser. More...
 
GpgsaMsg parseASCII (const NMEASentence &sentence, const std::string &frame_id, bool use_gnss_time, Timestamp time_obj) noexcept(false) override
 Parses one GSA message. More...
 
- Public Member Functions inherited from BaseParser< GpgsaMsg >
 BaseParser ()=default
 Default constructor of the class BaseParser. More...
 
GpgsaMsg parseBinary (const SBFStructT &bin_msg) noexcept(false)
 Converts bin_msg into a ROS message pointer (e.g. nmea_msgs::GpggaPtr) and returns it. More...
 
virtual ~BaseParser ()=default
 Default destructor of the class BaseParser. More...
 

Static Public Attributes

static const std::string MESSAGE_ID = "$GPGSA"
 Declares the string MESSAGE_ID. More...
 

Detailed Description

Derived class for parsing GSA messages.

Date
29/09/20

Definition at line 79 of file gpgsa.hpp.

Constructor & Destructor Documentation

◆ GpgsaParser()

GpgsaParser::GpgsaParser ( )
inline

Constructor of the class GpgsaParser.

Definition at line 85 of file gpgsa.hpp.

Member Function Documentation

◆ getMessageID()

const std::string GpgsaParser::getMessageID ( ) const
overridevirtual

Returns the ASCII message ID, here "$GPGSA".

Returns
The message ID

Implements BaseParser< GpgsaMsg >.

Definition at line 41 of file gpgsa.cpp.

◆ parseASCII()

GpgsaMsg GpgsaParser::parseASCII ( const NMEASentence sentence,
const std::string &  frame_id,
bool  use_gnss_time,
Timestamp  time_obj 
)
overridevirtualnoexcept

Parses one GSA message.

Parameters
[in]sentenceThe GSA message to be parsed
Returns
A ROS message pointer of ROS type GpgsaMsg

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< GpgsaMsg >.

Definition at line 53 of file gpgsa.cpp.

Member Data Documentation

◆ MESSAGE_ID

const std::string GpgsaParser::MESSAGE_ID = "$GPGSA"
static

Declares the string MESSAGE_ID.

Definition at line 105 of file gpgsa.hpp.


The documentation for this class was generated from the following files:


septentrio_gnss_driver
Author(s): Tibor Dome
autogenerated on Sat Mar 11 2023 03:12:56