Classes | |
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 PublicationInfoPtr & | getPublication (const std::string &topic) |
const SubscriptionInfoPtr & | getSubscription (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 > | MessageEvent |
typedef boost::shared_ptr < PublicationInfo > | PublicationInfoPtr |
typedef boost::shared_ptr < SubscriptionInfo > | SubscriptionInfoPtr |
Private Attributes | |
ros::ServiceServer | get_message_server_ |
ros::NodeHandle | nh_ |
std::map< std::string, PublicationInfoPtr > | publications_ |
ros::ServiceServer | publish_message_server_ |
std::map< std::string, SubscriptionInfoPtr > | subscriptions_ |
Definition at line 18 of file server.cpp.
typedef ros::MessageEvent<const ShapeShifter> topic_proxy::Server::MessageEvent [private] |
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.
topic_proxy::Server::Server | ( | ) | [inline] |
Definition at line 45 of file server.cpp.
topic_proxy::Server::~Server | ( | ) | [inline] |
Definition at line 51 of file server.cpp.
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.
Definition at line 22 of file server.cpp.
ros::NodeHandle topic_proxy::Server::nh_ [private] |
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.