Classes | Public Member Functions | Protected Member Functions | Private Types | Private Attributes
topic_proxy::Client Class Reference
Inheritance diagram for topic_proxy::Client:
Inheritance graph
[legend]

List of all members.

Classes

struct  PublicationInfo
struct  SubscriptionInfo

Public Member Functions

 Client (const std::string &ns)
 Client (const std::string &host, uint32_t port, const std::string &ns=std::string())
bool init ()
bool republish (GetMessage::Request &request, bool latch=false)
 ~Client ()

Protected Member Functions

void clearPublications ()
void clearSubscriptions ()
void connectCallback (const SubscriptionInfoPtr &, const ros::SingleSubscriberPublisher &)
void disconnectCallback (const SubscriptionInfoPtr &, const ros::SingleSubscriberPublisher &)
const PublicationInfoPtrgetPublication (const std::string &topic)
const SubscriptionInfoPtrgetSubscription (const std::string &topic)
bool handleAddPublisher (AddPublisher::Request &request, AddPublisher::Response &response)
bool handleRequestMessage (RequestMessage::Request &request, RequestMessage::Response &response)
void publishCallback (const PublicationInfoPtr &publication, const blob::ShapeShifterConstPtr &message)
void timerCallback (const SubscriptionInfoPtr &subscription, const ros::TimerEvent &event)

Private Types

typedef boost::shared_ptr
< PublicationInfo
PublicationInfoPtr
typedef boost::shared_ptr
< SubscriptionInfo
SubscriptionInfoPtr

Private Attributes

ros::ServiceServer add_publisher_service_
ros::NodeHandle nh_
std::map< std::string,
PublicationInfoPtr
publications_
ros::ServiceServer request_message_service_
std::map< std::string,
SubscriptionInfoPtr
subscriptions_
std::string topic_prefix_

Detailed Description

Definition at line 13 of file client.cpp.


Member Typedef Documentation

typedef boost::shared_ptr<PublicationInfo> topic_proxy::Client::PublicationInfoPtr [private]

Definition at line 42 of file client.cpp.

typedef boost::shared_ptr<SubscriptionInfo> topic_proxy::Client::SubscriptionInfoPtr [private]

Definition at line 32 of file client.cpp.


Constructor & Destructor Documentation

topic_proxy::Client::Client ( const std::string &  ns) [inline]

Definition at line 48 of file client.cpp.

topic_proxy::Client::Client ( const std::string &  host,
uint32_t  port,
const std::string &  ns = std::string() 
) [inline]

Definition at line 55 of file client.cpp.

Definition at line 142 of file client.cpp.


Member Function Documentation

void topic_proxy::Client::clearPublications ( ) [inline, protected]

Definition at line 275 of file client.cpp.

void topic_proxy::Client::clearSubscriptions ( ) [inline, protected]

Definition at line 267 of file client.cpp.

void topic_proxy::Client::connectCallback ( const SubscriptionInfoPtr ,
const ros::SingleSubscriberPublisher  
) [inline, protected]

Definition at line 284 of file client.cpp.

Definition at line 288 of file client.cpp.

const PublicationInfoPtr& topic_proxy::Client::getPublication ( const std::string &  topic) [inline, protected]

Definition at line 193 of file client.cpp.

const SubscriptionInfoPtr& topic_proxy::Client::getSubscription ( const std::string &  topic) [inline, protected]

Definition at line 186 of file client.cpp.

bool topic_proxy::Client::handleAddPublisher ( AddPublisher::Request &  request,
AddPublisher::Response &  response 
) [inline, protected]

Definition at line 245 of file client.cpp.

bool topic_proxy::Client::handleRequestMessage ( RequestMessage::Request &  request,
RequestMessage::Response &  response 
) [inline, protected]

Definition at line 221 of file client.cpp.

bool topic_proxy::Client::init ( ) [inline]

Definition at line 62 of file client.cpp.

void topic_proxy::Client::publishCallback ( const PublicationInfoPtr publication,
const blob::ShapeShifterConstPtr message 
) [inline, protected]

Definition at line 200 of file client.cpp.

bool topic_proxy::Client::republish ( GetMessage::Request &  request,
bool  latch = false 
) [inline]

Definition at line 148 of file client.cpp.

void topic_proxy::Client::timerCallback ( const SubscriptionInfoPtr subscription,
const ros::TimerEvent event 
) [inline, protected]

Definition at line 216 of file client.cpp.


Member Data Documentation

Definition at line 18 of file client.cpp.

Definition at line 16 of file client.cpp.

std::map<std::string, PublicationInfoPtr> topic_proxy::Client::publications_ [private]

Definition at line 43 of file client.cpp.

Definition at line 17 of file client.cpp.

std::map<std::string, SubscriptionInfoPtr> topic_proxy::Client::subscriptions_ [private]

Definition at line 33 of file client.cpp.

std::string topic_proxy::Client::topic_prefix_ [private]

Definition at line 45 of file client.cpp.


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


topic_proxy
Author(s): Johannes Meyer
autogenerated on Mon Oct 6 2014 07:55:47