Go to the documentation of this file.
28 #ifndef ROSCPP_PUBLICATION_H
29 #define ROSCPP_PUBLICATION_H
36 #include <boost/thread/mutex.hpp>
38 #include <boost/shared_ptr.hpp>
39 #include <boost/shared_array.hpp>
58 const std::string& _md5sum,
59 const std::string& message_definition,
89 bool hasSubscribers();
93 uint32_t getNumSubscribers();
95 void getPublishTypes(
bool& serialize,
bool& nocopy,
const std::type_info& ti);
100 const std::string&
getName()
const {
return name_; }
108 const std::string&
getMD5Sum()
const {
return md5sum_; }
138 uint32_t incrementSequence();
140 size_t getNumCallbacks();
145 void processPublishQueue();
147 bool validateHeader(
const Header& h, std::string& error_msg);
150 void dropAllConnections();
191 #endif // ROSCPP_PUBLICATION_H
std::vector< SerializedMessage > V_SerializedMessage
bool isDropped()
Returns if this publication is valid or not.
boost::shared_ptr< SubscriberLink > SubscriberLinkPtr
const std::string & getName() const
Returns the name of the topic this publication broadcasts to.
boost::mutex subscriber_links_mutex_
std::vector< SubscriberLinkPtr > V_SubscriberLink
boost::mutex callbacks_mutex_
const std::string & getMD5Sum() const
Returns the md5sum of the message published by this publication.
V_SerializedMessage publish_queue_
boost::mutex publish_queue_mutex_
std::string message_definition_
A Publication manages an advertised topic.
std::vector< SubscriberCallbacksPtr > V_Callback
const std::string & getMessageDefinition() const
Returns the full definition of the message published by this publication.
uint32_t intraprocess_subscriber_count_
uint32_t getSequence()
Returns the sequence number.
V_SubscriberLink subscriber_links_
size_t getMaxQueue()
returns the max queue size of this publication
const std::string & getDataType() const
Returns the data type of the message published by this publication.
roscpp
Author(s): Morgan Quigley, Josh Faust, Brian Gerkey, Troy Straszheim, Dirk Thomas
, Jacob Perron
autogenerated on Sat Sep 14 2024 02:59:35