|
MoveIt Pro API
Core Behaviors for MoveIt Pro
|
Defines an interface to a publisher that sends a message to a topic. More...
#include <publisher_interface.hpp>

Public Member Functions | |
| virtual | ~PublisherInterfaceBase ()=default |
| virtual tl::expected< void, std::string > | initialize (const std::string &topic_name, const size_t queue_size, const bool use_best_effort)=0 |
| Virtual function to initialize the publisher interface. | |
| virtual tl::expected< void, std::string > | publish (const MessageT &message)=0 |
| Virtual function to publish a message to a topic. | |
Defines an interface to a publisher that sends a message to a topic.
| MessageT | Message type used to specialize this class. |
|
virtualdefault |
|
pure virtual |
Virtual function to initialize the publisher interface.
| topic_name | Name of the topic to use in the publisher interface. |
| queue_size | The queue size for the publisher interface. |
| use_best_effort | Whether best_effort should be used or not for the publisher interface. |
Implemented in moveit_studio::behaviors::RclcppPublisherInterface< MessageT >.
|
pure virtual |
Virtual function to publish a message to a topic.
| message | The message to publish. |
Implemented in moveit_studio::behaviors::RclcppPublisherInterface< MessageT >.