Publish a point cloud. More...
Declaration
class moveit_pro::behaviors::PublishPointCloud { ... }
#include <publish_pointcloud.hpp>
Base class
Public Constructors Index
| PublishPointCloud (const std::string &name, const BT::NodeConfiguration &config, const std::shared_ptr< BehaviorContext > &shared_resources) |
|
|
|
Public Member Functions Index
Private Member Functions Index
| BT::NodeStatus | publishPointCloud (const sensor_msgs::msg::PointCloud2 &point_cloud_data) const |
|
Publishes the point cloud on point_cloud_topic. More...
|
|
Private Member Attributes Index
Public Static Functions Index
Description
Publish a point cloud.
| Data Port Name | Port Type | Object Type |
|---|
| point_cloud_topic | Input | std::string |
| point_cloud | Input | sensor_msgs::msg::PointCloud2 |
Definition at line 27 of file publish_pointcloud.hpp.
Public Constructors
PublishPointCloud()
| moveit_pro::behaviors::PublishPointCloud::PublishPointCloud (const std::string & name, const BT::NodeConfiguration & config, const std::shared_ptr< BehaviorContext > & shared_resources) |
|
Public Member Functions
onHalted()
| void moveit_pro::behaviors::PublishPointCloud::onHalted () |
|
onRunning()
| BT::NodeStatus moveit_pro::behaviors::PublishPointCloud::onRunning () |
|
onStart()
| BT::NodeStatus moveit_pro::behaviors::PublishPointCloud::onStart () |
|
Private Member Functions
publishPointCloud()
| BT::NodeStatus moveit_pro::behaviors::PublishPointCloud::publishPointCloud (const sensor_msgs::msg::PointCloud2 & point_cloud_data) |
|
Publishes the point cloud on point_cloud_topic.
- Returns
BT::NodeStatus Returns SUCCESS if the point cloud message was sent to the publisher, and FAILURE if the publisher could not be created.
Declaration at line 50 of file publish_pointcloud.hpp, definition at line 94 of file publish_pointcloud.cpp.
Private Member Attributes
point_cloud_publisher_
| std::shared_ptr<rclcpp::Publisher<sensor_msgs::msg::PointCloud2> > moveit_pro::behaviors::PublishPointCloud::point_cloud_publisher_ |
|
publish_point_cloud_future_
| ThreadedFuture<BT::NodeStatus> moveit_pro::behaviors::PublishPointCloud::publish_point_cloud_future_ |
|
Holds the returned value from calling publishPointCloud asynchronously.
Declared last so its joining destructor runs before any sibling member the background task dereferences is destroyed.
Definition at line 62 of file publish_pointcloud.hpp.
Public Static Functions
metadata()
| BT::KeyValueVector moveit_pro::behaviors::PublishPointCloud::metadata () |
|
static
|
providedPorts()
| BT::PortsList moveit_pro::behaviors::PublishPointCloud::providedPorts () |
|
static
|
The documentation for this class was generated from the following files:
Generated via doxygen2docusaurus 2.2.2 by Doxygen 1.9.8.