Skip to main content

VisualizePath Class

Publishes a marker array that contains a polyline representing a path. More...

Declaration​

class moveit_pro::behaviors::VisualizePath { ... }

Included Headers​

#include <visualize_path.hpp>

Base class​

classSharedResourcesNode<BehaviorTreeNodeT>

The SharedResourcesNode class provides a BehaviorContext object when constructing a BehaviorTree.Cpp node. More...

Public Constructors Index​

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

Public Member Functions Index​

BT::NodeStatustick () override

Private Member Attributes Index​

std::shared_ptr< rclcpp::Publisher< visualization_msgs::msg::MarkerArray > >publisher_

Public Static Functions Index​

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

Public Static Attributes Index​

static constexpr autokPortIDPath = "path"
static constexpr autokPortIDMarkerLifetime = "marker_lifetime"
static constexpr autokPortIDMarkerName = "marker_name"
static constexpr autokPortIDShowPoses = "show_poses"
static constexpr autokPortIDPoseMarkerSize = "pose_marker_size"
static constexpr autokPortIDLineColorRgb = "line_color_rgb"
static constexpr autokPortIDLineWidth = "line_width"

Description​

Publishes a marker array that contains a polyline representing a path.

This Behavior composes a visualization_msgs::msg::MarkerArray message which contains the path 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 NamePort TypeObject Type
pathinputstd::vector<geometry_msgs::msg::PoseStamped>
marker_lifetimeinputdouble
marker_nameinputstd::string
show_posesinputbool
pose_marker_sizeinputdouble
line_color_rgbinputstd::vector<int>
line_widthinputdouble

Definition at line 40 of file visualize_path.hpp.

Public Constructors​

VisualizePath()​

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

Declaration at line 51 of file visualize_path.hpp, definition at line 138 of file visualize_path.cpp.

Public Member Functions​

tick()​

BT::NodeStatus moveit_pro::behaviors::VisualizePath::tick ()

Declaration at line 58 of file visualize_path.hpp, definition at line 170 of file visualize_path.cpp.

Private Member Attributes​

publisher_​

std::shared_ptr<rclcpp::Publisher<visualization_msgs::msg::MarkerArray> > moveit_pro::behaviors::VisualizePath::publisher_

Definition at line 62 of file visualize_path.hpp.

Public Static Functions​

metadata()​

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

Declaration at line 56 of file visualize_path.hpp, definition at line 165 of file visualize_path.cpp.

providedPorts()​

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

Declaration at line 54 of file visualize_path.hpp, definition at line 146 of file visualize_path.cpp.

Public Static Attributes​

kPortIDLineColorRgb​

constexpr auto moveit_pro::behaviors::VisualizePath::kPortIDLineColorRgb = "line_color_rgb"
constexpr static

Definition at line 48 of file visualize_path.hpp.

kPortIDLineWidth​

constexpr auto moveit_pro::behaviors::VisualizePath::kPortIDLineWidth = "line_width"
constexpr static

Definition at line 49 of file visualize_path.hpp.

kPortIDMarkerLifetime​

constexpr auto moveit_pro::behaviors::VisualizePath::kPortIDMarkerLifetime = "marker_lifetime"
constexpr static

Definition at line 44 of file visualize_path.hpp.

kPortIDMarkerName​

constexpr auto moveit_pro::behaviors::VisualizePath::kPortIDMarkerName = "marker_name"
constexpr static

Definition at line 45 of file visualize_path.hpp.

kPortIDPath​

constexpr auto moveit_pro::behaviors::VisualizePath::kPortIDPath = "path"
constexpr static

Definition at line 43 of file visualize_path.hpp.

kPortIDPoseMarkerSize​

constexpr auto moveit_pro::behaviors::VisualizePath::kPortIDPoseMarkerSize = "pose_marker_size"
constexpr static

Definition at line 47 of file visualize_path.hpp.

kPortIDShowPoses​

constexpr auto moveit_pro::behaviors::VisualizePath::kPortIDShowPoses = "show_poses"
constexpr static

Definition at line 46 of file visualize_path.hpp.


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


Generated via doxygen2docusaurus 2.2.2 by Doxygen 1.9.8.