mrs_lib
Various reusable classes, functions and utilities for use in MRS projects
|
user wrapper of the publisher handler implementation More...
#include <publisher_handler.h>
Public Member Functions | |
PublisherHandler (void) | |
generic constructor | |
~PublisherHandler (void) | |
generic destructor | |
PublisherHandler & | operator= (const PublisherHandler &other) |
operator= More... | |
PublisherHandler (const PublisherHandler &other) | |
copy constructor More... | |
PublisherHandler (ros::NodeHandle &nh, const std::string &address, const unsigned int &buffer_size=1, const bool &latch=false, const double &rate=0) | |
constructor More... | |
void | publish (const TopicType &msg) |
publish message More... | |
void | publish (const boost::shared_ptr< TopicType > &msg) |
publish message, boost ptr overload More... | |
void | publish (const boost::shared_ptr< TopicType const > &msg) |
publish message, boost const ptr overload More... | |
unsigned int | getNumSubscribers (void) |
get number of subscribers More... | |
user wrapper of the publisher handler implementation
mrs_lib::PublisherHandler< TopicType >::PublisherHandler | ( | const PublisherHandler< TopicType > & | other | ) |
copy constructor
other |
mrs_lib::PublisherHandler< TopicType >::PublisherHandler | ( | ros::NodeHandle & | nh, |
const std::string & | address, | ||
const unsigned int & | buffer_size = 1 , |
||
const bool & | latch = false , |
||
const double & | rate = 0 |
||
) |
constructor
nh | ROS node handler |
address | topic address |
buffer_size | buffer size |
latch | latching |
unsigned int mrs_lib::PublisherHandler< TopicType >::getNumSubscribers | ( | void | ) |
get number of subscribers
PublisherHandler< TopicType > & mrs_lib::PublisherHandler< TopicType >::operator= | ( | const PublisherHandler< TopicType > & | other | ) |
operator=
other |
void mrs_lib::PublisherHandler< TopicType >::publish | ( | const boost::shared_ptr< TopicType > & | msg | ) |
publish message, boost ptr overload
msg |
void mrs_lib::PublisherHandler< TopicType >::publish | ( | const boost::shared_ptr< TopicType const > & | msg | ) |
publish message, boost const ptr overload
msg |
void mrs_lib::PublisherHandler< TopicType >::publish | ( | const TopicType & | msg | ) |
publish message
msg |