MoveIt Pro Behavior Interface
5.0.1
Library for developing custom behaviors for use in MoveIt Pro
|
Defines an interface to a subscriber that blocks while waiting for a message to be received on a topic. More...
#include <get_message_from_topic.hpp>
Public Member Functions | |
virtual | ~SubscriberInterfaceBase ()=default |
virtual tl::expected< void, std::string > | initialize (const std::string &topic_name, const std::chrono::duration< double > wait_for_message_timeout)=0 |
Virtual function to initialize the subscriber interface. More... | |
virtual tl::expected< MessageT, std::string > | syncGetNextMessage ()=0 |
Virtual function to get the next message through the subscriber interface. More... | |
Defines an interface to a subscriber that blocks while waiting for a message to be received on a topic.
|
virtualdefault |
|
pure virtual |
Virtual function to initialize the subscriber interface.
topic_name | Name of the topic to use in the subscriber interface. |
wait_for_message_timeout | Timeout duration to use in the subscriber interface. |
Implemented in moveit_studio::behaviors::GetMessageFromTopicBehaviorBase< MessageT >::RclcppSubscriberInterface.
|
pure virtual |
Virtual function to get the next message through the subscriber interface.
Implemented in moveit_studio::behaviors::GetMessageFromTopicBehaviorBase< MessageT >::RclcppSubscriberInterface.