Skip to main content

GetPointCloud Class

Capture a point cloud. The name of the topic containing the point cloud is set through the "topic_name" parameter, and the resulting point cloud is available on the "message_out" output port. More...

Declaration

class moveit_pro::behaviors::GetPointCloud { ... }

Included Headers

#include <get_pointcloud.hpp>

Base class

classGetMessageFromTopicBehaviorBase<MessageT>

Base class for Behaviors that get the latest message from a topic specified on an input data port and set that message to an output data port. More...

Public Constructors Index

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

Private Member Functions Index

tl::expected< std::chrono::duration< double >, std::string >getWaitForMessageTimeout () override

Override getWaitForMessageTimeout to allow failing if no point cloud is received within the expected duration. More...

tl::expected< std::chrono::duration< double >, std::string >getWaitForPublisherTimeout () override

Override getWaitForPublisherTimeout to allow failing if no point cloud is advertised within the expected duration. More...

std::shared_future< tl::expected< bool, std::string > > &getFuture () override

Classes derived from AsyncBehaviorBase must implement getFuture() so that it returns a shared_future class member. More...

Private Member Attributes Index

std::shared_future< tl::expected< bool, std::string > >future_

Classes derived from AsyncBehaviorBase must have this shared_future as a class member. More...

Public Static Functions Index

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

Description

Capture a point cloud. The name of the topic containing the point cloud is set through the "topic_name" parameter, and the resulting point cloud is available on the "message_out" output port.

Data Port NamePort TypeObject Type
topic_nameinputstd::string
message_timeout_secinputdouble
publisher_timeout_secinputdouble
message_outoutputsensor_msgs::msg::PointCloud2

Definition at line 27 of file get_pointcloud.hpp.

Public Constructors

GetPointCloud()

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

Declaration at line 30 of file get_pointcloud.hpp, definition at line 33 of file get_pointcloud.cpp.

Private Member Functions

getFuture()

std::shared_future< tl::expected< bool, std::string > > & moveit_pro::behaviors::GetPointCloud::getFuture ()
inline virtual

Classes derived from AsyncBehaviorBase must implement getFuture() so that it returns a shared_future class member.

Definition at line 45 of file get_pointcloud.hpp.

getWaitForMessageTimeout()

tl::expected< std::chrono::duration< double >, std::string > moveit_pro::behaviors::GetPointCloud::getWaitForMessageTimeout ()
virtual

Override getWaitForMessageTimeout to allow failing if no point cloud is received within the expected duration.

Declaration at line 39 of file get_pointcloud.hpp, definition at line 39 of file get_pointcloud.cpp.

getWaitForPublisherTimeout()

tl::expected< std::chrono::duration< double >, std::string > moveit_pro::behaviors::GetPointCloud::getWaitForPublisherTimeout ()
virtual

Override getWaitForPublisherTimeout to allow failing if no point cloud is advertised within the expected duration.

Declaration at line 42 of file get_pointcloud.hpp, definition at line 46 of file get_pointcloud.cpp.

Private Member Attributes

future_

std::shared_future<tl::expected<bool, std::string> > moveit_pro::behaviors::GetPointCloud::future_

Classes derived from AsyncBehaviorBase must have this shared_future as a class member.

Definition at line 51 of file get_pointcloud.hpp.

Public Static Functions

metadata()

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

Declaration at line 35 of file get_pointcloud.hpp, definition at line 71 of file get_pointcloud.cpp.

providedPorts()

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

Declaration at line 33 of file get_pointcloud.hpp, definition at line 53 of file get_pointcloud.cpp.


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


Generated via doxygen2docusaurus 2.2.2 by Doxygen 1.9.8.