Public Member Functions | Static Public Attributes | Private Attributes | List of all members
novatel_gps_driver::GprmcParser Class Reference

#include <gprmc.h>

Inheritance diagram for novatel_gps_driver::GprmcParser:
Inheritance graph
[legend]

Public Member Functions

uint32_t GetMessageId () const override
 
const std::string GetMessageName () const override
 
 GprmcParser ()
 
novatel_gps_msgs::GprmcPtr ParseAscii (const NmeaSentence &sentence) noexcept(false) override
 Converts sentence into a ROS message pointer and returns it. More...
 
bool WasLastGpsValid () const
 
- Public Member Functions inherited from novatel_gps_driver::MessageParser< novatel_gps_msgs::GprmcPtr >
virtual uint32_t GetMessageId () const=0
 
virtual const std::string GetMessageName () const=0
 
virtual novatel_gps_msgs::GprmcPtr ParseAscii (const NovatelSentence &sentence) noexcept(false)
 Converts sentence into a ROS message pointer and returns it. More...
 
virtual novatel_gps_msgs::GprmcPtr ParseBinary (const BinaryMessage &bin_msg) noexcept(false)
 Converts bin_msg into a ROS message pointer and returns it. More...
 
virtual ~MessageParser ()=default
 

Static Public Attributes

static constexpr double KNOTS_TO_MPS = 0.5144444
 
static const std::string MESSAGE_NAME = "GPRMC"
 

Private Attributes

bool was_last_gps_valid_
 

Detailed Description

Definition at line 38 of file gprmc.h.

Constructor & Destructor Documentation

◆ GprmcParser()

novatel_gps_driver::GprmcParser::GprmcParser ( )
inline

Definition at line 41 of file gprmc.h.

Member Function Documentation

◆ GetMessageId()

uint32_t novatel_gps_driver::GprmcParser::GetMessageId ( ) const
override

Definition at line 36 of file gprmc.cpp.

◆ GetMessageName()

const std::string novatel_gps_driver::GprmcParser::GetMessageName ( ) const
override

Definition at line 41 of file gprmc.cpp.

◆ ParseAscii()

novatel_gps_msgs::GprmcPtr novatel_gps_driver::GprmcParser::ParseAscii ( const NmeaSentence sentence)
overridevirtualnoexcept

Converts sentence into a ROS message pointer and returns it.

The returned value must not be NULL. ParseException should be thrown if there are any issues parsing the message.

Parameters
[in]bin_msgThe message to convert.
Returns
A valid ROS message pointer.

Reimplemented from novatel_gps_driver::MessageParser< novatel_gps_msgs::GprmcPtr >.

Definition at line 46 of file gprmc.cpp.

◆ WasLastGpsValid()

bool novatel_gps_driver::GprmcParser::WasLastGpsValid ( ) const

Definition at line 132 of file gprmc.cpp.

Member Data Documentation

◆ KNOTS_TO_MPS

constexpr double novatel_gps_driver::GprmcParser::KNOTS_TO_MPS = 0.5144444
staticconstexpr

Definition at line 54 of file gprmc.h.

◆ MESSAGE_NAME

const std::string novatel_gps_driver::GprmcParser::MESSAGE_NAME = "GPRMC"
static

Definition at line 53 of file gprmc.h.

◆ was_last_gps_valid_

bool novatel_gps_driver::GprmcParser::was_last_gps_valid_
private

Definition at line 57 of file gprmc.h.


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


novatel_gps_driver
Author(s):
autogenerated on Sun Oct 1 2023 02:58:58