#include <oem7_receiver.hpp>
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 | |
T | 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_ |
Common functionality related to boost::asio
Definition at line 39 of file oem7_receiver.hpp.
|
private |
Enumerator | |
---|---|
DEFAULT_MAX_NUM_IO_ERRORS |
Definition at line 43 of file oem7_receiver.hpp.
|
inline |
Definition at line 100 of file oem7_receiver.hpp.
|
inlinevirtual |
Definition at line 108 of file oem7_receiver.hpp.
|
inlineprotected |
Close the endpoint; delay to avoid tight re-open loop
Definition at line 91 of file oem7_receiver.hpp.
|
protectedpure virtual |
Read some data from the endpoint.
Implemented in novatel_oem7_driver::Oem7ReceiverPort, novatel_oem7_driver::Oem7ReceiverNet< T >, novatel_oem7_driver::Oem7ReceiverNet< boost::asio::ip::udp >, and novatel_oem7_driver::Oem7ReceiverNet< boost::asio::ip::tcp >.
|
protectedpure virtual |
Attempt to opena the endpoint.
Implemented in novatel_oem7_driver::Oem7ReceiverNet< T >, novatel_oem7_driver::Oem7ReceiverPort, novatel_oem7_driver::Oem7ReceiverNet< boost::asio::ip::udp >, and novatel_oem7_driver::Oem7ReceiverNet< boost::asio::ip::tcp >.
|
protectedpure virtual |
Write some data to the endpoint
Implemented in novatel_oem7_driver::Oem7ReceiverPort, novatel_oem7_driver::Oem7ReceiverNet< T >, novatel_oem7_driver::Oem7ReceiverNet< boost::asio::ip::udp >, and novatel_oem7_driver::Oem7ReceiverNet< boost::asio::ip::tcp >.
|
inlineprotected |
Definition at line 58 of file oem7_receiver.hpp.
|
inlinevirtual |
Implements novatel_oem7_driver::Oem7ReceiverIf.
Definition at line 112 of file oem7_receiver.hpp.
|
inlinevirtual |
Implements novatel_oem7_driver::Oem7ReceiverIf.
Definition at line 121 of file oem7_receiver.hpp.
|
inlinevirtual |
Implements novatel_oem7_driver::Oem7ReceiverIf.
Definition at line 151 of file oem7_receiver.hpp.
|
protected |
boost::asio communication endoint; socket, serial port, etc.
Definition at line 53 of file oem7_receiver.hpp.
|
private |
Definition at line 41 of file oem7_receiver.hpp.
|
protected |
Number of consecutive io errors before declaring failure and quitting.
Definition at line 55 of file oem7_receiver.hpp.
|
protected |
Definition at line 51 of file oem7_receiver.hpp.
|
protected |
Number of consecuitive io errors.
Definition at line 56 of file oem7_receiver.hpp.