Public Member Functions | Static Public Attributes | Private Attributes
novatel_gps_driver::GprmcParser Class Reference

#include <gprmc.h>

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

List of all members.

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.
bool WasLastGpsValid () const

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

Definition at line 41 of file gprmc.h.


Member Function Documentation

uint32_t novatel_gps_driver::GprmcParser::GetMessageId ( ) const [override, virtual]
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 [override, virtual]
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) [override, virtual]

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.

Definition at line 124 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.

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 8 2017 02:40:29