Publishes a marker array that contains a polyline representing a path. More...
Declaration
class moveit_pro::behaviors::VisualizePath { ... }
#include <visualize_path.hpp>
Base class
Public Constructors Index
| VisualizePath (const std::string &name, const BT::NodeConfiguration &config, const std::shared_ptr< BehaviorContext > &shared_resources) |
|
|
|
Public Member Functions Index
| BT::NodeStatus | tick () override |
|
|
|
Private Member Attributes Index
| std::shared_ptr< rclcpp::Publisher< visualization_msgs::msg::MarkerArray > > | publisher_ |
|
|
|
Public Static Functions Index
Public Static Attributes Index
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 Name | Port Type | Object Type |
|---|
| path | input | std::vector<geometry_msgs::msg::PoseStamped> |
| marker_lifetime | input | double |
| marker_name | input | std::string |
| show_poses | input | bool |
| pose_marker_size | input | double |
| line_color_rgb | input | std::vector<int> |
| line_width | input | double |
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) |
|
Public Member Functions
tick()
| BT::NodeStatus moveit_pro::behaviors::VisualizePath::tick () |
|
Private Member Attributes
publisher_
| std::shared_ptr<rclcpp::Publisher<visualization_msgs::msg::MarkerArray> > moveit_pro::behaviors::VisualizePath::publisher_ |
|
Public Static Functions
metadata()
| BT::KeyValueVector moveit_pro::behaviors::VisualizePath::metadata () |
|
static
|
providedPorts()
| BT::PortsList moveit_pro::behaviors::VisualizePath::providedPorts () |
|
static
|
Public Static Attributes
kPortIDLineColorRgb
| constexpr auto moveit_pro::behaviors::VisualizePath::kPortIDLineColorRgb = "line_color_rgb" |
|
constexpr
static
|
kPortIDLineWidth
| constexpr auto moveit_pro::behaviors::VisualizePath::kPortIDLineWidth = "line_width" |
|
constexpr
static
|
kPortIDMarkerLifetime
| constexpr auto moveit_pro::behaviors::VisualizePath::kPortIDMarkerLifetime = "marker_lifetime" |
|
constexpr
static
|
kPortIDMarkerName
| constexpr auto moveit_pro::behaviors::VisualizePath::kPortIDMarkerName = "marker_name" |
|
constexpr
static
|
kPortIDPath
| constexpr auto moveit_pro::behaviors::VisualizePath::kPortIDPath = "path" |
|
constexpr
static
|
kPortIDPoseMarkerSize
| constexpr auto moveit_pro::behaviors::VisualizePath::kPortIDPoseMarkerSize = "pose_marker_size" |
|
constexpr
static
|
kPortIDShowPoses
| constexpr auto moveit_pro::behaviors::VisualizePath::kPortIDShowPoses = "show_poses" |
|
constexpr
static
|
The documentation for this class was generated from the following files:
Generated via doxygen2docusaurus 2.2.2 by Doxygen 1.9.8.