Public Member Functions | List of all members
novatel_gps_driver::MessageParser< T > Class Template Referenceabstract

#include <message_parser.h>

Public Member Functions

virtual uint32_t GetMessageId () const =0
 
virtual const std::string GetMessageName () const =0
 
virtual T ParseAscii (const NovatelSentence &sentence) noexcept(false)
 Converts sentence into a ROS message pointer and returns it. More...
 
virtual T ParseAscii (const NmeaSentence &sentence) noexcept(false)
 Converts sentence into a ROS message pointer and returns it. More...
 
virtual T ParseBinary (const BinaryMessage &bin_msg) noexcept(false)
 Converts bin_msg into a ROS message pointer and returns it. More...
 
virtual ~MessageParser ()=default
 

Detailed Description

template<typename T>
class novatel_gps_driver::MessageParser< T >

Base class for converting extracted NMEA and NovAtel sentences into ROS messages

Subclasses that parse NMEA messages should implement ParseAscii(const NmeaSentence&); subclasses that parse NovAtel messages should implement both ParseAscii(const NovatelSentence&) and ParseBinary(const BinaryMessage&).

For documentation on exact message structures, see: http://docs.novatel.com/OEM7/Content/Logs/Core_Logs.htm

Template Parameters
TThe ROS message Ptr type that the parser should produce.

Definition at line 59 of file message_parser.h.

Constructor & Destructor Documentation

template<typename T>
virtual novatel_gps_driver::MessageParser< T >::~MessageParser ( )
virtualdefault

Member Function Documentation

template<typename T>
virtual uint32_t novatel_gps_driver::MessageParser< T >::GetMessageId ( ) const
pure virtual
template<typename T>
virtual const std::string novatel_gps_driver::MessageParser< T >::GetMessageName ( ) const
pure virtual
template<typename T>
virtual T novatel_gps_driver::MessageParser< T >::ParseAscii ( const NovatelSentence sentence)
inlinevirtualnoexcept
template<typename T>
virtual T novatel_gps_driver::MessageParser< T >::ParseAscii ( const NmeaSentence sentence)
inlinevirtualnoexcept

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 in novatel_gps_driver::GprmcParser, novatel_gps_driver::GpggaParser, novatel_gps_driver::GpgsaParser, novatel_gps_driver::GpgsvParser, and novatel_gps_driver::GphdtParser.

Definition at line 108 of file message_parser.h.

template<typename T>
virtual T novatel_gps_driver::MessageParser< T >::ParseBinary ( const BinaryMessage bin_msg)
inlinevirtualnoexcept

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


novatel_gps_driver
Author(s):
autogenerated on Thu Jul 16 2020 03:17:31