Go to the documentation of this file.
29 #ifndef ROSCPP_PUBLICATION_H
30 #define ROSCPP_PUBLICATION_H
32 #include "ros/forwards.h"
33 #include "ros/advertise_options.h"
35 #include "xmlrpcpp/XmlRpc.h"
59 const std::string& _md5sum,
60 const std::string& message_definition,
90 bool hasSubscribers();
94 uint32_t getNumSubscribers();
96 void getPublishTypes(
bool&
serialize,
bool& nocopy,
const std::type_info& ti);
101 const std::string&
getName()
const {
return name_; }
109 const std::string&
getMD5Sum()
const {
return md5sum_; }
139 uint32_t incrementSequence();
141 size_t getNumCallbacks();
146 void processPublishQueue();
148 bool validateHeader(
const Header& h, std::string& error_msg);
151 void dropAllConnections();
193 #endif // ROSCPP_PUBLICATION_H
SerializedMessage last_message_
std::mutex subscriber_links_mutex_
const char * datatype()
returns DataType<M>::value();
void serialize(Stream &stream, const T &t)
Serialize an object. Stream here should normally be a ros::serialization::OStream.
const std::string & getMessageDefinition() const
Returns the full definition of the message published by this publication.
std::vector< SubscriberLinkPtr > V_SubscriberLink
std::vector< SerializedMessage > V_SerializedMessage
std::mutex callbacks_mutex_
bool isDropped()
Returns if this publication is valid or not.
V_SerializedMessage publish_queue_
const std::string & getDataType() const
Returns the data type of the message published by this publication.
std::mutex publish_queue_mutex_
V_SubscriberLink subscriber_links_
std::shared_ptr< SubscriberLink > SubscriberLinkPtr
const std::string & getName() const
Returns the name of the topic this publication broadcasts to.
uint32_t intraprocess_subscriber_count_
size_t getMaxQueue()
returns the max queue size of this publication
A Publication manages an advertised topic.
std::shared_ptr< SubscriberCallbacks > SubscriberCallbacksPtr
const std::string & getMD5Sum() const
Returns the md5sum of the message published by this publication.
std::string message_definition_
uint32_t getSequence()
Returns the sequence number.
RPC method arguments and results are represented by Values.
std::vector< SubscriberCallbacksPtr > V_Callback
sick_scan_xd
Author(s): Michael Lehning
, Jochen Sprickerhof , Martin Günther
autogenerated on Fri Oct 25 2024 02:47:10