Skip to main content

FindMaskedObjects Class

Finds objects by segmenting a point cloud using a set of 2D mask images. More...

Declaration

class moveit_pro::behaviors::FindMaskedObjects { ... }

Included Headers

#include <find_masked_objects.hpp>

Base class

classAsyncBehaviorBase

A base class for behaviors which need to asynchronously run a function that might take a long time to complete. More...

Public Constructors Index

FindMaskedObjects (const std::string &name, const BT::NodeConfiguration &config, const std::shared_ptr< BehaviorContext > &shared_resources)
FindMaskedObjects (const std::string &name, const BT::NodeConfiguration &config, const std::shared_ptr< BehaviorContext > &shared_resources, std::unique_ptr< VisualToolsInterfaceBase > visual_tools)

Alternate constructor to allow mocking the rviz_visual_tools interface. More...

Private Member Functions Index

tl::expected< bool, std::string >doWork () override

User-implemented function which handles executing the potentially-long-running process. 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...

std::unique_ptr< VisualToolsInterfaceBase >visual_tools_

Public Static Functions Index

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

Description

Finds objects by segmenting a point cloud using a set of 2D mask images.

The output GraspableObjects will be transformed so that their parent frame is the frame defined by the base_frame config parameter.

Data Port NamePort TypeObject Type
point_cloudinputsensor_msgs::msg::PointCloud2
camera_infoinputsensor_msgs::msg::CameraInfo
masks2dinputstd::vector<moveit_studio_vision_msgs::msg::Mask2D>
base_frameinputstd::string
plane_inlier_thresholdinputdouble
minimum_face_areainputdouble
face_separation_thresholdinputdouble
detected_shapesoutputstd::vector<moveit_msgs::msg::GraspableObject>

Definition at line 32 of file find_masked_objects.hpp.

Public Constructors

FindMaskedObjects()

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

Declaration at line 35 of file find_masked_objects.hpp, definition at line 86 of file find_masked_objects.cpp.

FindMaskedObjects()

moveit_pro::behaviors::FindMaskedObjects::FindMaskedObjects (const std::string & name, const BT::NodeConfiguration & config, const std::shared_ptr< BehaviorContext > & shared_resources, std::unique_ptr< VisualToolsInterfaceBase > visual_tools)

Alternate constructor to allow mocking the rviz_visual_tools interface.

Declaration at line 39 of file find_masked_objects.hpp, definition at line 95 of file find_masked_objects.cpp.

Private Member Functions

doWork()

tl::expected< bool, std::string > moveit_pro::behaviors::FindMaskedObjects::doWork ()
virtual

User-implemented function which handles executing the potentially-long-running process.

This function is called within an async process in a separate thread.

Returns

A tl::expected which contains a bool indicating task success if the process completed successfully or was canceled, or an error message if the process failed unexpectedly.

Declaration at line 48 of file find_masked_objects.hpp, definition at line 136 of file find_masked_objects.cpp.

getFuture()

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

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

Definition at line 50 of file find_masked_objects.hpp.

Private Member Attributes

future_

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

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

Definition at line 56 of file find_masked_objects.hpp.

visual_tools_

std::unique_ptr<VisualToolsInterfaceBase> moveit_pro::behaviors::FindMaskedObjects::visual_tools_

Definition at line 58 of file find_masked_objects.hpp.

Public Static Functions

metadata()

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

Declaration at line 45 of file find_masked_objects.hpp, definition at line 130 of file find_masked_objects.cpp.

providedPorts()

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

Declaration at line 43 of file find_masked_objects.hpp, definition at line 102 of file find_masked_objects.cpp.


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


Generated via doxygen2docusaurus 2.2.2 by Doxygen 1.9.8.