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) |
bool | republish (GetMessage::Request &request, const std::string &topic, bool latch=false) |
~Client () | |
Public Member Functions inherited from topic_proxy::TopicProxy | |
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 | |
void | clearPublications () |
void | clearSubscriptions () |
void | connectCallback (const SubscriptionInfoPtr &, const ros::SingleSubscriberPublisher &) |
void | disconnectCallback (const SubscriptionInfoPtr &, const ros::SingleSubscriberPublisher &) |
const PublicationInfoPtr & | getPublication (const std::string &topic) |
const SubscriptionInfoPtr & | getSubscription (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) |
Protected Member Functions inherited from topic_proxy::TopicProxy | |
MessageInstanceConstPtr | send (GetMessage::Request &) |
bool | send (PublishMessage::Request &) |
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_ |
Additional Inherited Members | |
Protected Attributes inherited from topic_proxy::TopicProxy | |
ServiceClient | get_message_ |
ServiceClient | publish_message_ |
Definition at line 13 of file client.cpp.
|
private |
Definition at line 42 of file client.cpp.
|
private |
Definition at line 32 of file client.cpp.
|
inline |
Definition at line 48 of file client.cpp.
|
inline |
Definition at line 55 of file client.cpp.
|
inline |
Definition at line 142 of file client.cpp.
|
inlineprotected |
Definition at line 281 of file client.cpp.
|
inlineprotected |
Definition at line 273 of file client.cpp.
|
inlineprotected |
Definition at line 290 of file client.cpp.
|
inlineprotected |
Definition at line 294 of file client.cpp.
|
inlineprotected |
Definition at line 198 of file client.cpp.
|
inlineprotected |
Definition at line 191 of file client.cpp.
|
inlineprotected |
Definition at line 251 of file client.cpp.
|
inlineprotected |
Definition at line 226 of file client.cpp.
|
inline |
Definition at line 62 of file client.cpp.
|
inlineprotected |
Definition at line 205 of file client.cpp.
|
inline |
Definition at line 148 of file client.cpp.
|
inline |
Definition at line 153 of file client.cpp.
|
inlineprotected |
Definition at line 221 of file client.cpp.
|
private |
Definition at line 18 of file client.cpp.
|
private |
Definition at line 16 of file client.cpp.
|
private |
Definition at line 43 of file client.cpp.
|
private |
Definition at line 17 of file client.cpp.
|
private |
Definition at line 33 of file client.cpp.
|
private |
Definition at line 45 of file client.cpp.