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) override throw (ParseException)
 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 novatel_gps_msgs::GprmcPtr ParseAscii (const NovatelSentence &sentence) throw (ParseException)
 Converts sentence into a ROS message pointer and returns it. More...
 
virtual novatel_gps_msgs::GprmcPtr ParseBinary (const BinaryMessage &bin_msg) throw (ParseException)
 Converts bin_msg into a ROS message pointer and returns it. More...
 
virtual ~MessageParser ()
 

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

novatel_gps_driver::GprmcParser::GprmcParser ( )
inline

Definition at line 41 of file gprmc.h.

Member Function Documentation

uint32_t novatel_gps_driver::GprmcParser::GetMessageId ( ) const
overridevirtual
Returns
The binary message ID. Should be 0 for messages that have no binary representation.

Implements novatel_gps_driver::MessageParser< novatel_gps_msgs::GprmcPtr >.

Definition at line 36 of file gprmc.cpp.

const std::string novatel_gps_driver::GprmcParser::GetMessageName ( ) const
overridevirtual
Returns
The ASCII message name.

Implements novatel_gps_driver::MessageParser< novatel_gps_msgs::GprmcPtr >.

Definition at line 41 of file gprmc.cpp.

novatel_gps_msgs::GprmcPtr novatel_gps_driver::GprmcParser::ParseAscii ( const NmeaSentence sentence)
throw (ParseException
)
overridevirtual

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.

bool novatel_gps_driver::GprmcParser::WasLastGpsValid ( ) const

Definition at line 132 of file gprmc.cpp.

Member Data Documentation

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

Definition at line 54 of file gprmc.h.

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

Definition at line 53 of file gprmc.h.

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 Wed Jul 3 2019 19:36:46