|
MoveIt Pro API
Core Behaviors for MoveIt Pro
|
Publishes a dynamic transform on /tf at a configured rate. More...
#include <publish_tf.hpp>


Public Member Functions | |
| PublishTF (const std::string &name, const BT::NodeConfiguration &config, const std::shared_ptr< BehaviorContext > &shared_resources) | |
| BT::NodeStatus | onStart () override |
| BT::NodeStatus | onRunning () override |
| void | onHalted () override |
Public Member Functions inherited from moveit_pro::behaviors::SharedResourcesNode< BT::StatefulActionNode > | |
| 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. | |
Static Public Member Functions | |
| static BT::PortsList | providedPorts () |
| static BT::KeyValueVector | metadata () |
Additional Inherited Members | |
Protected Attributes inherited from moveit_pro::behaviors::SharedResourcesNode< BT::StatefulActionNode > | |
| std::shared_ptr< BehaviorContext > | shared_resources_ |
Publishes a dynamic transform on /tf at a configured rate.
The transform is republished by a timer at the requested rate for as long as this node is running, and stops being published when the node is halted. Wrap this in a Parallel or a long-lived decorator (e.g. KeepRunningUntilFailure) for the frame to remain available to downstream Behaviors. For a truly static frame that persists after the node halts and is broadcast on /tf_static, a future PublishStaticTF Behavior should be used instead — this one is unsuitable for static frames despite its previous misleading name PublishStaticFrame.
| Data Port Name | Port Type | Object Type |
|---|---|---|
| pose | input | geometry_msgs::msg::PoseStamped |
| child_frame_id | input | std::string |
| publish_rate | input | int |
| moveit_pro::behaviors::PublishTF::PublishTF | ( | const std::string & | name, |
| const BT::NodeConfiguration & | config, | ||
| const std::shared_ptr< BehaviorContext > & | shared_resources | ||
| ) |
|
static |
|
override |
|
override |
|
override |
|
static |