Skip to main content

PublishString Class

Publish a std_msgs::msg::String message to a topic. More...

Declaration

class moveit_pro::behaviors::PublishString { ... }

Included Headers

#include <publish_string.hpp>

Base class

classSendMessageToTopicBehaviorBase<MessageT>

Base class for Behaviors that send a message to a topic. The message contents and topic name are specified as input ports. More...

Public Constructors Index

PublishString (const std::string &name, const BT::NodeConfiguration &config, const std::shared_ptr< BehaviorContext > &shared_resources)
PublishString (const std::string &name, const BT::NodeConfiguration &config, const std::shared_ptr< BehaviorContext > &shared_resources, std::unique_ptr< PublisherInterfaceBase< std_msgs::msg::String > > publisher_interface)

Public Static Functions Index

static BT::PortsListprovidedPorts ()
static BT::KeyValueVectormetadata ()

Description

Publish a std_msgs::msg::String message to a topic.

Data Port NamePort TypeObject Type
messageInputstd::string OR std_msgs::msg::String
topicInputstd::string
queue_sizeInputsize_t
use_best_effortInputbool

Definition at line 47 of file publish_string.hpp.

Public Constructors

PublishString()

moveit_pro::behaviors::PublishString::PublishString (const std::string & name, const BT::NodeConfiguration & config, const std::shared_ptr< BehaviorContext > & shared_resources)

Declaration at line 50 of file publish_string.hpp, definition at line 19 of file publish_string.cpp.

PublishString()

moveit_pro::behaviors::PublishString::PublishString (const std::string & name, const BT::NodeConfiguration & config, const std::shared_ptr< BehaviorContext > & shared_resources, std::unique_ptr< PublisherInterfaceBase< std_msgs::msg::String > > publisher_interface)

Declaration at line 57 of file publish_string.hpp, definition at line 42 of file publish_string.cpp.

Public Static Functions

metadata()

BT::KeyValueVector moveit_pro::behaviors::PublishString::metadata ()
static

Declaration at line 55 of file publish_string.hpp, definition at line 37 of file publish_string.cpp.

providedPorts()

BT::PortsList moveit_pro::behaviors::PublishString::providedPorts ()
static

Declaration at line 53 of file publish_string.hpp, definition at line 25 of file publish_string.cpp.


The documentation for this class was generated from the following files:


Generated via doxygen2docusaurus 2.2.2 by Doxygen 1.9.8.