Publishes a dynamic transform on /tf at a configured rate. More...
Declaration
class moveit_pro::behaviors::PublishTF { ... }
#include <publish_tf.hpp>
Base class
Derived Classes
Public Constructors Index
| PublishTF (const std::string &name, const BT::NodeConfiguration &config, const std::shared_ptr< BehaviorContext > &shared_resources) |
|
|
|
Public Member Functions Index
Private Member Functions Index
Private Member Attributes Index
| rclcpp::TimerBase::SharedPtr | timer_ |
|
|
|
| geometry_msgs::msg::TransformStamped | transform_ |
|
|
|
Public Static Functions Index
Description
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 |
Definition at line 36 of file publish_tf.hpp.
Public Constructors
PublishTF()
| moveit_pro::behaviors::PublishTF::PublishTF (const std::string & name, const BT::NodeConfiguration & config, const std::shared_ptr< BehaviorContext > & shared_resources) |
|
Public Member Functions
onHalted()
| void moveit_pro::behaviors::PublishTF::onHalted () |
|
onRunning()
| BT::NodeStatus moveit_pro::behaviors::PublishTF::onRunning () |
|
onStart()
| BT::NodeStatus moveit_pro::behaviors::PublishTF::onStart () |
|
Private Member Functions
publishTransform()
| void moveit_pro::behaviors::PublishTF::publishTransform () |
|
validateInputs()
| tl::expected< PublishTF::ValidatedInputs, std::string > moveit_pro::behaviors::PublishTF::validateInputs () |
|
Private Member Attributes
timer_
| rclcpp::TimerBase::SharedPtr moveit_pro::behaviors::PublishTF::timer_ |
|
transform_
| geometry_msgs::msg::TransformStamped moveit_pro::behaviors::PublishTF::transform_ |
|
Public Static Functions
metadata()
| BT::KeyValueVector moveit_pro::behaviors::PublishTF::metadata () |
|
static
|
providedPorts()
| BT::PortsList moveit_pro::behaviors::PublishTF::providedPorts () |
|
static
|
The documentation for this class was generated from the following files:
Generated via doxygen2docusaurus 2.2.2 by Doxygen 1.9.8.