Class GpggaParser

Inheritance Relationships

Base Type

Class Documentation

class GpggaParser : public BaseParser<GpggaMsg>

Derived class for parsing GGA messages.

Date

13/08/20

Public Functions

inline GpggaParser()

Constructor of the class GpggaParser.

virtual const std::string getMessageID() const override

Returns the ASCII message ID, here “$GPGGA”.

Returns:

The message ID

virtual GpggaMsg parseASCII(const NMEASentence &sentence, const std::string &frame_id, bool use_gnss_time, Timestamp time_obj) noexcept(false) override

Parses one GGA message.

Parameters:

sentence[in] The GGA message to be parsed

Returns:

A ROS message pointer of ROS type GpggaMsg

bool wasLastGPGGAValid() const

Tells us whether the last GGA message was valid or not.

Returns:

True if last GGA message was valid, false if not

Public Static Attributes

static const std::string MESSAGE_ID

Declares the string MESSAGE_ID.