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