Public Member Functions | Protected Member Functions | Protected Attributes | Private Types | Private Attributes | List of all members
novatel_oem7_driver::Oem7Receiver< T > Class Template Referenceabstract

#include <oem7_receiver.hpp>

Inheritance diagram for novatel_oem7_driver::Oem7Receiver< T >:
Inheritance graph
[legend]

Public Member Functions

virtual bool initialize (ros::NodeHandle &h)
 
 Oem7Receiver ()
 
virtual bool read (boost::asio::mutable_buffer buf, size_t &rlen)
 
virtual bool write (boost::asio::const_buffer buf)
 
virtual ~Oem7Receiver ()
 
- Public Member Functions inherited from novatel_oem7_driver::Oem7ReceiverIf
virtual ~Oem7ReceiverIf ()
 

Protected Member Functions

void endpoint_close ()
 
virtual size_t endpoint_read (boost::asio::mutable_buffer buf, boost::system::error_code &err)=0
 
virtual void endpoint_try_open ()=0
 
virtual size_t endpoint_write (boost::asio::const_buffer buf, boost::system::error_code &err)=0
 
bool in_error_state ()
 

Protected Attributes

endpoint_
 boost::asio communication endoint; socket, serial port, etc. More...
 
int max_num_io_errors_
 Number of consecutive io errors before declaring failure and quitting. More...
 
ros::NodeHandle nh_
 
int num_io_errors_
 Number of consecuitive io errors. More...
 

Private Types

enum  { DEFAULT_MAX_NUM_IO_ERRORS = 7 }
 

Private Attributes

boost::asio::io_service io_
 

Detailed Description

template<typename T>
class novatel_oem7_driver::Oem7Receiver< T >

Common functionality related to boost::asio

Definition at line 39 of file oem7_receiver.hpp.

Member Enumeration Documentation

template<typename T>
anonymous enum
private
Enumerator
DEFAULT_MAX_NUM_IO_ERRORS 

Definition at line 43 of file oem7_receiver.hpp.

Constructor & Destructor Documentation

template<typename T>
novatel_oem7_driver::Oem7Receiver< T >::Oem7Receiver ( )
inline

Definition at line 100 of file oem7_receiver.hpp.

template<typename T>
virtual novatel_oem7_driver::Oem7Receiver< T >::~Oem7Receiver ( )
inlinevirtual

Definition at line 108 of file oem7_receiver.hpp.

Member Function Documentation

template<typename T>
void novatel_oem7_driver::Oem7Receiver< T >::endpoint_close ( )
inlineprotected

Close the endpoint; delay to avoid tight re-open loop

Definition at line 91 of file oem7_receiver.hpp.

template<typename T>
virtual size_t novatel_oem7_driver::Oem7Receiver< T >::endpoint_read ( boost::asio::mutable_buffer  buf,
boost::system::error_code &  err 
)
protectedpure virtual
template<typename T>
virtual void novatel_oem7_driver::Oem7Receiver< T >::endpoint_try_open ( )
protectedpure virtual
template<typename T>
virtual size_t novatel_oem7_driver::Oem7Receiver< T >::endpoint_write ( boost::asio::const_buffer  buf,
boost::system::error_code &  err 
)
protectedpure virtual
template<typename T>
bool novatel_oem7_driver::Oem7Receiver< T >::in_error_state ( )
inlineprotected

Definition at line 58 of file oem7_receiver.hpp.

template<typename T>
virtual bool novatel_oem7_driver::Oem7Receiver< T >::initialize ( ros::NodeHandle h)
inlinevirtual

Implements novatel_oem7_driver::Oem7ReceiverIf.

Definition at line 112 of file oem7_receiver.hpp.

template<typename T>
virtual bool novatel_oem7_driver::Oem7Receiver< T >::read ( boost::asio::mutable_buffer  buf,
size_t &  rlen 
)
inlinevirtual

Implements novatel_oem7_driver::Oem7ReceiverIf.

Definition at line 121 of file oem7_receiver.hpp.

template<typename T>
virtual bool novatel_oem7_driver::Oem7Receiver< T >::write ( boost::asio::const_buffer  buf)
inlinevirtual

Implements novatel_oem7_driver::Oem7ReceiverIf.

Definition at line 151 of file oem7_receiver.hpp.

Member Data Documentation

template<typename T>
T novatel_oem7_driver::Oem7Receiver< T >::endpoint_
protected

boost::asio communication endoint; socket, serial port, etc.

Definition at line 53 of file oem7_receiver.hpp.

template<typename T>
boost::asio::io_service novatel_oem7_driver::Oem7Receiver< T >::io_
private

Definition at line 41 of file oem7_receiver.hpp.

template<typename T>
int novatel_oem7_driver::Oem7Receiver< T >::max_num_io_errors_
protected

Number of consecutive io errors before declaring failure and quitting.

Definition at line 55 of file oem7_receiver.hpp.

template<typename T>
ros::NodeHandle novatel_oem7_driver::Oem7Receiver< T >::nh_
protected

Definition at line 51 of file oem7_receiver.hpp.

template<typename T>
int novatel_oem7_driver::Oem7Receiver< T >::num_io_errors_
protected

Number of consecuitive io errors.

Definition at line 56 of file oem7_receiver.hpp.


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


novatel_oem7_driver
Author(s):
autogenerated on Tue Mar 9 2021 03:48:00