Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes | List of all members
topic_proxy::TopicProxy Class Reference

#include <topic_proxy.h>

Inheritance diagram for topic_proxy::TopicProxy:
Inheritance graph
[legend]

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_
 

Detailed Description

Definition at line 44 of file topic_proxy.h.

Constructor & Destructor Documentation

topic_proxy::TopicProxy::TopicProxy ( )

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.

Member Function Documentation

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.

template<class M >
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.

template<class M >
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.

Member Data Documentation

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.

ServiceClient topic_proxy::TopicProxy::publish_message_
protected

Definition at line 68 of file topic_proxy.h.


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


topic_proxy
Author(s): Johannes Meyer
autogenerated on Sat Jul 27 2019 03:35:25