MoveIt Pro Behavior
Core Behaviors for MoveIt Pro
moveit_studio::behaviors::PublishString Class Referencefinal

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

#include <publish_string.hpp>

Inheritance diagram for moveit_studio::behaviors::PublishString:
Collaboration diagram for moveit_studio::behaviors::PublishString:

Public Member Functions

 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 Member Functions inherited from moveit_studio::behaviors::SendMessageToTopicBehaviorBase< std_msgs::msg::String >
 SendMessageToTopicBehaviorBase (const std::string &name, const BT::NodeConfiguration &config, const std::shared_ptr< BehaviorContext > &shared_resources)
 Constructs SendMessageToTopicBehaviorBase using the RclcppPublisherInterface. More...
 
 SendMessageToTopicBehaviorBase (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)
 Constructs SendMessageToTopicBehaviorBase using a user-provided implementation of PublisherInterfaceBase. More...
 
virtual ~SendMessageToTopicBehaviorBase ()=default
 
BT::NodeStatus tick () override
 
- Public Member Functions inherited from moveit_studio::behaviors::SharedResourcesNode< BT::SyncActionNode >
 SharedResourcesNode (const std::string &name, const BT::NodeConfiguration &config, const std::shared_ptr< BehaviorContext > &shared_resources)
 Constructor for SharedResourcesNode. Called by BT::BehaviorTreeFactory when creating a new behavior tree containing this node. More...
 

Static Public Member Functions

static BT::PortsList providedPorts ()
 
static BT::KeyValueVector metadata ()
 

Additional Inherited Members

- Static Public Attributes inherited from moveit_studio::behaviors::SendMessageToTopicBehaviorBase< std_msgs::msg::String >
static constexpr auto kPortIDMessage
 Port names. More...
 
static constexpr auto kPortIDTopicName
 
static constexpr auto kPortIDQueueSize
 
static constexpr auto kPortIDUseBestEffort
 
- Protected Attributes inherited from moveit_studio::behaviors::SharedResourcesNode< BT::SyncActionNode >
std::shared_ptr< BehaviorContextshared_resources_
 

Detailed Description

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

Data Port Name Port Type Object Type
message Input std::string OR std_msgs::msg::String
topic Input std::string
queue_size Input size_t
use_best_effort Input bool

Constructor & Destructor Documentation

◆ PublishString() [1/2]

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

◆ PublishString() [2/2]

moveit_studio::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 
)

Member Function Documentation

◆ metadata()

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

◆ providedPorts()

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

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