#include <topic_proxy.h>
Public Member Functions | |
bool | connect () |
const std::string & | getHost () const |
template<class M > | |
boost::shared_ptr< const M > | getMessage (const std::string &topic, ros::Duration timeout=ros::Duration(), bool compressed=false) |
uint16_t | getTCPPort () const |
template<class M > | |
void | publishMessage (const M &message, const std::string &topic, bool compressed=false) |
void | shutdown () |
TopicProxy () | |
TopicProxy (const std::string &host, uint32_t port=0) | |
virtual | ~TopicProxy () |
Protected Member Functions | |
MessageInstanceConstPtr | send (GetMessage::Request &) |
bool | send (PublishMessage::Request &) |
Protected Attributes | |
ServiceClient | get_message_ |
ServiceClient | publish_message_ |
Private Attributes | |
std::string | host_ |
uint16_t | port_ |
Definition at line 44 of file topic_proxy.h.
Definition at line 20 of file topic_proxy.cpp.
topic_proxy::TopicProxy::TopicProxy | ( | const std::string & | host, |
uint32_t | port = 0 |
||
) |
Definition at line 24 of file topic_proxy.cpp.
topic_proxy::TopicProxy::~TopicProxy | ( | ) | [virtual] |
Definition at line 43 of file topic_proxy.cpp.
bool topic_proxy::TopicProxy::connect | ( | ) |
Definition at line 31 of file topic_proxy.cpp.
const std::string& topic_proxy::TopicProxy::getHost | ( | ) | const [inline] |
Definition at line 58 of file topic_proxy.h.
boost::shared_ptr< const M > topic_proxy::TopicProxy::getMessage | ( | const std::string & | topic, |
ros::Duration | timeout = ros::Duration() , |
||
bool | compressed = false |
||
) |
Definition at line 73 of file topic_proxy.h.
uint16_t topic_proxy::TopicProxy::getTCPPort | ( | ) | const [inline] |
Definition at line 59 of file topic_proxy.h.
void topic_proxy::TopicProxy::publishMessage | ( | const M & | message, |
const std::string & | topic, | ||
bool | compressed = false |
||
) |
Definition at line 86 of file topic_proxy.h.
MessageInstanceConstPtr topic_proxy::TopicProxy::send | ( | GetMessage::Request & | request | ) | [protected] |
Definition at line 47 of file topic_proxy.cpp.
bool topic_proxy::TopicProxy::send | ( | PublishMessage::Request & | request | ) | [protected] |
Definition at line 68 of file topic_proxy.cpp.
void topic_proxy::TopicProxy::shutdown | ( | ) |
Definition at line 37 of file topic_proxy.cpp.
ServiceClient topic_proxy::TopicProxy::get_message_ [protected] |
Definition at line 65 of file topic_proxy.h.
std::string topic_proxy::TopicProxy::host_ [private] |
Definition at line 47 of file topic_proxy.h.
uint16_t topic_proxy::TopicProxy::port_ [private] |
Definition at line 48 of file topic_proxy.h.
Definition at line 68 of file topic_proxy.h.