![]() |
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= | |
PublisherHandler (const PublisherHandler &other) | |
copy constructor | |
PublisherHandler (const rclcpp::Node::SharedPtr &node, const std::string &address) | |
slim constructor | |
PublisherHandler (const PublisherHandlerOptions &options, const std::string &address) | |
full constructor | |
void | publish (const TopicType &msg) |
publish message | |
void | publish (const std::shared_ptr< TopicType > &msg) |
publish message, std ptr overload | |
void | publish (typename TopicType::ConstSharedPtr msg) |
publish message, std const ptr overload | |
unsigned int | getNumSubscribers (void) |
get number of subscribers | |
user wrapper of the publisher handler implementation
mrs_lib::PublisherHandler< TopicType >::PublisherHandler | ( | const PublisherHandler< TopicType > & | other | ) |
copy constructor
other |
mrs_lib::PublisherHandler< TopicType >::PublisherHandler | ( | const rclcpp::Node::SharedPtr & | node, |
const std::string & | address | ||
) |
slim constructor
node | |
address |
mrs_lib::PublisherHandler< TopicType >::PublisherHandler | ( | const PublisherHandlerOptions & | options, |
const std::string & | address | ||
) |
full constructor
options | |
address |
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 std::shared_ptr< TopicType > & | msg | ) |
publish message, std ptr overload
msg |
void mrs_lib::PublisherHandler< TopicType >::publish | ( | const TopicType & | msg | ) |
publish message
msg |
void mrs_lib::PublisherHandler< TopicType >::publish | ( | typename TopicType::ConstSharedPtr | msg | ) |
publish message, std const ptr overload
msg |
publish message, std const ptr overload
msg |