Go to the documentation of this file.
29 #ifndef ROSCPP_TOPIC_MANAGER_H
30 #define ROSCPP_TOPIC_MANAGER_H
34 #include "ros/serialization.h"
37 #include "xmlrpcpp/XmlRpcValue.h"
46 struct SubscribeOptions;
47 struct AdvertiseOptions;
58 class ConnectionManager;
61 class SubscriptionCallbackHelper;
111 size_t getNumSubscribers(
const std::string &_topic);
112 size_t getNumSubscriptions();
120 size_t getNumPublishers(
const std::string &_topic);
123 void publish(
const std::string& topic,
const M& message)
125 using namespace serialization;
128 publish(topic, std::bind(serializeMessage<M>, std::ref(
message)), m);
133 void incrementSequence(
const std::string &_topic);
134 bool isLatched(
const std::string& topic);
159 bool isTopicAdvertised(
const std::string& topic);
162 bool unregisterSubscriber(
const std::string& topic);
163 bool unregisterPublisher(
const std::string& topic);
165 PublicationPtr lookupPublicationWithoutLock(
const std::string &topic);
167 void processPublishQueues();
211 bool pubUpdate(
const std::string &topic,
const std::vector<std::string> &pubs);
240 #endif // ROSCPP_TOPIC_MANAGER_H
std::shared_ptr< XMLRPCManager > XMLRPCManagerPtr
boost::recursive_mutex advertised_topics_mutex_
std::mutex advertised_topic_names_mutex_
std::shared_ptr< ConnectionManager > ConnectionManagerPtr
const char * datatype()
returns DataType<M>::value();
std::shared_ptr< TopicManager > TopicManagerPtr
volatile bool shutting_down_
ROSCPP_DECL void getSubscribedTopics(V_string &topics)
Get the list of topics subscribed to by this node.
ROSCPP_DECL void shutdown()
Disconnects everything and unregisters from the master. It is generally not necessary to call this fu...
XMLRPCManagerPtr xmlrpc_manager_
Encapsulates all options available for creating a Publisher.
def message(msg, *args, **kwargs)
ROSCPP_DECL void getAdvertisedTopics(V_string &topics)
Get the list of topics advertised by this node.
ConnectionManagerPtr connection_manager_
std::shared_ptr< SubscriptionCallbackHelper > SubscriptionCallbackHelperPtr
L_Subscription subscriptions_
std::shared_ptr< PollManager > PollManagerPtr
PollManagerPtr poll_manager_
V_Publication advertised_topics_
std::list< SubscriptionPtr > L_Subscription
void publish(const std::string &topic, const M &message)
std::shared_ptr< SubscriberCallbacks > SubscriberCallbacksPtr
std::shared_ptr< Publication > PublicationPtr
std::mutex shutting_down_mutex_
std::list< std::string > advertised_topic_names_
Encapsulates all options available for creating a Subscriber.
ROSCPP_DECL void start()
Actually starts the internals of the node (spins up threads, starts the network polling and xmlrpc lo...
RPC method arguments and results are represented by Values.
std::shared_ptr< Subscription > SubscriptionPtr
std::vector< std::string > V_string
std::vector< PublicationPtr > V_Publication
sick_scan_xd
Author(s): Michael Lehning
, Jochen Sprickerhof , Martin Günther
autogenerated on Fri Oct 25 2024 02:47:12