Skip to main content

PublishPointCloud Class

Publish a point cloud. More...

Declaration

class moveit_pro::behaviors::PublishPointCloud { ... }

Included Headers

#include <publish_pointcloud.hpp>

Base class

classSharedResourcesNode<BehaviorTreeNodeT>

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

Public Constructors Index

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

Public Member Functions Index

BT::NodeStatusonStart () override
BT::NodeStatusonRunning () override
voidonHalted () override

Private Member Functions Index

BT::NodeStatuspublishPointCloud (const sensor_msgs::msg::PointCloud2 &point_cloud_data) const

Publishes the point cloud on point_cloud_topic. More...

Private Member Attributes Index

std::shared_ptr< rclcpp::Publisher< sensor_msgs::msg::PointCloud2 > >point_cloud_publisher_

Publisher for point cloud messages. More...

ThreadedFuture< BT::NodeStatus >publish_point_cloud_future_

Holds the returned value from calling publishPointCloud asynchronously. More...

Public Static Functions Index

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

Description

Publish a point cloud.

Data Port NamePort TypeObject Type
point_cloud_topicInputstd::string
point_cloudInputsensor_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)

Declaration at line 30 of file publish_pointcloud.hpp, definition at line 28 of file publish_pointcloud.cpp.

Public Member Functions

onHalted()

void moveit_pro::behaviors::PublishPointCloud::onHalted ()

Declaration at line 37 of file publish_pointcloud.hpp, definition at line 89 of file publish_pointcloud.cpp.

onRunning()

BT::NodeStatus moveit_pro::behaviors::PublishPointCloud::onRunning ()

Declaration at line 35 of file publish_pointcloud.hpp, definition at line 80 of file publish_pointcloud.cpp.

onStart()

BT::NodeStatus moveit_pro::behaviors::PublishPointCloud::onStart ()

Declaration at line 33 of file publish_pointcloud.hpp, definition at line 49 of file publish_pointcloud.cpp.

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_

Publisher for point cloud messages.

Definition at line 55 of file publish_pointcloud.hpp.

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

Declaration at line 41 of file publish_pointcloud.hpp, definition at line 43 of file publish_pointcloud.cpp.

providedPorts()

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

Declaration at line 39 of file publish_pointcloud.hpp, definition at line 34 of file publish_pointcloud.cpp.


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


Generated via doxygen2docusaurus 2.2.2 by Doxygen 1.9.8.