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

Derived class for parsing GSV messages. More...

#include <gpgsv.hpp>

Inheritance diagram for GpgsvParser:
Inheritance graph
[legend]

Public Member Functions

const std::string getMessageID () const override
 Returns the ASCII message ID, here "$GPGSV". More...
 
 GpgsvParser ()
 Constructor of the class GpgsvParser. More...
 
GpgsvMsg parseASCII (const NMEASentence &sentence, const std::string &frame_id, bool use_gnss_time, Timestamp time_obj) noexcept(false) override
 Parses one GSV message. More...
 
- Public Member Functions inherited from BaseParser< GpgsvMsg >
 BaseParser ()=default
 Default constructor of the class BaseParser. More...
 
virtual const std::string getMessageID () const=0
 Returns the ASCII message name. More...
 
virtual ~BaseParser ()=default
 Default destructor of the class BaseParser. More...
 

Static Public Attributes

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

Detailed Description

Derived class for parsing GSV messages.

Date
29/09/20

Definition at line 76 of file gpgsv.hpp.

Constructor & Destructor Documentation

◆ GpgsvParser()

GpgsvParser::GpgsvParser ( )
inline

Constructor of the class GpgsvParser.

Definition at line 82 of file gpgsv.hpp.

Member Function Documentation

◆ getMessageID()

const std::string GpgsvParser::getMessageID ( ) const
override

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

Returns
The message ID

Definition at line 41 of file gpgsv.cpp.

◆ parseASCII()

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

Parses one GSV message.

Parameters
[in]sentenceThe GSV message to be parsed
Returns
A ROS message pointer of ROS type nmea_msgs::GpgsvPtr

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

Definition at line 53 of file gpgsv.cpp.

Member Data Documentation

◆ MESSAGE_ID

const std::string GpgsvParser::MESSAGE_ID = "$GPGSV"
static

Declares the string MESSAGE_ID.

Definition at line 102 of file gpgsv.hpp.


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


septentrio_gnss_driver
Author(s): Tibor Dome
autogenerated on Wed Nov 22 2023 04:04:28