#include <session.h>
Public Member Functions | |
bool | is_active () |
Session (boost::asio::io_service &io_service) | |
void | set_require_param (std::string param_name) |
Socket & | socket () |
void | start () |
void | stop () |
Private Types | |
enum | { buffer_max = 1023 } |
Private Member Functions | |
void | attempt_sync () |
template<typename M > | |
bool | check_set (std::string param_name, M map) |
void | handle_log (ros::serialization::IStream &stream) |
void | handle_time (ros::serialization::IStream &stream) |
void | read_body (ros::serialization::IStream &stream, uint16_t topic_id) |
void | read_failed (const boost::system::error_code &error) |
void | read_id_length (ros::serialization::IStream &stream) |
void | read_sync_first (ros::serialization::IStream &stream) |
void | read_sync_header () |
void | read_sync_second (ros::serialization::IStream &stream) |
void | request_topics () |
void | required_topics_check (const boost::system::error_code &error) |
void | ros_spin_timeout (const boost::system::error_code &error) |
void | set_sync_timeout (const boost::posix_time::time_duration &interval) |
void | setup_publisher (ros::serialization::IStream &stream) |
void | setup_service_client_publisher (ros::serialization::IStream &stream) |
void | setup_service_client_subscriber (ros::serialization::IStream &stream) |
void | setup_subscriber (ros::serialization::IStream &stream) |
void | sync_timeout (const boost::system::error_code &error) |
void | write_completion_cb (const boost::system::error_code &error, BufferPtr buffer_ptr) |
void | write_message (Buffer &message, const uint16_t topic_id) |
Static Private Member Functions | |
static uint8_t | checksum (ros::serialization::IStream &stream) |
static uint8_t | checksum (uint16_t val) |
Private Attributes | |
bool | active_ |
AsyncReadBuffer< Socket > | async_read_buffer_ |
boost::posix_time::time_duration | attempt_interval_ |
std::map< uint16_t, boost::function< void(ros::serialization::IStream &)> > | callbacks_ |
ros::NodeHandle | nh_ |
std::map< uint16_t, PublisherPtr > | publishers_ |
boost::posix_time::time_duration | require_check_interval_ |
boost::asio::deadline_timer | require_check_timer_ |
std::string | require_param_name_ |
ros::CallbackQueue | ros_callback_queue_ |
boost::posix_time::time_duration | ros_spin_interval_ |
boost::asio::deadline_timer | ros_spin_timer_ |
std::map< std::string, ServiceClientPtr > | services_ |
Socket | socket_ |
std::map< uint16_t, SubscriberPtr > | subscribers_ |
boost::asio::deadline_timer | sync_timer_ |
boost::posix_time::time_duration | timeout_interval_ |
anonymous enum [private] |
rosserial_server::Session< Socket >::Session | ( | boost::asio::io_service & | io_service | ) | [inline] |
void rosserial_server::Session< Socket >::attempt_sync | ( | ) | [inline, private] |
bool rosserial_server::Session< Socket >::check_set | ( | std::string | param_name, |
M | map | ||
) | [inline, private] |
static uint8_t rosserial_server::Session< Socket >::checksum | ( | ros::serialization::IStream & | stream | ) | [inline, static, private] |
static uint8_t rosserial_server::Session< Socket >::checksum | ( | uint16_t | val | ) | [inline, static, private] |
void rosserial_server::Session< Socket >::handle_log | ( | ros::serialization::IStream & | stream | ) | [inline, private] |
void rosserial_server::Session< Socket >::handle_time | ( | ros::serialization::IStream & | stream | ) | [inline, private] |
bool rosserial_server::Session< Socket >::is_active | ( | ) | [inline] |
void rosserial_server::Session< Socket >::read_body | ( | ros::serialization::IStream & | stream, |
uint16_t | topic_id | ||
) | [inline, private] |
void rosserial_server::Session< Socket >::read_failed | ( | const boost::system::error_code & | error | ) | [inline, private] |
void rosserial_server::Session< Socket >::read_id_length | ( | ros::serialization::IStream & | stream | ) | [inline, private] |
void rosserial_server::Session< Socket >::read_sync_first | ( | ros::serialization::IStream & | stream | ) | [inline, private] |
void rosserial_server::Session< Socket >::read_sync_header | ( | ) | [inline, private] |
void rosserial_server::Session< Socket >::read_sync_second | ( | ros::serialization::IStream & | stream | ) | [inline, private] |
void rosserial_server::Session< Socket >::request_topics | ( | ) | [inline, private] |
void rosserial_server::Session< Socket >::required_topics_check | ( | const boost::system::error_code & | error | ) | [inline, private] |
void rosserial_server::Session< Socket >::ros_spin_timeout | ( | const boost::system::error_code & | error | ) | [inline, private] |
void rosserial_server::Session< Socket >::set_require_param | ( | std::string | param_name | ) | [inline] |
This is to set the name of the required topics parameter from the default of ~require. You might want to do this to avoid a conflict with something else in that namespace, or because you're embedding multiple instances of rosserial_server in a single process.
void rosserial_server::Session< Socket >::set_sync_timeout | ( | const boost::posix_time::time_duration & | interval | ) | [inline, private] |
void rosserial_server::Session< Socket >::setup_publisher | ( | ros::serialization::IStream & | stream | ) | [inline, private] |
void rosserial_server::Session< Socket >::setup_service_client_publisher | ( | ros::serialization::IStream & | stream | ) | [inline, private] |
void rosserial_server::Session< Socket >::setup_service_client_subscriber | ( | ros::serialization::IStream & | stream | ) | [inline, private] |
void rosserial_server::Session< Socket >::setup_subscriber | ( | ros::serialization::IStream & | stream | ) | [inline, private] |
Socket& rosserial_server::Session< Socket >::socket | ( | ) | [inline] |
void rosserial_server::Session< Socket >::start | ( | ) | [inline] |
void rosserial_server::Session< Socket >::stop | ( | ) | [inline] |
void rosserial_server::Session< Socket >::sync_timeout | ( | const boost::system::error_code & | error | ) | [inline, private] |
void rosserial_server::Session< Socket >::write_completion_cb | ( | const boost::system::error_code & | error, |
BufferPtr | buffer_ptr | ||
) | [inline, private] |
void rosserial_server::Session< Socket >::write_message | ( | Buffer & | message, |
const uint16_t | topic_id | ||
) | [inline, private] |
bool rosserial_server::Session< Socket >::active_ [private] |
AsyncReadBuffer<Socket> rosserial_server::Session< Socket >::async_read_buffer_ [private] |
boost::posix_time::time_duration rosserial_server::Session< Socket >::attempt_interval_ [private] |
std::map<uint16_t, boost::function<void(ros::serialization::IStream&)> > rosserial_server::Session< Socket >::callbacks_ [private] |
ros::NodeHandle rosserial_server::Session< Socket >::nh_ [private] |
std::map<uint16_t, PublisherPtr> rosserial_server::Session< Socket >::publishers_ [private] |
boost::posix_time::time_duration rosserial_server::Session< Socket >::require_check_interval_ [private] |
boost::asio::deadline_timer rosserial_server::Session< Socket >::require_check_timer_ [private] |
std::string rosserial_server::Session< Socket >::require_param_name_ [private] |
ros::CallbackQueue rosserial_server::Session< Socket >::ros_callback_queue_ [private] |
boost::posix_time::time_duration rosserial_server::Session< Socket >::ros_spin_interval_ [private] |
boost::asio::deadline_timer rosserial_server::Session< Socket >::ros_spin_timer_ [private] |
std::map<std::string, ServiceClientPtr> rosserial_server::Session< Socket >::services_ [private] |
Socket rosserial_server::Session< Socket >::socket_ [private] |
std::map<uint16_t, SubscriberPtr> rosserial_server::Session< Socket >::subscribers_ [private] |
boost::asio::deadline_timer rosserial_server::Session< Socket >::sync_timer_ [private] |
boost::posix_time::time_duration rosserial_server::Session< Socket >::timeout_interval_ [private] |