MoveIt Pro API
Core Behaviors for MoveIt Pro
Loading...
Searching...
No Matches
moveit_pro::behaviors::VisualizePose Class Referencefinal

Publishes a visualization marker that contains three lines composing a coordinate frame. More...

#include <visualize_pose.hpp>

Inheritance diagram for moveit_pro::behaviors::VisualizePose:
Collaboration diagram for moveit_pro::behaviors::VisualizePose:

Public Member Functions

 VisualizePose (const std::string &name, const BT::NodeConfiguration &config, const std::shared_ptr< BehaviorContext > &shared_resources)
 
BT::NodeStatus tick () override
 
- Public Member Functions inherited from moveit_pro::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.
 

Static Public Member Functions

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

Static Public Attributes

static constexpr auto kPortIDPose = "pose"
 
static constexpr auto kPortIDMarkerSize = "marker_size"
 
static constexpr auto kPortIDMarkerLifetime = "marker_lifetime"
 
static constexpr auto kPortIDMarkerName = "marker_name"
 
static constexpr auto kPortIDMarkerText = "marker_text"
 

Additional Inherited Members

- Protected Attributes inherited from moveit_pro::behaviors::SharedResourcesNode< BT::SyncActionNode >
std::shared_ptr< BehaviorContextshared_resources_
 

Detailed Description

Publishes a visualization marker that contains three lines composing a coordinate frame.

This Behavior composes a visualization_msgs::msg::MarkerArray message which contains the frame to visualize. It publishes the message to a ROS topic named /visual_markers, which is then visualized in the UI.

Input poses can be given in any known frame. The Behavior will transform them to the world frame before visualization. If the transform cannot be found, the Behavior will return a FAILURE status. 'marker_lifetime' is the time in seconds that the path will be visualized. A value of 0 will visualize the path indefinitely.

Data Port Name Port Type Object Type
pose input geometry_msgs::msg::PoseStamped
marker_size input double
marker_lifetime input double
marker_name input std::string
marker_text input std::string

Constructor & Destructor Documentation

◆ VisualizePose()

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

Member Function Documentation

◆ metadata()

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

◆ providedPorts()

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

◆ tick()

BT::NodeStatus moveit_pro::behaviors::VisualizePose::tick ( )
override

Member Data Documentation

◆ kPortIDMarkerLifetime

constexpr auto moveit_pro::behaviors::VisualizePose::kPortIDMarkerLifetime = "marker_lifetime"
staticconstexpr

◆ kPortIDMarkerName

constexpr auto moveit_pro::behaviors::VisualizePose::kPortIDMarkerName = "marker_name"
staticconstexpr

◆ kPortIDMarkerSize

constexpr auto moveit_pro::behaviors::VisualizePose::kPortIDMarkerSize = "marker_size"
staticconstexpr

◆ kPortIDMarkerText

constexpr auto moveit_pro::behaviors::VisualizePose::kPortIDMarkerText = "marker_text"
staticconstexpr

◆ kPortIDPose

constexpr auto moveit_pro::behaviors::VisualizePose::kPortIDPose = "pose"
staticconstexpr

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