Classes | Public Member Functions | Protected Member Functions | Private Types | Private Attributes
topic_proxy::Server Class Reference

List of all members.


struct  PublicationInfo
struct  SubscriptionInfo

Public Member Functions

const std::string & getHost () const
uint16_t getTCPPort () const
 Server ()
 ~Server ()

Protected Member Functions

void clearPublications ()
void clearSubscriptions ()
void connectCallback (const PublicationInfoPtr &, const ros::SingleSubscriberPublisher &)
void disconnectCallback (const PublicationInfoPtr &, const ros::SingleSubscriberPublisher &)
const PublicationInfoPtrgetPublication (const std::string &topic)
const SubscriptionInfoPtrgetSubscription (const std::string &topic)
bool handleGetMessage (GetMessage::Request &request, GetMessage::Response &response)
bool handlePublishMessage (PublishMessage::Request &request, PublishMessage::Response &response)
void subscriberCallback (const SubscriptionInfoPtr &subscription, const MessageEvent &event)

Private Types

typedef ros::MessageEvent
< const ShapeShifter
typedef boost::shared_ptr
< PublicationInfo
typedef boost::shared_ptr
< SubscriptionInfo

Private Attributes

ros::ServiceServer get_message_server_
ros::NodeHandle nh_
std::map< std::string,
ros::ServiceServer publish_message_server_
std::map< std::string,

Detailed Description

Definition at line 18 of file server.cpp.

Member Typedef Documentation

Definition at line 25 of file server.cpp.

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

Definition at line 41 of file server.cpp.

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

Definition at line 34 of file server.cpp.

Constructor & Destructor Documentation

Definition at line 45 of file server.cpp.

Definition at line 51 of file server.cpp.

Member Function Documentation

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

Definition at line 168 of file server.cpp.

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

Definition at line 161 of file server.cpp.

void topic_proxy::Server::connectCallback ( const PublicationInfoPtr ,
const ros::SingleSubscriberPublisher  
) [inline, protected]

Definition at line 176 of file server.cpp.

void topic_proxy::Server::disconnectCallback ( const PublicationInfoPtr ,
const ros::SingleSubscriberPublisher  
) [inline, protected]

Definition at line 179 of file server.cpp.

const std::string& topic_proxy::Server::getHost ( ) const [inline]

Definition at line 57 of file server.cpp.

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

Definition at line 75 of file server.cpp.

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

Definition at line 68 of file server.cpp.

uint16_t topic_proxy::Server::getTCPPort ( ) const [inline]

Definition at line 62 of file server.cpp.

bool topic_proxy::Server::handleGetMessage ( GetMessage::Request &  request,
GetMessage::Response &  response 
) [inline, protected]

Definition at line 82 of file server.cpp.

bool topic_proxy::Server::handlePublishMessage ( PublishMessage::Request &  request,
PublishMessage::Response &  response 
) [inline, protected]

Definition at line 142 of file server.cpp.

void topic_proxy::Server::subscriberCallback ( const SubscriptionInfoPtr subscription,
const MessageEvent event 
) [inline, protected]

Definition at line 137 of file server.cpp.

Member Data Documentation

Definition at line 22 of file server.cpp.

Definition at line 21 of file server.cpp.

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

Definition at line 42 of file server.cpp.

Definition at line 23 of file server.cpp.

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

Definition at line 35 of file server.cpp.

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

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