#include <serial_session.h>
Public Member Functions | |
SerialSession (boost::asio::io_service &io_service, std::string port, int baud) | |
Private Member Functions | |
bool | attempt_connection (bool log_errors=true) |
void | connect_with_reconnection (bool log_errors=true) |
~SerialSession () | |
Static Private Member Functions | |
static void | restart_session (boost::asio::io_service &io_service, std::string port, int baud, boost::shared_ptr< boost::asio::deadline_timer > &timer) |
Private Attributes | |
int | baud_ |
boost::posix_time::time_duration | interval_ |
std::string | port_ |
boost::asio::deadline_timer | timer_ |
Definition at line 48 of file serial_session.h.
rosserial_server::SerialSession::SerialSession | ( | boost::asio::io_service & | io_service, |
std::string | port, | ||
int | baud | ||
) | [inline] |
Definition at line 51 of file serial_session.h.
rosserial_server::SerialSession::~SerialSession | ( | ) | [inline, private] |
Definition at line 59 of file serial_session.h.
bool rosserial_server::SerialSession::attempt_connection | ( | bool | log_errors = true | ) | [inline, private] |
Definition at line 86 of file serial_session.h.
void rosserial_server::SerialSession::connect_with_reconnection | ( | bool | log_errors = true | ) | [inline, private] |
Definition at line 108 of file serial_session.h.
static void rosserial_server::SerialSession::restart_session | ( | boost::asio::io_service & | io_service, |
std::string | port, | ||
int | baud, | ||
boost::shared_ptr< boost::asio::deadline_timer > & | timer | ||
) | [inline, static, private] |
Definition at line 75 of file serial_session.h.
int rosserial_server::SerialSession::baud_ [private] |
Definition at line 120 of file serial_session.h.
boost::posix_time::time_duration rosserial_server::SerialSession::interval_ [private] |
Definition at line 121 of file serial_session.h.
std::string rosserial_server::SerialSession::port_ [private] |
Definition at line 119 of file serial_session.h.
boost::asio::deadline_timer rosserial_server::SerialSession::timer_ [private] |
Definition at line 122 of file serial_session.h.